PointClickEngine::Core::Events::GameEvent
Inherits Reference < Object
Base class for all game events
Events are immutable data objects that carry information about something that happened in the game. They can be consumed to prevent further propagation.
Example:
class PlayerMovedEvent < GameEvent
define_event_type "player:moved"
getter position : RL::Vector2
getter old_position : RL::Vector2
def initialize(@position, @old_position)
super()
end
end
Constructors
new
Source