|
Crossfire Server
1.75.0
|
To not have to check the whole inventory each time, each object has a event_bitmask field which indicates whether the object has a handler or not for this event. More...
Modules | |
| Local events | |
| Local events are linked to particular objects, for example, a special apply event for a particular artifact sword. | |
| Global events | |
| Global events dispatch to all plugins that register to the event. | |
To not have to check the whole inventory each time, each object has a event_bitmask field which indicates whether the object has a handler or not for this event.
The bitmask is updated when an event hook is inserted into another, and cleaned when a hook is removed from an object. In this case is it recomputed the first time it is needed. There are Local events and Global events.