25 #define ALLNETMSGS_DONT_CREATE_NMTS 27 #undef ALLNETMSGS_DONT_CREATE_NMTS 160 #endif // NETMESSAGE_H #define NONCOPYABLE(className)
Indicates that a class is noncopyable (usually due to const or reference members, or because the clas...
Definition: code_annotation.h:227
virtual CStr ToString() const
Returns a string representation for the message.
Definition: NetMessage.cpp:84
NetMessageType
Definition: NetMessages.h:41
JS::PersistentRooted< JS::Value > m_Data
Definition: NetMessage.h:133
JS::PersistentRootedValue m_Data
Definition: NetMessage.h:152
friend class CNetSession
Definition: NetMessage.h:34
The list of messages used by the network subsystem.
u32 m_Turn
Definition: NetMessage.h:132
i32 m_Player
Definition: NetMessage.h:131
virtual u8 * Serialize(u8 *pBuffer) const
Serialize the message into the specified buffer parameter.
Definition: NetMessage.cpp:44
const ScriptInterface & m_ScriptInterface
Definition: NetMessage.h:135
uint8_t u8
Definition: types.h:37
virtual size_t GetSerializedLength() const
Retrieves the size in bytes of the serialized message.
Definition: NetMessage.cpp:78
u32 m_Client
Definition: NetMessage.h:130
uint32_t u32
Definition: types.h:39
Creates messages from data received through the network.
Definition: NetMessage.h:94
Special message type for updated to game startup settings.
Definition: NetMessage.h:141
CNetMessage()
Definition: NetMessage.cpp:30
An interface for serializable objects.
Definition: Serialization.h:75
virtual ~CNetMessage()
Definition: NetMessage.cpp:40
The base class for all network messages exchanged within the game.
Definition: NetMessage.h:32
int32_t i32
Definition: types.h:34
NetMessageType GetType() const
Retrieves the message type.
Definition: NetMessage.h:46
const ScriptInterface & m_ScriptInterface
Definition: NetMessage.h:154
Abstraction around a SpiderMonkey JS::Realm.
Definition: ScriptInterface.h:71
virtual const u8 * Deserialize(const u8 *pStart, const u8 *pEnd)
Deserializes the message from the specified buffer.
Definition: NetMessage.cpp:53
NetMessageType m_Type
Definition: NetMessage.h:88
Special message type for simulation commands.
Definition: NetMessage.h:113