$#include "Object.h" class Object : public RefCounted { ShortStringHash GetType() const; ShortStringHash GetBaseType() const; const String GetTypeName() const; const String GetCategory() const; tolua_outside void ObjectSendEvent @ SendEvent(const String eventName, VariantMap* eventData = 0); tolua_readonly tolua_property__get_set ShortStringHash type; tolua_readonly tolua_property__get_set ShortStringHash baseType; tolua_readonly tolua_property__get_set const String typeName; tolua_readonly tolua_property__get_set const String category; }; ${ static void ObjectSendEvent(Object* object, const String eventName, VariantMap* eventData = 0) { if (eventData) object->SendEvent(StringHash(eventName), *eventData); else object->SendEvent(StringHash(eventName)); } $}