mirror of
https://github.com/DCFApixels/DragonECS.git
synced 2025-09-18 18:14:37 +08:00
update Unpack
This commit is contained in:
parent
14be3cf78b
commit
5ca6802ae9
@ -120,28 +120,41 @@ namespace DCFApixels.DragonECS
|
|||||||
worldID = world;
|
worldID = world;
|
||||||
return IsAlive;
|
return IsAlive;
|
||||||
}
|
}
|
||||||
public void Unpack(out EcsWorld world, out int id)
|
public void Unpack(out int id, out EcsWorld world)
|
||||||
{
|
{
|
||||||
world = EcsWorld.GetWorld(this.world);
|
world = EcsWorld.GetWorld(this.world);
|
||||||
id = this.id;
|
id = this.id;
|
||||||
}
|
}
|
||||||
public void Unpack(out int worldID, out int id)
|
public void Unpack(out int id, out int worldID)
|
||||||
{
|
{
|
||||||
worldID = world;
|
worldID = world;
|
||||||
id = this.id;
|
id = this.id;
|
||||||
}
|
}
|
||||||
public bool TryUnpack(out EcsWorld world, out int id)
|
public void Unpack(out int id, out short gen, out short worldID)
|
||||||
|
{
|
||||||
|
worldID = world;
|
||||||
|
gen = this.gen;
|
||||||
|
id = this.id;
|
||||||
|
}
|
||||||
|
public bool TryUnpack(out int id, out EcsWorld world)
|
||||||
{
|
{
|
||||||
world = EcsWorld.GetWorld(this.world);
|
world = EcsWorld.GetWorld(this.world);
|
||||||
id = this.id;
|
id = this.id;
|
||||||
return IsAlive;
|
return IsAlive;
|
||||||
}
|
}
|
||||||
public bool TryUnpack(out int worldID, out int id)
|
public bool TryUnpack(out int id, out int worldID)
|
||||||
{
|
{
|
||||||
worldID = world;
|
worldID = world;
|
||||||
id = this.id;
|
id = this.id;
|
||||||
return IsAlive;
|
return IsAlive;
|
||||||
}
|
}
|
||||||
|
public bool TryUnpack(out int id, out short gen, out short worldID)
|
||||||
|
{
|
||||||
|
worldID = world;
|
||||||
|
gen = this.gen;
|
||||||
|
id = this.id;
|
||||||
|
return IsAlive;
|
||||||
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Operators
|
#region Operators
|
||||||
|
Loading…
Reference in New Issue
Block a user