This commit is contained in:
Mikhail 2023-06-05 22:22:21 +08:00
parent c05a038e77
commit 11acff9bac

View File

@ -44,6 +44,7 @@ namespace DCFApixels.DragonECS
private Builder(EcsWorld world) private Builder(EcsWorld world)
{ {
_world = world; _world = world;
_subjects = new List<CombinedSubject>();
_inc = new HashSet<int>(8); _inc = new HashSet<int>(8);
_exc = new HashSet<int>(4); _exc = new HashSet<int>(4);
} }
@ -225,10 +226,10 @@ namespace DCFApixels.DragonECS
_dummyHashSet.Clear(); _dummyHashSet.Clear();
foreach (var item in array) foreach (var item in array)
{ {
if (_dummyHashSet.Contains(item)) return false; if (_dummyHashSet.Contains(item)) return true;
_dummyHashSet.Add(item); _dummyHashSet.Add(item);
} }
return true; return false;
} }
#endif #endif
private static string CreateLogString(Type worldType, int[] inc, int[] exc) private static string CreateLogString(Type worldType, int[] inc, int[] exc)