A data class for creating message plugins.
Use RegisterMessagePlugin() to register a message plugin.
Here is an example of a message plugin, which CoreMessage() method is called each 100 ms:
#include "c4d.h"
#include "c4d_symbols.h"
class TimerMessage : public MessageData
{
};
Int32 TimerMessage::GetTimer()
{
return 100;
}
Bool TimerMessage::CoreMessage(
Int32 id,
const BaseContainer &bc)
{
{
}
return true;
}
Bool RegisterTimerMessage()
{
}
#define MSG_TIMER
Definition: c4d_messageplugin.h:18
virtual Bool CoreMessage(Int32 id, const BaseContainer &bc)=0
maxon::Bool Bool
Definition: ge_sys_math.h:46
Bool RegisterMessagePlugin(Int32 id, const maxon::String &str, Int32 info, MessageData *dat)
maxon::Int32 Int32
Definition: ge_sys_math.h:51
#define NewObj(T,...)
Definition: newobj.h:108