direct.leveleditor.ObjectPalette Namespace Reference


class  ObjectDoubleSmileys
class  ObjectPalette
class  ObjectProp
class  ObjectSmiley

Detailed Description

This is just a sample code.

LevelEditor, ObjectHandler, ObjectPalette should be rewritten
to be game specific.

You can define object template class inheriting ObjectBase
to define properties shared by multiple object types.
When you are defining properties
you should specify their name, UI type, data type,
update function, default value, and value range.

Then you need implement ObjectPalette class inheriting ObjectPaletteBase,
and in the populate function you can define ObjectPalette tree structure.