diff --git a/encompass-cs/Renderer.cs b/encompass-cs/Renderer.cs index d2d82d6..1e6dee8 100644 --- a/encompass-cs/Renderer.cs +++ b/encompass-cs/Renderer.cs @@ -29,6 +29,16 @@ namespace Encompass return entityManager.GetEntity(entityID); } + protected Guid GetEntityIDByComponentID(Guid componentID) + { + return componentManager.GetEntityIDByComponentID(componentID); + } + + protected Entity GetEntityByComponentID(Guid componentID) + { + return GetEntity(GetEntityIDByComponentID(componentID)); + } + protected IEnumerable> ReadComponents() where TComponent : struct, IComponent { return componentManager.GetActiveComponentsByType();