ecs-lua
ecs-lua copied to clipboard
Event system
Allow systems to trigger events that can be captured by other systems during their update.
It is important that the event is available for reading by systems that have already been executed in the current frame.
After reading messages, events should no longer appear to the reading system.
self:Publish("my.topic", Payload)
local messages = self:Consume("my.topic")