This commit is contained in:
Mikhail 2024-11-04 07:40:19 +08:00
parent 6a0a28a199
commit f2df21bcdc
2 changed files with 7 additions and 7 deletions

View File

@ -37,7 +37,7 @@ namespace DCFApixels.DragonECS
public short WorldID public short WorldID
{ {
[MethodImpl(MethodImplOptions.AggressiveInlining)] [MethodImpl(MethodImplOptions.AggressiveInlining)]
get { return _world.id; } get { return _world.ID; }
} }
public EcsWorld GraphWorld public EcsWorld GraphWorld
{ {
@ -47,7 +47,7 @@ namespace DCFApixels.DragonECS
public short GraphWorldID public short GraphWorldID
{ {
[MethodImpl(MethodImplOptions.AggressiveInlining)] [MethodImpl(MethodImplOptions.AggressiveInlining)]
get { return _graphWorld.id; } get { return _graphWorld.ID; }
} }
public int Count public int Count
{ {

View File

@ -9,7 +9,7 @@ namespace DCFApixels.DragonECS
public static EcsGraph CreateGraph(this EcsWorld self, EcsWorld graphWorld) public static EcsGraph CreateGraph(this EcsWorld self, EcsWorld graphWorld)
{ {
int worldID = self.id; int worldID = self.ID;
if (_worldGraphs.Length <= worldID) if (_worldGraphs.Length <= worldID)
{ {
Array.Resize(ref _worldGraphs, worldID + 4); Array.Resize(ref _worldGraphs, worldID + 4);
@ -21,13 +21,13 @@ namespace DCFApixels.DragonECS
} }
graph = new EcsGraph(self, graphWorld); graph = new EcsGraph(self, graphWorld);
new Destroyer(graph); new Destroyer(graph);
_worldGraphs[graphWorld.id] = graph; _worldGraphs[graphWorld.ID] = graph;
return graph; return graph;
} }
public static EcsGraph CreateOrGetGraph(this EcsWorld self, EcsWorld graphWorld) public static EcsGraph CreateOrGetGraph(this EcsWorld self, EcsWorld graphWorld)
{ {
int worldID = self.id; int worldID = self.ID;
if (_worldGraphs.Length <= worldID) if (_worldGraphs.Length <= worldID)
{ {
Array.Resize(ref _worldGraphs, worldID + 4); Array.Resize(ref _worldGraphs, worldID + 4);
@ -39,13 +39,13 @@ namespace DCFApixels.DragonECS
} }
graph = new EcsGraph(self, graphWorld); graph = new EcsGraph(self, graphWorld);
new Destroyer(graph); new Destroyer(graph);
_worldGraphs[graphWorld.id] = graph; _worldGraphs[graphWorld.ID] = graph;
return graph; return graph;
} }
public static bool TryGetGraph(this EcsWorld self, out EcsGraph graph) public static bool TryGetGraph(this EcsWorld self, out EcsGraph graph)
{ {
int worldID = self.id; int worldID = self.ID;
if (_worldGraphs.Length <= worldID) if (_worldGraphs.Length <= worldID)
{ {
Array.Resize(ref _worldGraphs, worldID + 4); Array.Resize(ref _worldGraphs, worldID + 4);