18 #ifndef INCLUDED_ICOMPONENT 19 #define INCLUDED_ICOMPONENT 72 #endif // INCLUDED_ICOMPONENT An entity initialisation parameter node.
Definition: ParamNode.h:148
Definition: IComponent.h:33
const CSimContext * m_SimContext
Definition: IComponent.h:69
virtual void Serialize(ISerializer &serialize)=0
Serialization interface; see serialization overview.
Definition: ISerializer.h:120
virtual void Init(const CParamNode ¶mNode)=0
static void out(const wchar_t *fmt,...)
Definition: wdbg_sym.cpp:419
Object wrapping an entity_id_t, with a SEntityComponentCache to support fast QueryInterface() / CmpPt...
Definition: Entity.h:79
virtual int GetComponentTypeId() const =0
CEntityHandle GetSystemEntity() const
Definition: SimContext.h:49
Contains pointers to various 'global' objects that are needed by the simulation code, to allow easy access without using real (evil) global variables.
Definition: SimContext.h:32
uint8_t u8
Definition: types.h:37
CEntityHandle GetEntityHandle() const
Definition: IComponent.h:45
entity_id_t GetEntityId() const
Definition: IComponent.h:48
Config::Value_type Value
Definition: json_spirit_value.h:181
static u8 GetSerializationVersion()
Definition: IComponent.h:55
entity_id_t GetId() const
Definition: Entity.h:88
const CSimContext & GetSimContext() const
Definition: IComponent.h:52
void SetEntityHandle(CEntityHandle ent)
Definition: IComponent.h:46
virtual ~IComponent()
Definition: IComponent.cpp:22
CEntityHandle GetSystemEntity() const
Definition: IComponent.h:50
virtual void Deserialize(const CParamNode ¶mNode, IDeserializer &deserialize)=0
virtual void HandleMessage(const CMessage &msg, bool global)
Definition: IComponent.cpp:32
Abstraction around a SpiderMonkey JSContext.
Definition: ScriptInterface.h:71
static std::string GetSchema()
Definition: IComponent.cpp:26
u32 entity_id_t
Entity ID type.
Definition: Entity.h:23
void SetSimContext(const CSimContext &context)
Definition: IComponent.h:53
virtual bool NewJSObject(ScriptInterface &scriptInterface, JS::MutableHandleObject out) const
Returns false by default, indicating that a scripted wrapper of this IComponent is not supported...
Definition: IComponent.cpp:36
CEntityHandle m_EntityHandle
Definition: IComponent.h:68
Deserialization interface; see serialization overview.
Definition: IDeserializer.h:34
virtual JS::Value GetJSInstance() const
Definition: IComponent.cpp:41