18 #include "precompiled.h"
41 return "<a:component type='test'/><ref name='anything'/>";
103 static std::
string GetSchema()
105 return "<a:component type='test'/><empty/>";
164 static std::
string GetSchema()
166 return "<a:component type='test'/><empty/>";
201 m_x +=
static_cast<const CMessageUpdate&
> (msg).turnLength.ToInt_RoundToZero();
221 return m_Script.Call<
int> (
"GetX");
236 return m_Script.Call<
int> (
"GetX");
An entity initialisation parameter node.
void SubscribeToMessageType(MessageTypeId mtid)
Subscribe the current component type to the given message type.
Component for testing the simulation system.
Generic per-turn update message, for things that don't care much about ordering.
#define REGISTER_COMPONENT_TYPE(cname)
virtual void Serialize(ISerializer &serialize)
#define UNUSED(param)
mark a function parameter as unused and avoid the corresponding compiler warning. ...
static void ClassInit(CComponentManager &componentManager)
static std::string GetSchema()
bool IsOk() const
Returns true if this is a valid CParamNode, false if it represents a non-existent node...
virtual void Init(const CParamNode ¶mNode)
Serialization interface; see serialization overview.
virtual void Deserialize(const CParamNode ¶mNode, IDeserializer &deserialize)
virtual void Init(const CParamNode &)
static void ClassInit(CComponentManager &componentManager)
int ToInt() const
Parses the content of this node as an integer.
virtual void HandleMessage(const CMessage &msg, bool global)
virtual void Serialize(ISerializer &serialize)
virtual int GetType() const =0
const CParamNode & GetChild(const char *name) const
Returns the (unique) child node with the given name, or a node with IsOk() == false if there is none...
#define DEFAULT_SCRIPT_WRAPPER(cname)
virtual void HandleMessage(const CMessage &msg, bool global)
virtual void Init(const CParamNode &)
#define DEFAULT_COMPONENT_ALLOCATOR(cname)
void SubscribeGloballyToMessageType(MessageTypeId mtid)
Subscribe the current component type to all messages of the given message type.
static void ClassInit(CComponentManager &componentManager)
Component for testing the simulation system.
virtual void Serialize(ISerializer &serialize)
void NumberI32_Unbounded(const char *name, int32_t value)
Serialize a number.
#define REGISTER_COMPONENT_SCRIPT_WRAPPER(cname)
virtual void Deserialize(const CParamNode ¶mNode, IDeserializer &deserialize)
virtual void HandleMessage(const CMessage &msg, bool global)
virtual void Deserialize(const CParamNode ¶mNode, IDeserializer &deserialize)
Deserialization interface; see serialization overview.
virtual void NumberI32_Unbounded(const char *name, int32_t &out)