@@ -168,6 +168,7 @@ public unsafe interface IClientLibrary
168168 public delegate* unmanaged[Cdecl]<nint, Vector2*, void> Core_GetScreenResolution { get; }
169169 public delegate* unmanaged[Cdecl]<nint, int*, nint> Core_GetServerIp { get; }
170170 public delegate* unmanaged[Cdecl]<nint, ushort> Core_GetServerPort { get; }
171+ public delegate* unmanaged[Cdecl]<nint, ulong> Core_GetServerTime { get; }
171172 public delegate* unmanaged[Cdecl]<nint, nint, byte> Core_GetStatBool { get; }
172173 public delegate* unmanaged[Cdecl]<nint, nint, nint> Core_GetStatData { get; }
173174 public delegate* unmanaged[Cdecl]<nint, nint, float> Core_GetStatFloat { get; }
@@ -901,7 +902,7 @@ public unsafe interface IClientLibrary
901902
902903 public unsafe class ClientLibrary : IClientLibrary
903904 {
904- public readonly uint Methods = 1769 ;
905+ public readonly uint Methods = 1770 ;
905906 public delegate* unmanaged[Cdecl]<nint, nint, void> Audio_AddOutput { get; }
906907 public delegate* unmanaged[Cdecl]<nint, nint> Audio_GetBaseObject { get; }
907908 public delegate* unmanaged[Cdecl]<nint, double> Audio_GetCurrentTime { get; }
@@ -1059,6 +1060,7 @@ public unsafe class ClientLibrary : IClientLibrary
10591060 public delegate* unmanaged[Cdecl]<nint, Vector2*, void> Core_GetScreenResolution { get; }
10601061 public delegate* unmanaged[Cdecl]<nint, int*, nint> Core_GetServerIp { get; }
10611062 public delegate* unmanaged[Cdecl]<nint, ushort> Core_GetServerPort { get; }
1063+ public delegate* unmanaged[Cdecl]<nint, ulong> Core_GetServerTime { get; }
10621064 public delegate* unmanaged[Cdecl]<nint, nint, byte> Core_GetStatBool { get; }
10631065 public delegate* unmanaged[Cdecl]<nint, nint, nint> Core_GetStatData { get; }
10641066 public delegate* unmanaged[Cdecl]<nint, nint, float> Core_GetStatFloat { get; }
@@ -2102,6 +2104,8 @@ public unsafe class ClientLibrary : IClientLibrary
21022104 private static nint Core_GetServerIpFallback(nint _core, int* _size) => throw new Exceptions.OutdatedSdkException("Core_GetServerIp", "Core_GetServerIp SDK method is outdated. Please update your module nuget");
21032105 [UnmanagedFunctionPointer(CallingConvention.Cdecl)] private delegate ushort Core_GetServerPortDelegate(nint _core);
21042106 private static ushort Core_GetServerPortFallback(nint _core) => throw new Exceptions.OutdatedSdkException("Core_GetServerPort", "Core_GetServerPort SDK method is outdated. Please update your module nuget");
2107+ [UnmanagedFunctionPointer(CallingConvention.Cdecl)] private delegate ulong Core_GetServerTimeDelegate(nint _core);
2108+ private static ulong Core_GetServerTimeFallback(nint _core) => throw new Exceptions.OutdatedSdkException("Core_GetServerTime", "Core_GetServerTime SDK method is outdated. Please update your module nuget");
21052109 [UnmanagedFunctionPointer(CallingConvention.Cdecl)] private delegate byte Core_GetStatBoolDelegate(nint _core, nint _stat);
21062110 private static byte Core_GetStatBoolFallback(nint _core, nint _stat) => throw new Exceptions.OutdatedSdkException("Core_GetStatBool", "Core_GetStatBool SDK method is outdated. Please update your module nuget");
21072111 [UnmanagedFunctionPointer(CallingConvention.Cdecl)] private delegate nint Core_GetStatDataDelegate(nint _core, nint _stat);
@@ -3569,7 +3573,7 @@ private IntPtr GetUnmanagedPtr<T>(IDictionary<ulong, IntPtr> funcTable, ulong ha
35693573 public ClientLibrary(Dictionary<ulong, IntPtr> funcTable)
35703574 {
35713575 if (!funcTable.TryGetValue(0, out var capiHash)) Outdated = true;
3572- else if (capiHash == IntPtr.Zero || *(ulong*)capiHash != 12612033657027659340UL ) Outdated = true;
3576+ else if (capiHash == IntPtr.Zero || *(ulong*)capiHash != 18234026019486245283UL ) Outdated = true;
35733577 Audio_AddOutput = (delegate* unmanaged[Cdecl]<nint, nint, void>) GetUnmanagedPtr<Audio_AddOutputDelegate>(funcTable, 9914412815391408844UL, Audio_AddOutputFallback);
35743578 Audio_GetBaseObject = (delegate* unmanaged[Cdecl]<nint, nint>) GetUnmanagedPtr<Audio_GetBaseObjectDelegate>(funcTable, 6330360502401226894UL, Audio_GetBaseObjectFallback);
35753579 Audio_GetCurrentTime = (delegate* unmanaged[Cdecl]<nint, double>) GetUnmanagedPtr<Audio_GetCurrentTimeDelegate>(funcTable, 2944324482134975819UL, Audio_GetCurrentTimeFallback);
@@ -3727,6 +3731,7 @@ public ClientLibrary(Dictionary<ulong, IntPtr> funcTable)
37273731 Core_GetScreenResolution = (delegate* unmanaged[Cdecl]<nint, Vector2*, void>) GetUnmanagedPtr<Core_GetScreenResolutionDelegate>(funcTable, 16078537130538515891UL, Core_GetScreenResolutionFallback);
37283732 Core_GetServerIp = (delegate* unmanaged[Cdecl]<nint, int*, nint>) GetUnmanagedPtr<Core_GetServerIpDelegate>(funcTable, 1389091625205062844UL, Core_GetServerIpFallback);
37293733 Core_GetServerPort = (delegate* unmanaged[Cdecl]<nint, ushort>) GetUnmanagedPtr<Core_GetServerPortDelegate>(funcTable, 14148467334937601992UL, Core_GetServerPortFallback);
3734+ Core_GetServerTime = (delegate* unmanaged[Cdecl]<nint, ulong>) GetUnmanagedPtr<Core_GetServerTimeDelegate>(funcTable, 8910809418132103019UL, Core_GetServerTimeFallback);
37303735 Core_GetStatBool = (delegate* unmanaged[Cdecl]<nint, nint, byte>) GetUnmanagedPtr<Core_GetStatBoolDelegate>(funcTable, 4132285709171755304UL, Core_GetStatBoolFallback);
37313736 Core_GetStatData = (delegate* unmanaged[Cdecl]<nint, nint, nint>) GetUnmanagedPtr<Core_GetStatDataDelegate>(funcTable, 311843349031918009UL, Core_GetStatDataFallback);
37323737 Core_GetStatFloat = (delegate* unmanaged[Cdecl]<nint, nint, float>) GetUnmanagedPtr<Core_GetStatFloatDelegate>(funcTable, 175428875067811253UL, Core_GetStatFloatFallback);
0 commit comments