mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-11 10:45:00 +00:00
Updates GetComponetsofType generic
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -34,4 +34,6 @@ namespace PepperDash.Essentials.Core.Room.Components
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user