Skip to content

Commit

Permalink
forgot to add shortcuts
Browse files Browse the repository at this point in the history
  • Loading branch information
JerryImMouse committed Jul 16, 2024
1 parent 06aa16b commit 3745295
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Hypercube.Shared/Entities/Realisation/Systems/EntitySystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,16 @@ protected IEnumerable<Entity<T>> GetEntities<T>() where T : IComponent
{
return _entitiesComponentManager.GetEntities<T>();
}

protected IEnumerable<Entity<T1, T2>> GetEntities<T1, T2>() where T1 : IComponent where T2 : IComponent
{
return _entitiesComponentManager.GetEntities<T1, T2>();
}

protected IEnumerable<Entity<T1, T2, T3>> GetEntities<T1, T2, T3>() where T1 : IComponent where T2 : IComponent where T3 : IComponent
{
return _entitiesComponentManager.GetEntities<T1, T2, T3>();
}

protected void Subscribe<T>(EventRefHandler<T> callback) where T : IEventArgs
{
Expand Down

0 comments on commit 3745295

Please sign in to comment.