Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
CNetMessageFactory Class Reference

Creates messages from data received through the network. More...

#include <NetMessage.h>

Static Public Member Functions

static CNetMessageCreateMessage (const void *pData, size_t dataSize, const ScriptInterface &scriptInterface)
 Factory method which creates a message object based on the given data. More...
 

Detailed Description

Creates messages from data received through the network.

Member Function Documentation

◆ CreateMessage()

CNetMessage * CNetMessageFactory::CreateMessage ( const void *  pData,
size_t  dataSize,
const ScriptInterface scriptInterface 
)
static

Factory method which creates a message object based on the given data.

Parameters
pDataData buffer
dataSizeSize of data buffer
scriptInterfaceScript instance to use when constructing scripted messages
Returns
The new message created

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