refactor: renamed behaviour collectors from sorted to ordered

This commit is contained in:
2025-10-11 16:00:47 +03:00
parent 566c16d09c
commit e3d4899112
9 changed files with 22 additions and 32 deletions

View File

@@ -8,7 +8,7 @@ public class LoadContentManager : Behaviour, IFirstFrameUpdate
// We use Ascending order because we are using reverse for loop to call them
private static Comparer<IBehaviour> SortByAscendingPriority() => Comparer<IBehaviour>.Create((x, y) => x.Priority.CompareTo(y.Priority));
private readonly ActiveBehaviourCollectorSorted<ILoadContent> loadContents = new() { SortBy = SortByAscendingPriority() };
private readonly ActiveBehaviourCollectorOrdered<ILoadContent> loadContents = new() { SortBy = SortByAscendingPriority() };
private readonly List<ILoadContent> toCallLoadContents = new(32);
private MonoGameWindowContainer monoGameWindowContainer = null!;