ecs-lua icon indicating copy to clipboard operation
ecs-lua copied to clipboard

Event system

Open nidorx opened this issue 4 years ago • 1 comments

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.

nidorx avatar Oct 18 '21 23:10 nidorx

self:Publish("my.topic", Payload)

local messages = self:Consume("my.topic")

nidorx avatar Oct 18 '21 23:10 nidorx