refactor: changed concrete list arguments to interface list arguments
This commit is contained in:
		@@ -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)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user