Legend of the Green Dragon v0.3.0-alpha Release Notes
Release Date: 2017-04-25 // about 7 years ago-
Preview 0.3.0-alpha introduces a change in the event API to allow stricter control of context parameters:
public static function handleEvent(Game $g, EventContext $context): EventContext;
EventContext
gives access to the called event name viaEvent()
and to the matched pattern viagetMatchingPattern
. Depending on the type of theEventContextData
, different fields are available and modifyable viagetDataField($field)
andsetDataField($field, $value)
.