Skip to content

Commit

Permalink
Merge branch 'rc' into release
Browse files Browse the repository at this point in the history
  • Loading branch information
Doxoh committed Sep 25, 2024
2 parents 693a566 + 6067134 commit 8177cfc
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions api/AltV.Net.Shared/AltShared.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,37 @@ namespace AltV.Net.Shared
public static class AltShared
{
internal static ISharedCore CoreImpl { get; set; }

public static uint Hash(string key) => CoreImpl.Hash(key);

public static bool CacheEntities = true;

public static void EmitLocal(string eventName, params object[] args) => CoreImpl.TriggerLocalEvent(eventName, args);

public static void RegisterMValueAdapter<T>(IMValueAdapter<T> adapter) => CoreImpl.RegisterMValueAdapter(adapter);

public static string SdkVersion => CoreImpl.SdkVersion;

public static string CApiVersion => CoreImpl.CApiVersion;

public static string Version => CoreImpl.Version;

public static string Branch => CoreImpl.Branch;

public static bool IsDebug => CoreImpl.IsDebug;

public static void LogInfo(string message) => CoreImpl.LogInfo(message);

public static void LogDebug(string message) => CoreImpl.LogDebug(message);

public static void LogWarning(string message) => CoreImpl.LogWarning(message);

public static void LogError(string message) => CoreImpl.LogError(message);

public static void LogColored(string message) => CoreImpl.LogColored(message);

public static bool IsMainThread() => CoreImpl.IsMainThread();

public static int NetTime => CoreImpl.NetTime;
}
}

0 comments on commit 8177cfc

Please sign in to comment.