public static bool BUserIsVacBanned(byte[] rgubTicketDecrypted, uint cubTicketDecrypted) { InteropHelp.TestIfPlatformSupported(); return(NativeMethods.SteamEncryptedAppTicket_BUserIsVacBanned(rgubTicketDecrypted, cubTicketDecrypted)); }
public static uint GetTicketAppID(byte[] rgubTicketDecrypted, uint cubTicketDecrypted) { InteropHelp.TestIfPlatformSupported(); return(NativeMethods.SteamEncryptedAppTicket_GetTicketAppID(rgubTicketDecrypted, cubTicketDecrypted)); }
public static bool BUserOwnsAppInTicket(byte[] rgubTicketDecrypted, uint cubTicketDecrypted, AppId_t nAppID) { InteropHelp.TestIfPlatformSupported(); return(NativeMethods.SteamEncryptedAppTicket_BUserOwnsAppInTicket(rgubTicketDecrypted, cubTicketDecrypted, nAppID)); }
public static bool Init(uint unIP, ushort usSteamPort, ushort usGamePort, ushort usQueryPort, EServerMode eServerMode, string pchVersionString) { InteropHelp.TestIfPlatformSupported(); return(NativeMethods.SteamGameServer_Init(unIP, usSteamPort, usGamePort, usQueryPort, eServerMode, new InteropHelp.UTF8String(pchVersionString))); }
public static void GetTicketSteamID(byte[] rgubTicketDecrypted, uint cubTicketDecrypted, out CSteamID psteamID) { InteropHelp.TestIfPlatformSupported(); NativeMethods.SteamEncryptedAppTicket_GetTicketSteamID(rgubTicketDecrypted, cubTicketDecrypted, out psteamID); }
public static void RunCallbacks() { InteropHelp.TestIfPlatformSupported(); NativeMethods.SteamAPI_RunCallbacks(); }
public static HSteamUser GetHSteamUser() { InteropHelp.TestIfPlatformSupported(); return((HSteamUser)NativeMethods.SteamAPI_GetHSteamUser()); }
public static void Shutdown() { InteropHelp.TestIfPlatformSupported(); NativeMethods.SteamGameServer_Shutdown(); CSteamGameServerAPIContext.Clear(); }
public static bool BSecure() { InteropHelp.TestIfPlatformSupported(); return(NativeMethods.SteamGameServer_BSecure()); }
public static void Shutdown() { _initialized = false; InteropHelp.TestIfPlatformSupported(); NativeMethods.SteamAPI_Shutdown(); }
public static bool BIsTicketSigned(byte[] rgubTicketDecrypted, uint cubTicketDecrypted, byte[] pubRSAKey, uint cubRSAKey) { InteropHelp.TestIfPlatformSupported(); return(NativeMethods.SteamEncryptedAppTicket_BIsTicketSigned(rgubTicketDecrypted, cubTicketDecrypted, pubRSAKey, cubRSAKey)); }
public static uint GetTicketIssueTime(byte[] rgubTicketDecrypted, uint cubTicketDecrypted) { InteropHelp.TestIfPlatformSupported(); return(NativeMethods.GetTicketIssueTime(rgubTicketDecrypted, cubTicketDecrypted)); }
public static bool BIsTicketForApp(byte[] rgubTicketDecrypted, uint cubTicketDecrypted, AppId_t nAppID) { InteropHelp.TestIfPlatformSupported(); return(NativeMethods.BIsTicketForApp(rgubTicketDecrypted, cubTicketDecrypted, nAppID)); }
// [Steamworks.NET] This is for Ease of use, since we don't need to care about the differences between them in C#. public static bool Init() { InteropHelp.TestIfPlatformSupported(); return(NativeMethods.SteamAPI_InitSafe()); }
// Many Steam API functions allocate a small amount of thread-local memory for parameter storage. // SteamAPI_ReleaseCurrentThreadMemory() will free API memory associated with the calling thread. // This function is also called automatically by SteamAPI_RunCallbacks(), so a single-threaded // program never needs to explicitly call this function. public static void ReleaseCurrentThreadMemory() { InteropHelp.TestIfPlatformSupported(); NativeMethods.SteamAPI_ReleaseCurrentThreadMemory(); }
public static CSteamID GetSteamID() { InteropHelp.TestIfPlatformSupported(); return((CSteamID)NativeMethods.SteamGameServer_GetSteamID()); }
public static void Shutdown() { InteropHelp.TestIfPlatformSupported(); NativeMethods.SteamAPI_Shutdown(); }
public static HSteamPipe GetHSteamPipe() { InteropHelp.TestIfPlatformSupported(); return((HSteamPipe)NativeMethods.SteamGameServer_GetHSteamPipe()); }
public static bool IsSteamRunning() { InteropHelp.TestIfPlatformSupported(); return(NativeMethods.SteamAPI_IsSteamRunning()); }
public static bool BDecryptTicket(byte[] rgubTicketEncrypted, uint cubTicketEncrypted, byte[] rgubTicketDecrypted, ref uint pcubTicketDecrypted, byte[] rgubKey, int cubKey) { InteropHelp.TestIfPlatformSupported(); return(NativeMethods.SteamEncryptedAppTicket_BDecryptTicket(rgubTicketEncrypted, cubTicketEncrypted, rgubTicketDecrypted, ref pcubTicketDecrypted, rgubKey, cubKey)); }
public static bool RestartAppIfNecessary(AppId_t unOwnAppID) { InteropHelp.TestIfPlatformSupported(); return(NativeMethods.SteamAPI_RestartAppIfNecessary(unOwnAppID)); }
// SteamAPI_Shutdown should be called during process shutdown if possible. public static void Shutdown() { InteropHelp.TestIfPlatformSupported(); NativeMethods.SteamAPI_Shutdown(); CSteamAPIContext.Clear(); CallbackDispatcher.Shutdown(); }