Crossfire Server, Trunk
|
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. More...
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.