mirror of
https://github.com/DCFApixels/DragonECS.git
synced 2025-09-18 18:14:37 +08:00
add entlong.NewUnsafe
This commit is contained in:
parent
910dfb2d51
commit
cfcd2d131a
@ -95,6 +95,12 @@ namespace DCFApixels.DragonECS
|
|||||||
{
|
{
|
||||||
this.full = full;
|
this.full = full;
|
||||||
}
|
}
|
||||||
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||||
|
internal static unsafe entlong NewUnsafe(long id, long gen, long world)
|
||||||
|
{
|
||||||
|
long x = id << 48 | gen << 32 | id;
|
||||||
|
return *(entlong*)&x;
|
||||||
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region TryGetters
|
#region TryGetters
|
||||||
|
Loading…
Reference in New Issue
Block a user