more determinism
parent
7b519ed4b2
commit
1ef141422c
|
@ -9,7 +9,7 @@ namespace MoonTools.ECS
|
||||||
private EntityStorage EntityStorage;
|
private EntityStorage EntityStorage;
|
||||||
private TypeIndices ComponentTypeIndices;
|
private TypeIndices ComponentTypeIndices;
|
||||||
private Dictionary<FilterSignature, IndexableSet<Entity>> filterSignatureToEntityIDs = new Dictionary<FilterSignature, IndexableSet<Entity>>();
|
private Dictionary<FilterSignature, IndexableSet<Entity>> filterSignatureToEntityIDs = new Dictionary<FilterSignature, IndexableSet<Entity>>();
|
||||||
private Dictionary<int, HashSet<FilterSignature>> typeToFilterSignatures = new Dictionary<int, HashSet<FilterSignature>>();
|
private Dictionary<int, List<FilterSignature>> typeToFilterSignatures = new Dictionary<int, List<FilterSignature>>();
|
||||||
|
|
||||||
private Dictionary<FilterSignature, Action<Entity>> addCallbacks = new Dictionary<FilterSignature, Action<Entity>>();
|
private Dictionary<FilterSignature, Action<Entity>> addCallbacks = new Dictionary<FilterSignature, Action<Entity>>();
|
||||||
private Dictionary<FilterSignature, Action<Entity>> removeCallbacks = new Dictionary<FilterSignature, Action<Entity>>();
|
private Dictionary<FilterSignature, Action<Entity>> removeCallbacks = new Dictionary<FilterSignature, Action<Entity>>();
|
||||||
|
@ -31,7 +31,7 @@ namespace MoonTools.ECS
|
||||||
{
|
{
|
||||||
if (!typeToFilterSignatures.ContainsKey(type))
|
if (!typeToFilterSignatures.ContainsKey(type))
|
||||||
{
|
{
|
||||||
typeToFilterSignatures.Add(type, new HashSet<FilterSignature>());
|
typeToFilterSignatures.Add(type, new List<FilterSignature>());
|
||||||
}
|
}
|
||||||
|
|
||||||
typeToFilterSignatures[type].Add(filterSignature);
|
typeToFilterSignatures[type].Add(filterSignature);
|
||||||
|
@ -41,7 +41,7 @@ namespace MoonTools.ECS
|
||||||
{
|
{
|
||||||
if (!typeToFilterSignatures.ContainsKey(type))
|
if (!typeToFilterSignatures.ContainsKey(type))
|
||||||
{
|
{
|
||||||
typeToFilterSignatures.Add(type, new HashSet<FilterSignature>());
|
typeToFilterSignatures.Add(type, new List<FilterSignature>());
|
||||||
}
|
}
|
||||||
|
|
||||||
typeToFilterSignatures[type].Add(filterSignature);
|
typeToFilterSignatures[type].Add(filterSignature);
|
||||||
|
|
Loading…
Reference in New Issue