mirror of
https://github.com/DCFApixels/DragonECS.git
synced 2025-09-18 09:54:35 +08:00
add entlong.NewUnsafe
This commit is contained in:
parent
910dfb2d51
commit
cfcd2d131a
@ -95,6 +95,12 @@ namespace DCFApixels.DragonECS
|
||||
{
|
||||
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
|
||||
|
||||
#region TryGetters
|
||||
|
Loading…
Reference in New Issue
Block a user