add World.ClearMessages
parent
523b6e3ef7
commit
f849db955c
|
@ -391,6 +391,12 @@ namespace MoonTools.ECS
|
|||
return MessageIndex[typeId].First<T>();
|
||||
}
|
||||
|
||||
public void ClearMessages<T>() where T : unmanaged
|
||||
{
|
||||
var typeId = GetMessageTypeId<T>();
|
||||
MessageIndex[typeId].Clear();
|
||||
}
|
||||
|
||||
// TODO: temporary component storage?
|
||||
public void FinishUpdate()
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue