C4 Engine
C4 Engine API Documentation

Controller::CreateMessage

Defined in:  C4Controller.h
Called to create a cotroller-defined message.
Prototype

virtual ControllerMessage *CreateMessage(ControllerMessageType type) const;

Parameters
type The controller-specific type of the message to construct.
Description
The CreateMessage function is called when the Message Manager needs to construct a network message for a particular controller. The overriding implementation should examine the type parameter and return a newly constructed instance of the appropriate message class. If the type is not recognized, then the base class counterpart should be called to construct the message.
See Also

Controller::ReceiveMessage

ControllerMessage