|
static void | ClassInit (CComponentManager &componentManager) |
|
static IComponent * | Allocate (const ScriptInterface &, JS::HandleValue) |
|
static void | Deallocate (IComponent *cmp) |
|
static std::string | GetSchema () |
|
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 () |
|
◆ Allocate()
◆ ClassInit()
◆ Deallocate()
static void CCmpCommandQueue::Deallocate |
( |
IComponent * |
cmp | ) |
|
|
inlinestatic |
◆ Deinit()
void CCmpCommandQueue::Deinit |
( |
| ) |
|
|
inlineoverridevirtual |
◆ Deserialize()
◆ FlushTurn()
void CCmpCommandQueue::FlushTurn |
( |
const std::vector< SimulationCommand > & |
commands | ) |
|
|
inlineoverridevirtual |
Calls the ProcessCommand(player, cmd) global script function for each command in the local queue and in commands
, and empties the local queue.
Implements ICmpCommandQueue.
◆ GetComponentTypeId()
int CCmpCommandQueue::GetComponentTypeId |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ GetSchema()
static std::string CCmpCommandQueue::GetSchema |
( |
| ) |
|
|
inlinestatic |
◆ Init()
void CCmpCommandQueue::Init |
( |
const CParamNode & |
paramNode | ) |
|
|
inlineoverridevirtual |
◆ PostNetworkCommand()
void CCmpCommandQueue::PostNetworkCommand |
( |
JS::HandleValue |
cmd | ) |
|
|
inlineoverridevirtual |
Send a command associated with the current player to the networking system.
Implements ICmpCommandQueue.
◆ PushLocalCommand()
void CCmpCommandQueue::PushLocalCommand |
( |
player_id_t |
player, |
|
|
JS::HandleValue |
cmd |
|
) |
| |
|
inlineoverridevirtual |
Pushes a new command onto the local queue.
cmd
does not need to be rooted.
Implements ICmpCommandQueue.
◆ Serialize()
void CCmpCommandQueue::Serialize |
( |
ISerializer & |
serialize | ) |
|
|
inlineoverridevirtual |
◆ m_LocalQueue
The documentation for this class was generated from the following file: