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 24, 2024
2 parents e1106b7 + b583389 commit 693a566
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 3 deletions.
2 changes: 2 additions & 0 deletions api/AltV.Net.Shared/AltShared.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<T>(IMValueAdapter<T> adapter) => CoreImpl.RegisterMValueAdapter(adapter);
}
}
22 changes: 19 additions & 3 deletions api/AltV.Net/Alt.Log.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,21 +38,37 @@ public static void LogFast(string message)
Console.WriteLine(stringBuilder.ToString());
}

/// <summary>
/// Logging a message as Information about something
/// </summary>
/// <param name="message">a message</param>
public static void LogInfo(string message)
{
Alt.CoreImpl.LogInfo(message);
}


/// <summary>
/// Logging a message if Debug-Mode is enabled
/// </summary>
/// <param name="message">a message</param>
public static void LogDebug(string message)
{
Alt.CoreImpl.LogDebug(message);
}


/// <summary>
/// Logging a message as Warning about something maybe being wrong, but not being very important
/// </summary>
/// <param name="message"> a message</param>
public static void LogWarning(string message)
{
Alt.CoreImpl.LogWarning(message);
}


/// <summary>
/// Logging a message as Error about something going very wrong, which needs immediate action
/// </summary>
/// <param name="message">a message</param>
public static void LogError(string message)
{
Alt.CoreImpl.LogError(message);
Expand Down
4 changes: 4 additions & 0 deletions api/AltV.Net/Alt.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ public static void EmitUnreliableClients(IPlayer[] clients, string eventName, pa
public static IEnumerable<string> GetRegisteredClientEvents() => CoreImpl.GetRegisteredClientEvents();
public static IEnumerable<string> GetRegisteredServerEvents() => CoreImpl.GetRegisteredServerEvents();

/// <summary>
/// Logging a message
/// </summary>
/// <param name="message">a message</param>
public static void Log(string message) => CoreImpl.LogInfo(message);

public static VehicleModelInfo GetVehicleModelInfo(uint hash) => CoreImpl.GetVehicleModelInfo(hash);
Expand Down

0 comments on commit 693a566

Please sign in to comment.