From d970212c23b7db223fe18e418654770fba49812e Mon Sep 17 00:00:00 2001 From: ByteWarsJedi <99481254+DCFApixels@users.noreply.github.com> Date: Mon, 16 Dec 2024 12:55:22 +0800 Subject: [PATCH] add UncheckedCoreUtility.CreateEntLong --- src/Utils/UncheckedCoreUtility.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Utils/UncheckedCoreUtility.cs b/src/Utils/UncheckedCoreUtility.cs index 196f845..448258f 100644 --- a/src/Utils/UncheckedCoreUtility.cs +++ b/src/Utils/UncheckedCoreUtility.cs @@ -6,6 +6,16 @@ namespace DCFApixels.DragonECS.UncheckedCore { public static class UncheckedCoreUtility { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static entlong CreateEntLong(int entityID, short gen, short worldID) + { + return new entlong(entityID, gen, worldID); + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static entlong CreateEntLong(long entityGenWorld) + { + return new entlong(entityGenWorld); + } [MethodImpl(MethodImplOptions.AggressiveInlining)] public static EcsSpan CreateSpan(short worldID, ReadOnlySpan entitesArray) {