mirror of
https://github.com/DCFApixels/DragonECS.git
synced 2025-09-18 01:44:35 +08:00
add explicit conversion from entlong to int
This commit is contained in:
parent
112b96384d
commit
1a5372b7c0
@ -161,6 +161,8 @@ namespace DCFApixels.DragonECS
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static explicit operator long(in entlong a) => a.full;
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static explicit operator int(in entlong a) => a.ID;
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static explicit operator entlong(in long a) => new entlong(a);
|
||||
#endregion
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user