Pyrogenesis  trunk
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
IComponent Class Referenceabstract

#include <IComponent.h>

Inheritance diagram for IComponent:
Inheritance graph
[legend]
Collaboration diagram for IComponent:
Collaboration graph
[legend]

Public Member Functions

virtual ~IComponent ()
 
virtual void Init (const CParamNode &paramNode)=0
 
virtual void Deinit ()=0
 
virtual void HandleMessage (const CMessage &msg, bool global)
 
CEntityHandle GetEntityHandle () const
 
void SetEntityHandle (CEntityHandle ent)
 
entity_id_t GetEntityId () const
 
CEntityHandle GetSystemEntity () const
 
const CSimContextGetSimContext () const
 
void SetSimContext (const CSimContext &context)
 
virtual void Serialize (ISerializer &serialize)=0
 
virtual void Deserialize (const CParamNode &paramNode, IDeserializer &deserialize)=0
 
virtual bool NewJSObject (ScriptInterface &scriptInterface, JS::MutableHandleObject out) const
 Returns false by default, indicating that a scripted wrapper of this IComponent is not supported. More...
 
virtual JS::Value GetJSInstance () const
 
virtual int GetComponentTypeId () const =0
 

Static Public Member Functions

static std::string GetSchema ()
 
static u8 GetSerializationVersion ()
 

Private Attributes

CEntityHandle m_EntityHandle
 
const CSimContextm_SimContext
 

Constructor & Destructor Documentation

IComponent::~IComponent ( )
virtual

Member Function Documentation

virtual void IComponent::Deinit ( )
pure virtual
virtual void IComponent::Deserialize ( const CParamNode paramNode,
IDeserializer deserialize 
)
pure virtual
virtual int IComponent::GetComponentTypeId ( ) const
pure virtual
CEntityHandle IComponent::GetEntityHandle ( ) const
inline
entity_id_t IComponent::GetEntityId ( ) const
inline
JS::Value IComponent::GetJSInstance ( ) const
virtual
std::string IComponent::GetSchema ( )
static
static u8 IComponent::GetSerializationVersion ( )
inlinestatic
const CSimContext& IComponent::GetSimContext ( ) const
inline
CEntityHandle IComponent::GetSystemEntity ( ) const
inline
void IComponent::HandleMessage ( const CMessage msg,
bool  global 
)
virtual
virtual void IComponent::Init ( const CParamNode paramNode)
pure virtual
bool IComponent::NewJSObject ( ScriptInterface scriptInterface,
JS::MutableHandleObject  out 
) const
virtual

Returns false by default, indicating that a scripted wrapper of this IComponent is not supported.

Derrived classes should return true if they implement such a wrapper.

virtual void IComponent::Serialize ( ISerializer serialize)
pure virtual
void IComponent::SetEntityHandle ( CEntityHandle  ent)
inline
void IComponent::SetSimContext ( const CSimContext context)
inline

Member Data Documentation

CEntityHandle IComponent::m_EntityHandle
private
const CSimContext* IComponent::m_SimContext
private

The documentation for this class was generated from the following files: