Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames

Engine.MessageDispatcher


00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
// IGA class
class MessageDispatcher extends Core.Object
	native;

struct native ReceiverInfo
{
	var Actor receiver;
	var class<Message> messageClass;
};

// receivers and triggerers are stl multimaps defined natively which is 24 bytes
var transient noexport private const int receivers[6];

// registerReceiver
// Registers a receiver's interest in a message
// triggeredByFilter is a comma-separated list of actor labels
native function registerReceiver(Actor receiver, class<Message> messageClass, string triggeredByFilter);

// dispatch
// Dispatches a message to all interested receivers
// The msg object is destroyed after dispatch - you must not hold any references to a message object once
// it has been dispatched.
// msg is set to None during the dispatch call, to emphasise this.
native function dispatch(Actor dispatcher, out Message msg);

// deleteMessage
native function deleteMessage(Message msg);

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: ne 5.9.2004 16:01:26.000 - Creation time: st 23.5.2018 00:10:45.325 - Created with UnCodeX