refactor: changed concrete list arguments to interface list arguments
This commit is contained in:
parent
6b9020bd24
commit
3e02ee7b6f
@ -20,7 +20,7 @@ public static class BehaviourExtensions
|
||||
return behaviour is not null;
|
||||
}
|
||||
|
||||
public static void FindBehaviours<T>(this IEnumerable<IUniverseObject> universeObjects, List<T> behaviours) where T : class
|
||||
public static void FindBehaviours<T>(this IEnumerable<IUniverseObject> universeObjects, IList<T> behaviours) where T : class
|
||||
{
|
||||
behaviours.Clear();
|
||||
List<T> cache = [];
|
||||
|
@ -29,7 +29,7 @@ public static class UniverseObjectExtensions
|
||||
return behaviour is not null;
|
||||
}
|
||||
|
||||
public static void GetUniverseObjects<T>(this IEnumerable<IUniverseObject> universeObjects, List<T> behaviours) where T : class
|
||||
public static void GetUniverseObjects<T>(this IEnumerable<IUniverseObject> universeObjects, IList<T> behaviours) where T : class
|
||||
{
|
||||
behaviours.Clear();
|
||||
foreach (IUniverseObject universeObject in universeObjects)
|
||||
|
Loading…
x
Reference in New Issue
Block a user