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