Pyrogenesis  13997
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
CGameSetupMessage Class Reference

Special message type for updated to game startup settings. More...

#include <NetMessage.h>

Inheritance diagram for CGameSetupMessage:
CNetMessage ISerializable

Public Member Functions

 CGameSetupMessage (ScriptInterface &scriptInterface)
 
 CGameSetupMessage (ScriptInterface &scriptInterface, jsval data)
 
virtual u8Serialize (u8 *pBuffer) const
 Serialize the message into the specified buffer parameter. More...
 
virtual const u8Deserialize (const u8 *pStart, const u8 *pEnd)
 Deserializes the message from the specified buffer. More...
 
virtual size_t GetSerializedLength () const
 Retrieves the size in bytes of the serialized message. More...
 
virtual CStr ToString () const
 Returns a string representation for the message. More...
 
- Public Member Functions inherited from CNetMessage
 CNetMessage ()
 
 CNetMessage (NetMessageType type)
 
virtual ~CNetMessage ()
 
NetMessageType GetType () const
 Retrieves the message type. More...
 
- Public Member Functions inherited from ISerializable
virtual ~ISerializable ()
 

Public Attributes

CScriptValRooted m_Data
 

Private Member Functions

 NONCOPYABLE (CGameSetupMessage)
 

Private Attributes

ScriptInterfacem_ScriptInterface
 

Detailed Description

Special message type for updated to game startup settings.

Definition at line 134 of file NetMessage.h.

Constructor & Destructor Documentation

CGameSetupMessage::CGameSetupMessage ( ScriptInterface scriptInterface)

Definition at line 159 of file NetMessageSim.cpp.

CGameSetupMessage::CGameSetupMessage ( ScriptInterface scriptInterface,
jsval  data 
)

Definition at line 164 of file NetMessageSim.cpp.

Member Function Documentation

const u8 * CGameSetupMessage::Deserialize ( const u8 pStart,
const u8 pEnd 
)
virtual

Deserializes the message from the specified buffer.

Parameters
pStartMessage start within the serialized buffer
pEndMessage end within the serialized buffer
Returns
The position in the buffer right after the message or NULL if an error occured

Reimplemented from CNetMessage.

Definition at line 180 of file NetMessageSim.cpp.

size_t CGameSetupMessage::GetSerializedLength ( ) const
virtual

Retrieves the size in bytes of the serialized message.

Before calling Serialize, the memory size for the buffer where to serialize the message object can be found by calling this method.

Returns
The size of serialized message

Reimplemented from CNetMessage.

Definition at line 191 of file NetMessageSim.cpp.

CGameSetupMessage::NONCOPYABLE ( CGameSetupMessage  )
private
u8 * CGameSetupMessage::Serialize ( u8 pBuffer) const
virtual

Serialize the message into the specified buffer parameter.

The size required by the buffer parameter can be found by a call to GetSerializedLength method. The information contained within the message must be serialized before the message is sent. By default only the message type and its size are serialized in the buffer parameter.

Parameters
pBufferBuffer where to serialize the message
Returns
The position in the buffer right after the serialized message

Reimplemented from CNetMessage.

Definition at line 170 of file NetMessageSim.cpp.

CStr CGameSetupMessage::ToString ( ) const
virtual

Returns a string representation for the message.

Returns
The message as a string

Reimplemented from CNetMessage.

Definition at line 198 of file NetMessageSim.cpp.

Member Data Documentation

CScriptValRooted CGameSetupMessage::m_Data

Definition at line 145 of file NetMessage.h.

ScriptInterface& CGameSetupMessage::m_ScriptInterface
private

Definition at line 147 of file NetMessage.h.


The documentation for this class was generated from the following files: