remove mutable get
parent
df4a953628
commit
18fd4ceaa6
|
@ -371,20 +371,6 @@ namespace Encompass
|
|||
return ref GetComponentHelper<TComponent>(entity.ID);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns a Component by reference with the specified Type that exists on the Entity.
|
||||
/// </summary>
|
||||
/// <exception cref="Encompass.Exceptions.NoComponentOfTypeOnEntityException">
|
||||
/// Thrown when the Entity does not have a Component of the specified Type
|
||||
/// </exception>
|
||||
/// <exception cref="Encompass.Exceptions.IllegalReadException">
|
||||
/// Thrown when the Engine does not declare that it reads the given Component Type.
|
||||
/// </exception>
|
||||
protected ref TComponent GetComponentMutable<TComponent>(in Entity entity) where TComponent : struct, IComponent
|
||||
{
|
||||
return ref GetComponentHelper<TComponent>(entity.ID);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if the Entity has a Component of the given Type.
|
||||
/// </summary>
|
||||
|
|
Loading…
Reference in New Issue