18 #include "precompiled.h"
45 "<element name='OverrideCost'>"
46 "<data type='nonNegativeInteger'>"
47 "<param name='maxInclusive'>255</param>"
51 "<element name='Root'>"
52 "<data type='boolean'/>"
54 "<element name='Weight'>"
55 "<data type='nonNegativeInteger'/>"
57 "<element name='Radius'>"
58 "<data type='nonNegativeInteger'/>"
115 if (cmpTechnologyManager)
An entity initialisation parameter node.
#define REGISTER_COMPONENT_TYPE(cname)
#define UNUSED(param)
mark a function parameter as unused and avoid the corresponding compiler warning. ...
bool ToBool() const
Parses the content of this node as a boolean ("true" == true, anything else == false) ...
bool IsOk() const
Returns true if this is a valid CParamNode, false if it represents a non-existent node...
Serialization interface; see serialization overview.
int ToInt() const
Parses the content of this node as an integer.
CEntityHandle GetEntityHandle() const
virtual void Serialize(ISerializer &serialize)
virtual void Deserialize(const CParamNode ¶mNode, IDeserializer &deserialize)
virtual i32 GetCost()
Returns either -1 to indicate no special terrain cost, or a value in [0, 255] to indicate overriding ...
entity_id_t GetEntityId() const
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...
virtual fixed ApplyModifications(std::wstring valueName, fixed currentValue, entity_id_t entity)=0
virtual entity_id_t GetPlayerByID(int32_t id)=0
virtual player_id_t GetOwner()=0
#define DEFAULT_COMPONENT_ALLOCATOR(cname)
const CSimContext & GetSimContext() const
A simplified syntax for accessing entity components.
virtual void Init(const CParamNode ¶mNode)
static void ClassInit(CComponentManager &componentManager)
CEntityHandle GetSystemEntity() const
const entity_id_t INVALID_ENTITY
Invalid entity ID.
u32 entity_id_t
Entity ID type.
static const player_id_t INVALID_PLAYER
static std::string GetSchema()
Deserialization interface; see serialization overview.