From 1ef141422ccd764f598173c921c2620640dc4dc5 Mon Sep 17 00:00:00 2001 From: cosmonaut Date: Mon, 9 Oct 2023 17:34:55 -0700 Subject: [PATCH] more determinism --- src/FilterStorage.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/FilterStorage.cs b/src/FilterStorage.cs index 163751e..3cdf170 100644 --- a/src/FilterStorage.cs +++ b/src/FilterStorage.cs @@ -9,7 +9,7 @@ namespace MoonTools.ECS private EntityStorage EntityStorage; private TypeIndices ComponentTypeIndices; private Dictionary> filterSignatureToEntityIDs = new Dictionary>(); - private Dictionary> typeToFilterSignatures = new Dictionary>(); + private Dictionary> typeToFilterSignatures = new Dictionary>(); private Dictionary> addCallbacks = new Dictionary>(); private Dictionary> removeCallbacks = new Dictionary>(); @@ -31,7 +31,7 @@ namespace MoonTools.ECS { if (!typeToFilterSignatures.ContainsKey(type)) { - typeToFilterSignatures.Add(type, new HashSet()); + typeToFilterSignatures.Add(type, new List()); } typeToFilterSignatures[type].Add(filterSignature); @@ -41,7 +41,7 @@ namespace MoonTools.ECS { if (!typeToFilterSignatures.ContainsKey(type)) { - typeToFilterSignatures.Add(type, new HashSet()); + typeToFilterSignatures.Add(type, new List()); } typeToFilterSignatures[type].Add(filterSignature);