diff --git a/api/AltV.Net.Shared/AltShared.cs b/api/AltV.Net.Shared/AltShared.cs index 24500616..84d800b7 100644 --- a/api/AltV.Net.Shared/AltShared.cs +++ b/api/AltV.Net.Shared/AltShared.cs @@ -13,5 +13,7 @@ public static class AltShared 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(IMValueAdapter adapter) => CoreImpl.RegisterMValueAdapter(adapter); } } \ No newline at end of file diff --git a/api/AltV.Net/Alt.Log.cs b/api/AltV.Net/Alt.Log.cs index 65373a82..a2e93528 100644 --- a/api/AltV.Net/Alt.Log.cs +++ b/api/AltV.Net/Alt.Log.cs @@ -38,21 +38,37 @@ public static void LogFast(string message) Console.WriteLine(stringBuilder.ToString()); } + /// + /// Logging a message as Information about something + /// + /// a message public static void LogInfo(string message) { Alt.CoreImpl.LogInfo(message); } - + + /// + /// Logging a message if Debug-Mode is enabled + /// + /// a message public static void LogDebug(string message) { Alt.CoreImpl.LogDebug(message); } - + + /// + /// Logging a message as Warning about something maybe being wrong, but not being very important + /// + /// a message public static void LogWarning(string message) { Alt.CoreImpl.LogWarning(message); } - + + /// + /// Logging a message as Error about something going very wrong, which needs immediate action + /// + /// a message public static void LogError(string message) { Alt.CoreImpl.LogError(message); diff --git a/api/AltV.Net/Alt.cs b/api/AltV.Net/Alt.cs index a759d89f..37a8cd25 100644 --- a/api/AltV.Net/Alt.cs +++ b/api/AltV.Net/Alt.cs @@ -41,6 +41,10 @@ public static void EmitUnreliableClients(IPlayer[] clients, string eventName, pa public static IEnumerable GetRegisteredClientEvents() => CoreImpl.GetRegisteredClientEvents(); public static IEnumerable GetRegisteredServerEvents() => CoreImpl.GetRegisteredServerEvents(); + /// + /// Logging a message + /// + /// a message public static void Log(string message) => CoreImpl.LogInfo(message); public static VehicleModelInfo GetVehicleModelInfo(uint hash) => CoreImpl.GetVehicleModelInfo(hash);