Updates GetComponetsofType generic

This commit is contained in:
Neil Dorin
2021-01-28 17:46:12 -07:00
parent bee73edbe1
commit 76a8b50b6f
3 changed files with 5 additions and 3 deletions

View File

@@ -106,7 +106,7 @@ namespace PepperDash.Essentials.Core.Room
/// </summary>
/// <typeparam name="T"></typeparam>
/// <returns></returns>
public List<T> GetRoomComponentsOfType<T>() where T : IActivatableComponent
public List<T> GetComponentsOfType<T>() where T : IActivatableComponent
{
return Components.OfType<T>().ToList();
}

View File

@@ -34,4 +34,6 @@ namespace PepperDash.Essentials.Core.Room.Components
}
}
}