2004-05-22 02:57:54 +02:00
|
|
|
// EntityMessage.h
|
|
|
|
//
|
|
|
|
// Last modified: 22 May 04, Mark Thompson mot20@cam.ac.uk / mark@wildfiregames.com
|
|
|
|
//
|
|
|
|
// Entity message structure.
|
|
|
|
//
|
|
|
|
// Usage: Currently, does not support any data to be included with messages.
|
|
|
|
// Message types are currently: EMSG_TICK: Unused.
|
|
|
|
// EMSG_INIT: When a new entity is instantiated.
|
|
|
|
// At map loading, do not issue this message immediately
|
|
|
|
// for each entity as it is loaded; instead, wait for all
|
|
|
|
// entities to be created, then issue this message to all
|
|
|
|
// of them simultaneously.
|
2004-05-22 01:46:16 +02:00
|
|
|
|
|
|
|
#ifndef MESSAGING_INCLUDED
|
|
|
|
#define MESSAGING_INCLUDED
|
|
|
|
|
|
|
|
struct CMessage
|
|
|
|
{
|
|
|
|
enum EMessageType
|
|
|
|
{
|
|
|
|
EMSG_TICK,
|
|
|
|
EMSG_INIT
|
|
|
|
} type;
|
|
|
|
CMessage( EMessageType _type )
|
|
|
|
{
|
|
|
|
type = _type;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2004-06-02 18:11:32 +02:00
|
|
|
#endif
|