Drag[en]gine Script Module DragonScript  1.23
Dragengine.Utils.GlobalEvents Class Reference

Global events. More...

Inheritance diagram for Dragengine.Utils.GlobalEvents:

Classes

class  BlockListener
 Listener Implementation calling code block. More...
 
class  DefaultListener
 Default implementation of event listener. More...
 
interface  Listener
 Event listener. More...
 

Detailed Description

Global events.

Provides support to register events on a global level and add listeners to them. This can be used to add global game events without needing to set up customized listeners for each event.

Global events use a common listener interface with one single method. Optionally code blocks can be assigned as listeners which avoids the need to implement the listener interface. In general though it is recommended to use the interface instead of the block.

Global events are generic by nature. The senders and listeners have to know what optional data can be send along an event as well as who the source might be.


The documentation for this class was generated from the following file: