mirror of
https://github.com/DCFApixels/DragonECS-Graphs.git
synced 2025-09-17 19:24:36 +08:00
update
This commit is contained in:
parent
6a0a28a199
commit
f2df21bcdc
@ -37,7 +37,7 @@ namespace DCFApixels.DragonECS
|
||||
public short WorldID
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get { return _world.id; }
|
||||
get { return _world.ID; }
|
||||
}
|
||||
public EcsWorld GraphWorld
|
||||
{
|
||||
@ -47,7 +47,7 @@ namespace DCFApixels.DragonECS
|
||||
public short GraphWorldID
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get { return _graphWorld.id; }
|
||||
get { return _graphWorld.ID; }
|
||||
}
|
||||
public int Count
|
||||
{
|
||||
|
@ -9,7 +9,7 @@ namespace DCFApixels.DragonECS
|
||||
|
||||
public static EcsGraph CreateGraph(this EcsWorld self, EcsWorld graphWorld)
|
||||
{
|
||||
int worldID = self.id;
|
||||
int worldID = self.ID;
|
||||
if (_worldGraphs.Length <= worldID)
|
||||
{
|
||||
Array.Resize(ref _worldGraphs, worldID + 4);
|
||||
@ -21,13 +21,13 @@ namespace DCFApixels.DragonECS
|
||||
}
|
||||
graph = new EcsGraph(self, graphWorld);
|
||||
new Destroyer(graph);
|
||||
_worldGraphs[graphWorld.id] = graph;
|
||||
_worldGraphs[graphWorld.ID] = graph;
|
||||
return graph;
|
||||
}
|
||||
|
||||
public static EcsGraph CreateOrGetGraph(this EcsWorld self, EcsWorld graphWorld)
|
||||
{
|
||||
int worldID = self.id;
|
||||
int worldID = self.ID;
|
||||
if (_worldGraphs.Length <= worldID)
|
||||
{
|
||||
Array.Resize(ref _worldGraphs, worldID + 4);
|
||||
@ -39,13 +39,13 @@ namespace DCFApixels.DragonECS
|
||||
}
|
||||
graph = new EcsGraph(self, graphWorld);
|
||||
new Destroyer(graph);
|
||||
_worldGraphs[graphWorld.id] = graph;
|
||||
_worldGraphs[graphWorld.ID] = graph;
|
||||
return graph;
|
||||
}
|
||||
|
||||
public static bool TryGetGraph(this EcsWorld self, out EcsGraph graph)
|
||||
{
|
||||
int worldID = self.id;
|
||||
int worldID = self.ID;
|
||||
if (_worldGraphs.Length <= worldID)
|
||||
{
|
||||
Array.Resize(ref _worldGraphs, worldID + 4);
|
||||
|
Loading…
Reference in New Issue
Block a user