Pyrogenesis  trunk
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
CCmpOwnership Class Referencefinal

Basic ICmpOwnership implementation. More...

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

Public Member Functions

int GetComponentTypeId () const override
 
void Init (const CParamNode &paramNode) override
 
void Deinit () override
 
void Serialize (ISerializer &serialize) override
 
void Deserialize (const CParamNode &paramNode, IDeserializer &deserialize) override
 
void HandleMessage (const CMessage &msg, bool global) override
 
player_id_t GetOwner () const override
 
void SetOwner (player_id_t playerID) override
 
void SetOwnerQuiet (player_id_t playerID) override
 
- Public Member Functions inherited from IComponent
virtual ~IComponent ()
 
CEntityHandle GetEntityHandle () const
 
void SetEntityHandle (CEntityHandle ent)
 
entity_id_t GetEntityId () const
 
CEntityHandle GetSystemEntity () const
 
const CSimContextGetSimContext () const
 
void SetSimContext (const CSimContext &context)
 
virtual bool NewJSObject (const 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
 

Static Public Member Functions

static void ClassInit (CComponentManager &componentManager)
 
static IComponentAllocate (const ScriptInterface &, JS::HandleValue)
 
static void Deallocate (IComponent *cmp)
 
static std::string GetSchema ()
 
- Static Public Member Functions inherited from IComponent
static std::string GetSchema ()
 
static void RegisterComponentType (CComponentManager &mgr, EInterfaceId iid, EComponentTypeId cid, AllocFunc alloc, DeallocFunc dealloc, const char *name, const std::string &schema)
 
static void RegisterComponentTypeScriptWrapper (CComponentManager &mgr, EInterfaceId iid, EComponentTypeId cid, AllocFunc alloc, DeallocFunc dealloc, const char *name, const std::string &schema)
 
static u8 GetSerializationVersion ()
 

Public Attributes

player_id_t m_Owner
 

Additional Inherited Members

- Public Types inherited from IComponent
using AllocFunc = IComponent *(*)(const ScriptInterface &scriptInterface, JS::HandleValue ctor)
 
using DeallocFunc = void(*)(IComponent *)
 

Detailed Description

Basic ICmpOwnership implementation.

Member Function Documentation

◆ Allocate()

static IComponent* CCmpOwnership::Allocate ( const ScriptInterface ,
JS::HandleValue   
)
inlinestatic

◆ ClassInit()

static void CCmpOwnership::ClassInit ( CComponentManager componentManager)
inlinestatic

◆ Deallocate()

static void CCmpOwnership::Deallocate ( IComponent cmp)
inlinestatic

◆ Deinit()

void CCmpOwnership::Deinit ( )
inlineoverridevirtual

Implements IComponent.

◆ Deserialize()

void CCmpOwnership::Deserialize ( const CParamNode paramNode,
IDeserializer deserialize 
)
inlineoverridevirtual

Implements IComponent.

◆ GetComponentTypeId()

int CCmpOwnership::GetComponentTypeId ( ) const
inlineoverridevirtual

Implements IComponent.

◆ GetOwner()

player_id_t CCmpOwnership::GetOwner ( ) const
inlineoverridevirtual

Implements ICmpOwnership.

◆ GetSchema()

static std::string CCmpOwnership::GetSchema ( )
inlinestatic

◆ HandleMessage()

void CCmpOwnership::HandleMessage ( const CMessage msg,
bool  global 
)
inlineoverridevirtual

Reimplemented from IComponent.

◆ Init()

void CCmpOwnership::Init ( const CParamNode paramNode)
inlineoverridevirtual

Implements IComponent.

◆ Serialize()

void CCmpOwnership::Serialize ( ISerializer serialize)
inlineoverridevirtual

Implements IComponent.

◆ SetOwner()

void CCmpOwnership::SetOwner ( player_id_t  playerID)
inlineoverridevirtual

Implements ICmpOwnership.

◆ SetOwnerQuiet()

void CCmpOwnership::SetOwnerQuiet ( player_id_t  playerID)
inlineoverridevirtual

Implements ICmpOwnership.

Member Data Documentation

◆ m_Owner

player_id_t CCmpOwnership::m_Owner

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