25#define ALLNETMSGS_DONT_CREATE_NMTS
27#undef ALLNETMSGS_DONT_CREATE_NMTS
The list of messages used by the network subsystem.
NetMessageType
Definition: NetMessages.h:42
Special message type for updated to game startup settings.
Definition: NetMessage.h:142
virtual u8 * Serialize(u8 *pBuffer) const
Serialize the message into the specified buffer parameter.
Definition: NetMessageSim.cpp:206
virtual size_t GetSerializedLength() const
Retrieves the size in bytes of the serialized message.
Definition: NetMessageSim.cpp:225
NONCOPYABLE(CGameSetupMessage)
virtual const u8 * Deserialize(const u8 *pStart, const u8 *pEnd)
Deserializes the message from the specified buffer.
Definition: NetMessageSim.cpp:215
virtual CStr ToString() const
Returns a string representation for the message.
Definition: NetMessageSim.cpp:232
const ScriptInterface & m_ScriptInterface
Definition: NetMessage.h:154
CGameSetupMessage(const ScriptInterface &scriptInterface)
Definition: NetMessageSim.cpp:192
JS::PersistentRootedValue m_Data
Definition: NetMessage.h:152
Creates messages from data received through the network.
Definition: NetMessage.h:95
static CNetMessage * CreateMessage(const void *pData, size_t dataSize, const ScriptInterface &scriptInterface)
Factory method which creates a message object based on the given data.
Definition: NetMessage.cpp:94
The base class for all network messages exchanged within the game.
Definition: NetMessage.h:33
NetMessageType GetType() const
Retrieves the message type.
Definition: NetMessage.h:46
virtual ~CNetMessage()
Definition: NetMessage.cpp:40
virtual u8 * Serialize(u8 *pBuffer) const
Serialize the message into the specified buffer parameter.
Definition: NetMessage.cpp:44
friend class CNetSession
Definition: NetMessage.h:34
virtual size_t GetSerializedLength() const
Retrieves the size in bytes of the serialized message.
Definition: NetMessage.cpp:78
virtual const u8 * Deserialize(const u8 *pStart, const u8 *pEnd)
Deserializes the message from the specified buffer.
Definition: NetMessage.cpp:53
virtual CStr ToString() const
Returns a string representation for the message.
Definition: NetMessage.cpp:84
NetMessageType m_Type
Definition: NetMessage.h:88
CNetMessage()
Definition: NetMessage.cpp:30
Special message type for simulation commands.
Definition: NetMessage.h:114
JS::PersistentRooted< JS::Value > m_Data
Definition: NetMessage.h:133
virtual CStr ToString() const
Returns a string representation for the message.
Definition: NetMessageSim.cpp:182
u32 m_Client
Definition: NetMessage.h:130
const ScriptInterface & m_ScriptInterface
Definition: NetMessage.h:135
u32 m_Turn
Definition: NetMessage.h:132
CSimulationMessage(const ScriptInterface &scriptInterface)
Definition: NetMessageSim.cpp:113
virtual size_t GetSerializedLength() const
Retrieves the size in bytes of the serialized message.
Definition: NetMessageSim.cpp:167
virtual const u8 * Deserialize(const u8 *pStart, const u8 *pEnd)
Deserializes the message from the specified buffer.
Definition: NetMessageSim.cpp:153
i32 m_Player
Definition: NetMessage.h:131
virtual u8 * Serialize(u8 *pBuffer) const
Serialize the message into the specified buffer parameter.
Definition: NetMessageSim.cpp:139
An interface for serializable objects.
Definition: Serialization.h:76
Abstraction around a SpiderMonkey JS::Realm.
Definition: ScriptInterface.h:72
int32_t i32
Definition: types.h:34
uint8_t u8
Definition: types.h:37
uint32_t u32
Definition: types.h:39