We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a6967d commit f93ec35Copy full SHA for f93ec35
Engine/Staple.Core/World/World.cs
@@ -92,6 +92,11 @@ public Entity ToEntity()
92
}
93
};
94
95
+
96
+ public override string ToString()
97
+ {
98
+ return alive ? $"{name} ({ID}:{generation})" : "Invalid Entity (Dead)";
99
+ }
100
101
102
/// <summary>
@@ -176,7 +181,7 @@ public int EntityCount
176
181
177
182
private EntityInfo[] cachedEntityList = [];
178
183
private bool needsEmitWorldChange = false;
179
- private readonly HashSet<int> deadEntities = [];
184
+ private readonly SortedSet<int> deadEntities = [];
180
185
186
private static readonly WorldChangeBox worldChangeReceivers = new();
187
private static readonly SceneQueryBox sceneQueries = new();
0 commit comments