feat: IBehaviourController.CollectionMethod added
This commit is contained in:
@@ -58,9 +58,11 @@ public class BehaviourController : BaseEntity, IBehaviourController
|
||||
return behaviours;
|
||||
}
|
||||
|
||||
public void GetBehaviours<T>(IList<T> results)
|
||||
public void GetBehaviours<T>(IList<T> results, IBehaviourController.CollectionMethod collectionMethod = IBehaviourController.CollectionMethod.Clear)
|
||||
{
|
||||
results.Clear();
|
||||
if (collectionMethod == IBehaviourController.CollectionMethod.Clear)
|
||||
results.Clear();
|
||||
|
||||
foreach (IBehaviour behaviourItem in behaviours)
|
||||
{
|
||||
if (behaviourItem is not T behaviour)
|
||||
|
||||
Reference in New Issue
Block a user