Static methods

@:native("DecorExistOn")staticdecorExistOn(entity:Dynamic, propertyName:String):Bool

Returns whether or not the specified property is set for the entity.  

@:native("DecorGetBool")staticdecorGetBool(entity:Dynamic, propertyName:String):Bool

@:native("DecorGetFloat")staticdecorGetFloat(entity:Dynamic, propertyName:String):Float

@:native("DecorGetInt")staticdecorGetInt(entity:Dynamic, propertyName:String):Int

@:native("DecorIsRegisteredAsType")staticdecorIsRegisteredAsType(propertyName:String, type:Int):Bool

@:native("DecorRegister")staticdecorRegister(propertyName:String, type:Int):Dynamic

enum eDecorType
{
    DECOR_TYPE_FLOAT = 1,
    DECOR_TYPE_BOOL = 2,
    DECOR_TYPE_INT = 3,
    DECOR_TYPE_STRING = 4,
    DECOR_TYPE_TIME = 5
};

@:native("DecorRegisterLock")staticdecorRegisterLock():Dynamic

Called after all decorator type initializations.  

@:native("DecorRemove")staticdecorRemove(entity:Dynamic, propertyName:String):Bool

@:native("DecorSetBool")staticdecorSetBool(entity:Dynamic, propertyName:String, value:Bool):Bool

This function sets metadata of type bool to specified entity.  

@:native("DecorSetFloat")staticdecorSetFloat(entity:Dynamic, propertyName:String, value:Float):Bool

@:native("DecorSetInt")staticdecorSetInt(entity:Dynamic, propertyName:String, value:Int):Bool

Sets property to int.  

@:native("DecorSetTime")staticdecorSetTime(entity:Dynamic, propertyName:String, timestamp:Int):Bool