Not logged inOpenClonk Forum
Up Topic C4Script for everything

This board is threaded (i.e. has a tree structure). Please use the Reply button of the specific post you are referring to, not just any random button. If you want to reply to the topic in general, use the Post button near the top and bottom of the page.

Post Reply
In Response to Sven2
You put a lot of work on the object designer. But I guess we could get away with some objects losing their action if the author was careless.

By the way: It's very common to design your scenarios using custom parameters the author did not think of. The most common ones are DrawTransform, ClrModulation, BlitMode; sometimes even Category. A set of standard parameters would have to be serialized in the base object.

Also, I don't like the syntax of the serialize function. I would prefer if simple properties could be auto-serialized by marking the local variable as such, and if there were a simplified way to build the construction string. e.g.:


stored local owner; // saved automatically
local X, Y, dir; // saved manually

func Serialize(s)
{
  if (!_inherited(s, ...)) return false;
  SaveProperty(s, "X");
  SaveProperty(s, "Y");
  SaveProperty(s, "dir", "SetTurretDir"); // calls SetTurretDir(*) instead of dir=*.
  return true;
}


I'd hate having a Format-nightmare in *every* object definition.

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill