Initial Commit
This commit is contained in:
commit
ee5c2f922d
2255 changed files with 547750 additions and 0 deletions
13
Assets/Scripts/Events/EventComponentGroup.cs
Normal file
13
Assets/Scripts/Events/EventComponentGroup.cs
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
using Unity.Entities;
|
||||
|
||||
namespace Events
|
||||
{
|
||||
public static class EventComponentGroupEntityComponentBufferExtensions
|
||||
{
|
||||
public static void RemoveEventComponents<T>(this EntityCommandBuffer buffer, EntityQueryBuilder queryBuilder)
|
||||
where T : struct, IComponentData, IEventComponentData
|
||||
{
|
||||
queryBuilder.ForEach((Entity entity, ref T e) => { buffer.RemoveComponent<InventoryDirtyEventData>(entity); });
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue