-
Notifications
You must be signed in to change notification settings - Fork 0
Home
ContronThePanda edited this page Dec 21, 2019
·
2 revisions
This tutorial explains how events are used in Terasology's Entity Component System.
In the simplest terms, events are objects send to an entity to indicate that something has happened, and it may want to react. Events are handled by systems, which are covered in detail here. Event classes have pretty much no restrictions; they can store whatever data they want and have any methods they want, although methods should be kept light and stick to basic data processing, since actual behavior should be put in systems. Events also follow inheritance, so any events which extend an existing event will trigger handlers for the parent event as well as their own.