mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-13 12:37:07 +00:00
Updates GetComponetsofType generic
This commit is contained in:
parent
bee73edbe1
commit
76a8b50b6f
3 changed files with 5 additions and 3 deletions
|
|
@ -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
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue