mirror of
https://github.com/DCFApixels/DragonECS-Graphs.git
synced 2025-09-18 03:34:35 +08:00
update
This commit is contained in:
parent
6a0a28a199
commit
f2df21bcdc
@ -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
|
||||||
{
|
{
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user