mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
By default events raised on the ECS event bus are now dispatched immediately. (#794)
Added a new EntityManager.QueueEvent() method that queues the event for the next tick.
This commit is contained in:
committed by
Pieter-Jan Briers
parent
55fb70af8b
commit
faf99d2231
@@ -334,6 +334,11 @@ namespace Robust.Shared.GameObjects
|
||||
}
|
||||
|
||||
public void RaiseEvent(object sender, EntityEventArgs toRaise)
|
||||
{
|
||||
ProcessSingleEvent(new Tuple<object, EntityEventArgs>(sender, toRaise));
|
||||
}
|
||||
|
||||
public void QueueEvent(object sender, EntityEventArgs toRaise)
|
||||
{
|
||||
_eventQueue.Enqueue(new Tuple<object, EntityEventArgs>(sender, toRaise));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user