C4 Engine Terathon Software C4 Engine API Documentation

• Controller System

API Links
Developer Links

Controller::ConstructMessage

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

virtual ControllerMessage *ConstructMessage(ControllerMessageType type) const;

Parameters
type The controller-specific type of the message to construct.
Description
The ConstructMessage 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