diff --git a/.gitignore b/.gitignore index cc58173..9908783 100644 --- a/.gitignore +++ b/.gitignore @@ -1,16 +1,15 @@ -.DS_Store -Library/ -Temp/ -obj/ +# Folders +/.DS_Store/ +/.vs/ +/.vscode/ +/Library/ +/obj/ +/Temp/ +/Logs/ +/UserSettings/ + +# Files *.csproj -*.pidb -*.unityproj *.sln -*.userprefs -*.suo - -*UnityVS* - -/steam_api.dll -/steam_api64.dll +*.VC.db /steam_appid.txt diff --git a/.vsconfig b/.vsconfig new file mode 100644 index 0000000..d70cd98 --- /dev/null +++ b/.vsconfig @@ -0,0 +1,6 @@ +{ + "version": "1.0", + "components": [ + "Microsoft.VisualStudio.Workload.ManagedGame" + ] +} diff --git a/Assets/Editor.meta b/Assets/Editor.meta deleted file mode 100644 index 226015b..0000000 --- a/Assets/Editor.meta +++ /dev/null @@ -1,5 +0,0 @@ -fileFormatVersion: 2 -guid: 918a343c10d0d0f4a9adc132206c5cf5 -folderAsset: yes -DefaultImporter: - userData: diff --git a/Assets/Editor/Steamworks.NET.meta b/Assets/Editor/Steamworks.NET.meta deleted file mode 100644 index 016caf4..0000000 --- a/Assets/Editor/Steamworks.NET.meta +++ /dev/null @@ -1,5 +0,0 @@ -fileFormatVersion: 2 -guid: 3142a253b0a0e94499a874759cc7849a -folderAsset: yes -DefaultImporter: - userData: diff --git a/Assets/Editor/Steamworks.NET/RedistCopy.cs b/Assets/Editor/Steamworks.NET/RedistCopy.cs deleted file mode 100644 index 1800927..0000000 --- a/Assets/Editor/Steamworks.NET/RedistCopy.cs +++ /dev/null @@ -1,74 +0,0 @@ -// Uncomment this out to disable copying -//#define DISABLEREDISTCOPY - -using UnityEngine; -using UnityEditor; -using UnityEditor.Callbacks; -using System.IO; - -public class RedistCopy { - [PostProcessBuild] - public static void OnPostprocessBuild(BuildTarget target, string pathToBuiltProject) { -#if !DISABLEREDISTCOPY - if (target != BuildTarget.StandaloneWindows && target != BuildTarget.StandaloneWindows64 && - target != BuildTarget.StandaloneOSXIntel && target != BuildTarget.StandaloneOSXIntel64 && target != BuildTarget.StandaloneOSXUniversal && - target != BuildTarget.StandaloneLinux && target != BuildTarget.StandaloneLinux64 && target != BuildTarget.StandaloneLinuxUniversal) { - return; - } - - string strProjectName = Path.GetFileNameWithoutExtension(pathToBuiltProject); - - if (target == BuildTarget.StandaloneWindows64) { - CopyFile("steam_api64.dll", "steam_api64.dll", "Assets/Plugins/x86_64", pathToBuiltProject); - } - else if (target == BuildTarget.StandaloneWindows) { - CopyFile("steam_api.dll", "steam_api.dll", "Assets/Plugins/x86", pathToBuiltProject); - } - - string controllerCfg = Path.Combine(Application.dataPath, "controller.vdf"); - if (File.Exists(controllerCfg)) { - string dir = "_Data"; - if (target == BuildTarget.StandaloneOSXIntel || target == BuildTarget.StandaloneOSXIntel64 || target == BuildTarget.StandaloneOSXUniversal) { - dir = ".app/Contents"; - } - - string strFileDest = Path.Combine(Path.Combine(Path.GetDirectoryName(pathToBuiltProject), strProjectName + dir), "controller.vdf"); - - File.Copy(controllerCfg, strFileDest); - File.SetAttributes(strFileDest, File.GetAttributes(strFileDest) & ~FileAttributes.ReadOnly); - - if (!File.Exists(strFileDest)) { - Debug.LogWarning("[Steamworks.NET] Could not copy controller.vdf into the built project. File.Copy() Failed. Place controller.vdf from the Steamworks SDK in the output dir manually."); - } - } -#endif - } - - static void CopyFile(string filename, string outputfilename, string pathToFile, string pathToBuiltProject) { - string strCWD = Directory.GetCurrentDirectory(); - string strSource = Path.Combine(Path.Combine(strCWD, pathToFile), filename); - string strFileDest = Path.Combine(Path.GetDirectoryName(pathToBuiltProject), outputfilename); - - if (!File.Exists(strSource)) { - Debug.LogWarning(string.Format("[Steamworks.NET] Could not copy {0} into the project root. {0} could not be found in '{1}'. Place {0} from the redist into the project root manually.", filename, pathToFile)); - return; - } - - if (File.Exists(strFileDest)) { - if (File.GetLastWriteTime(strSource) == File.GetLastWriteTime(strFileDest)) { - FileInfo fInfo = new FileInfo(strSource); - FileInfo fInfo2 = new FileInfo(strFileDest); - if (fInfo.Length == fInfo2.Length) { - return; - } - } - } - - File.Copy(strSource, strFileDest, true); - File.SetAttributes(strFileDest, File.GetAttributes(strFileDest) & ~FileAttributes.ReadOnly); - - if (!File.Exists(strFileDest)) { - Debug.LogWarning(string.Format("[Steamworks.NET] Could not copy {0} into the built project. File.Copy() Failed. Place {0} from the redist folder into the output dir manually.", filename)); - } - } -} diff --git a/Assets/Editor/Steamworks.NET/RedistCopy.cs.meta b/Assets/Editor/Steamworks.NET/RedistCopy.cs.meta deleted file mode 100644 index 21d7ea2..0000000 --- a/Assets/Editor/Steamworks.NET/RedistCopy.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 90a999286556c1e468b3ed8e6e9599e2 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/Editor/Steamworks.NET/RedistInstall.cs b/Assets/Editor/Steamworks.NET/RedistInstall.cs deleted file mode 100644 index a26a7c9..0000000 --- a/Assets/Editor/Steamworks.NET/RedistInstall.cs +++ /dev/null @@ -1,59 +0,0 @@ -using UnityEngine; -using UnityEditor; -using System.IO; - -// This copys various files into their required locations when Unity is launched to make installation a breeze. -[InitializeOnLoad] -public class RedistInstall { - static RedistInstall() { - CopyFile("Assets/Plugins/Steamworks.NET/redist", "steam_appid.txt", false); - - // We only need to copy the dll into the project root on <= Unity 5.0 -#if UNITY_EDITOR_WIN && (!UNITY_5 || UNITY_5_0) - #if UNITY_EDITOR_64 - CopyFile("Assets/Plugins/x86_64", "steam_api64.dll", true); - #else - CopyFile("Assets/Plugins/x86", "steam_api.dll", true); - #endif -#endif - } - - static void CopyFile(string path, string filename, bool bCheckDifference) { - string strCWD = Directory.GetCurrentDirectory(); - string strSource = Path.Combine(Path.Combine(strCWD, path), filename); - string strDest = Path.Combine(strCWD, filename); - - if (!File.Exists(strSource)) { - Debug.LogWarning(string.Format("[Steamworks.NET] Could not copy {0} into the project root. {0} could not be found in '{1}'. Place {0} from the Steamworks SDK in the project root manually.", filename, Path.Combine(strCWD, path))); - return; - } - - if (File.Exists(strDest)) { - if (!bCheckDifference) - return; - - if (File.GetLastWriteTime(strSource) == File.GetLastWriteTime(strDest)) { - FileInfo fInfo = new FileInfo(strSource); - FileInfo fInfo2 = new FileInfo(strDest); - if (fInfo.Length == fInfo2.Length) { - return; - } - } - - Debug.Log(string.Format("[Steamworks.NET] {0} in the project root differs from the Steamworks.NET redistributable. Updating.... Please relaunch Unity.", filename)); - } - else { - Debug.Log(string.Format("[Steamworks.NET] {0} is not present in the project root. Copying...", filename)); - } - - File.Copy(strSource, strDest, true); - File.SetAttributes(strDest, File.GetAttributes(strDest) & ~FileAttributes.ReadOnly); - - if (File.Exists(strDest)) { - Debug.Log(string.Format("[Steamworks.NET] Successfully copied {0} into the project root. Please relaunch Unity.", filename)); - } - else { - Debug.LogWarning(string.Format("[Steamworks.NET] Could not copy {0} into the project root. File.Copy() Failed. Place {0} from the Steamworks SDK in the project root manually.", filename)); - } - } -} diff --git a/Assets/Editor/Steamworks.NET/RedistInstall.cs.meta b/Assets/Editor/Steamworks.NET/RedistInstall.cs.meta deleted file mode 100644 index 962da13..0000000 --- a/Assets/Editor/Steamworks.NET/RedistInstall.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 37ec8dec9ce9ef646b1065857ec4e379 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/Plugins.meta b/Assets/Plugins.meta deleted file mode 100644 index 5776348..0000000 --- a/Assets/Plugins.meta +++ /dev/null @@ -1,5 +0,0 @@ -fileFormatVersion: 2 -guid: fa5d39759f3f9ee489ef8cb7f1fb92c7 -folderAsset: yes -DefaultImporter: - userData: diff --git a/Assets/Plugins/CSteamworks.bundle.meta b/Assets/Plugins/CSteamworks.bundle.meta deleted file mode 100644 index ab3f3a2..0000000 --- a/Assets/Plugins/CSteamworks.bundle.meta +++ /dev/null @@ -1,5 +0,0 @@ -fileFormatVersion: 2 -guid: da726a7ee93556a448c6b23605a4bbce -folderAsset: yes -DefaultImporter: - userData: diff --git a/Assets/Plugins/CSteamworks.bundle/Contents.meta b/Assets/Plugins/CSteamworks.bundle/Contents.meta deleted file mode 100644 index beb03b5..0000000 --- a/Assets/Plugins/CSteamworks.bundle/Contents.meta +++ /dev/null @@ -1,5 +0,0 @@ -fileFormatVersion: 2 -guid: ffa5430a9e438c843861c4cb69ae16f9 -folderAsset: yes -DefaultImporter: - userData: diff --git a/Assets/Plugins/CSteamworks.bundle/Contents/Info.plist b/Assets/Plugins/CSteamworks.bundle/Contents/Info.plist deleted file mode 100644 index 613ba86..0000000 --- a/Assets/Plugins/CSteamworks.bundle/Contents/Info.plist +++ /dev/null @@ -1,38 +0,0 @@ - - - - - BuildMachineOSBuild - 11G63 - CFBundleDevelopmentRegion - English - CFBundleExecutable - CSteamworks - CFBundleIdentifier - com.rileylabrecque.CSteamworks - CFBundleInfoDictionaryVersion - 6.0 - CFBundlePackageType - BNDL - CFBundleSignature - ???? - CFBundleVersion - 1.24 - CSResourcesFileMapped - yes - DTCompiler - - DTPlatformBuild - 4H1503 - DTPlatformVersion - GM - DTSDKBuild - 11E52 - DTSDKName - macosx10.7 - DTXcode - 0463 - DTXcodeBuild - 4H1503 - - diff --git a/Assets/Plugins/CSteamworks.bundle/Contents/Info.plist.meta b/Assets/Plugins/CSteamworks.bundle/Contents/Info.plist.meta deleted file mode 100644 index 64e3227..0000000 --- a/Assets/Plugins/CSteamworks.bundle/Contents/Info.plist.meta +++ /dev/null @@ -1,4 +0,0 @@ -fileFormatVersion: 2 -guid: 48b80dba36541364aab298b7c93305dd -DefaultImporter: - userData: diff --git a/Assets/Plugins/CSteamworks.bundle/Contents/MacOS.meta b/Assets/Plugins/CSteamworks.bundle/Contents/MacOS.meta deleted file mode 100644 index 5dc1caf..0000000 --- a/Assets/Plugins/CSteamworks.bundle/Contents/MacOS.meta +++ /dev/null @@ -1,5 +0,0 @@ -fileFormatVersion: 2 -guid: dc3077c0549a8dd44a8c048214aeacbf -folderAsset: yes -DefaultImporter: - userData: diff --git a/Assets/Plugins/CSteamworks.bundle/Contents/MacOS/CSteamworks b/Assets/Plugins/CSteamworks.bundle/Contents/MacOS/CSteamworks deleted file mode 100644 index ef3a33f..0000000 Binary files a/Assets/Plugins/CSteamworks.bundle/Contents/MacOS/CSteamworks and /dev/null differ diff --git a/Assets/Plugins/CSteamworks.bundle/Contents/MacOS/CSteamworks.meta b/Assets/Plugins/CSteamworks.bundle/Contents/MacOS/CSteamworks.meta deleted file mode 100644 index 0eac7c0..0000000 --- a/Assets/Plugins/CSteamworks.bundle/Contents/MacOS/CSteamworks.meta +++ /dev/null @@ -1,4 +0,0 @@ -fileFormatVersion: 2 -guid: a46ad0f09ff11e84e899d877540f76eb -DefaultImporter: - userData: diff --git a/Assets/Plugins/CSteamworks.bundle/Contents/MacOS/libsteam_api.dylib b/Assets/Plugins/CSteamworks.bundle/Contents/MacOS/libsteam_api.dylib deleted file mode 100644 index bb1fed1..0000000 Binary files a/Assets/Plugins/CSteamworks.bundle/Contents/MacOS/libsteam_api.dylib and /dev/null differ diff --git a/Assets/Plugins/CSteamworks.bundle/Contents/MacOS/libsteam_api.dylib.meta b/Assets/Plugins/CSteamworks.bundle/Contents/MacOS/libsteam_api.dylib.meta deleted file mode 100644 index bc8ad01..0000000 --- a/Assets/Plugins/CSteamworks.bundle/Contents/MacOS/libsteam_api.dylib.meta +++ /dev/null @@ -1,4 +0,0 @@ -fileFormatVersion: 2 -guid: 94a23ae3ebe9d4e4893882979bc42ba7 -DefaultImporter: - userData: diff --git a/Assets/Plugins/Steamworks.NET.meta b/Assets/Plugins/Steamworks.NET.meta deleted file mode 100644 index e3a7d8c..0000000 --- a/Assets/Plugins/Steamworks.NET.meta +++ /dev/null @@ -1,5 +0,0 @@ -fileFormatVersion: 2 -guid: bfa0536eba6a7b74e8522d8c8307af78 -folderAsset: yes -DefaultImporter: - userData: diff --git a/Assets/Plugins/Steamworks.NET/CallbackDispatcher.cs b/Assets/Plugins/Steamworks.NET/CallbackDispatcher.cs deleted file mode 100644 index 1618cd9..0000000 --- a/Assets/Plugins/Steamworks.NET/CallbackDispatcher.cs +++ /dev/null @@ -1,380 +0,0 @@ -// This file is provided under The MIT License as part of Steamworks.NET. -// Copyright (c) 2013-2015 Riley Labrecque -// Please see the included LICENSE.txt for additional information. - -// Changes to this file will be reverted when you update Steamworks.NET - - -#if UNITY_3_5 || UNITY_4_0 || UNITY_4_1 || UNITY_4_2 || UNITY_4_3 || UNITY_4_5 - #error Unsupported Unity platform. Steamworks.NET requires Unity 4.6 or higher. -#elif UNITY_4_6 || UNITY_5 - #if UNITY_EDITOR_WIN || (UNITY_STANDALONE_WIN && !UNITY_EDITOR) - #define WINDOWS_BUILD - #endif -#elif STEAMWORKS_WIN - #define WINDOWS_BUILD -#elif STEAMWORKS_LIN_OSX - // So that we don't trigger the else. -#else - #error You need to define STEAMWORKS_WIN, or STEAMWORKS_LIN_OSX. Refer to the readme for more details. -#endif - -// Unity 32bit Mono on Windows crashes with ThisCall/Cdecl for some reason, StdCall without the 'this' ptr is the only thing that works..? -#if (UNITY_EDITOR_WIN && !UNITY_EDITOR_64) || (!UNITY_EDITOR && UNITY_STANDALONE_WIN && !UNITY_64) - #define STDCALL -#elif STEAMWORKS_WIN - #define THISCALL -#endif - -// Calling Conventions: -// Unity x86 Windows - StdCall (No this pointer) -// Unity x86 Linux - Cdecl -// Unity x86 OSX - Cdecl -// Unity x64 Windows - Cdecl -// Unity x64 Linux - Cdecl -// Unity x64 OSX - Cdecl -// Microsoft x86 Windows - ThisCall -// Microsoft x64 Windows - ThisCall -// Mono x86 Linux - Cdecl -// Mono x86 OSX - Cdecl -// Mono x64 Linux - Cdecl -// Mono x64 OSX - Cdecl -// Mono on Windows is probably not supported. - -using System; -using System.Runtime.InteropServices; - -namespace Steamworks { - public static class CallbackDispatcher { - // We catch exceptions inside callbacks and reroute them here. - // For some reason throwing an exception causes RunCallbacks() to break otherwise. - // If you have a custom ExceptionHandler in your engine you can register it here manually until we get something more elegant hooked up. - public static void ExceptionHandler(Exception e) { -#if UNITY_BUILD - UnityEngine.Debug.LogException(e); -#else - Console.WriteLine(e.Message); -#endif - } - } - - public sealed class Callback { - private CCallbackBaseVTable VTable; - private IntPtr m_pVTable = IntPtr.Zero; - private CCallbackBase m_CCallbackBase; - private GCHandle m_pCCallbackBase; - - public delegate void DispatchDelegate(T param); - private event DispatchDelegate m_Func; - - private bool m_bGameServer; - private readonly int m_size = Marshal.SizeOf(typeof(T)); - - /// - /// Creates a new Callback. You must be calling SteamAPI.RunCallbacks() to retrieve the callbacks. - /// Returns a handle to the Callback. This must be assigned to a member variable to prevent the GC from cleaning it up. - /// - public static Callback Create(DispatchDelegate func) { - return new Callback(func, bGameServer: false); - } - - /// - /// Creates a new GameServer Callback. You must be calling GameServer.RunCallbacks() to retrieve the callbacks. - /// Returns a handle to the Callback. This must be assigned to a member variable to prevent the GC from cleaning it up. - /// - public static Callback CreateGameServer(DispatchDelegate func) { - return new Callback(func, bGameServer: true); - } - - public Callback(DispatchDelegate func, bool bGameServer = false) { - m_bGameServer = bGameServer; - BuildCCallbackBase(); - Register(func); - } - - ~Callback() { - Unregister(); - - if (m_pVTable != IntPtr.Zero) { - Marshal.FreeHGlobal(m_pVTable); - } - - if (m_pCCallbackBase.IsAllocated) { - m_pCCallbackBase.Free(); - } - } - - // Manual registration of the callback - public void Register(DispatchDelegate func) { - if (func == null) { - throw new Exception("Callback function must not be null."); - } - - if ((m_CCallbackBase.m_nCallbackFlags & CCallbackBase.k_ECallbackFlagsRegistered) == CCallbackBase.k_ECallbackFlagsRegistered) { - Unregister(); - } - - if (m_bGameServer) { - SetGameserverFlag(); - } - - m_Func = func; - - // k_ECallbackFlagsRegistered is set by SteamAPI_RegisterCallback. - NativeMethods.SteamAPI_RegisterCallback(m_pCCallbackBase.AddrOfPinnedObject(), CallbackIdentities.GetCallbackIdentity(typeof(T))); - } - - public void Unregister() { - // k_ECallbackFlagsRegistered is removed by SteamAPI_UnregisterCallback. - NativeMethods.SteamAPI_UnregisterCallback(m_pCCallbackBase.AddrOfPinnedObject()); - } - - public void SetGameserverFlag() { m_CCallbackBase.m_nCallbackFlags |= CCallbackBase.k_ECallbackFlagsGameServer; } - - private void OnRunCallback( -#if !STDCALL - IntPtr thisptr, -#endif - IntPtr pvParam) { - try { - m_Func((T)Marshal.PtrToStructure(pvParam, typeof(T))); - } - catch (Exception e) { - CallbackDispatcher.ExceptionHandler(e); - } - } - - // Shouldn't get ever get called here, but this is what C++ Steamworks does! - private void OnRunCallResult( -#if !STDCALL - IntPtr thisptr, -#endif - IntPtr pvParam, bool bFailed, ulong hSteamAPICall) { - try { - m_Func((T)Marshal.PtrToStructure(pvParam, typeof(T))); - } - catch (Exception e) { - CallbackDispatcher.ExceptionHandler(e); - } - } - - private int OnGetCallbackSizeBytes( -#if !STDCALL - IntPtr thisptr -#endif - ) { - return m_size; - } - - // Steamworks.NET Specific - private void BuildCCallbackBase() { - VTable = new CCallbackBaseVTable() { - m_RunCallResult = OnRunCallResult, - m_RunCallback = OnRunCallback, - m_GetCallbackSizeBytes = OnGetCallbackSizeBytes - }; - m_pVTable = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(CCallbackBaseVTable))); - Marshal.StructureToPtr(VTable, m_pVTable, false); - - m_CCallbackBase = new CCallbackBase() { - m_vfptr = m_pVTable, - m_nCallbackFlags = 0, - m_iCallback = CallbackIdentities.GetCallbackIdentity(typeof(T)) - }; - m_pCCallbackBase = GCHandle.Alloc(m_CCallbackBase, GCHandleType.Pinned); - } - } - - public sealed class CallResult { - private CCallbackBaseVTable VTable; - private IntPtr m_pVTable = IntPtr.Zero; - private CCallbackBase m_CCallbackBase; - private GCHandle m_pCCallbackBase; - - public delegate void APIDispatchDelegate(T param, bool bIOFailure); - private event APIDispatchDelegate m_Func; - - private SteamAPICall_t m_hAPICall = SteamAPICall_t.Invalid; - public SteamAPICall_t Handle { get { return m_hAPICall; } } - - private readonly int m_size = Marshal.SizeOf(typeof(T)); - - /// - /// Creates a new async CallResult. You must be calling SteamAPI.RunCallbacks() to retrieve the callback. - /// Returns a handle to the CallResult. This must be assigned to a member variable to prevent the GC from cleaning it up. - /// - public static CallResult Create(APIDispatchDelegate func = null) { - return new CallResult(func); - } - - public CallResult(APIDispatchDelegate func = null) { - m_Func = func; - BuildCCallbackBase(); - } - - ~CallResult() { - Cancel(); - - if (m_pVTable != IntPtr.Zero) { - Marshal.FreeHGlobal(m_pVTable); - } - - if (m_pCCallbackBase.IsAllocated) { - m_pCCallbackBase.Free(); - } - } - - public void Set(SteamAPICall_t hAPICall, APIDispatchDelegate func = null) { - // Unlike the official SDK we let the user assign a single function during creation, - // and allow them to skip having to do so every time that they call .Set() - if (func != null) { - m_Func = func; - } - - if (m_Func == null) { - throw new Exception("CallResult function was null, you must either set it in the CallResult Constructor or in Set()"); - } - - if (m_hAPICall != SteamAPICall_t.Invalid) { - NativeMethods.SteamAPI_UnregisterCallResult(m_pCCallbackBase.AddrOfPinnedObject(), (ulong)m_hAPICall); - } - - m_hAPICall = hAPICall; - - if (hAPICall != SteamAPICall_t.Invalid) { - NativeMethods.SteamAPI_RegisterCallResult(m_pCCallbackBase.AddrOfPinnedObject(), (ulong)hAPICall); - } - } - - public bool IsActive() { - return (m_hAPICall != SteamAPICall_t.Invalid); - } - - public void Cancel() { - if (m_hAPICall != SteamAPICall_t.Invalid) { - NativeMethods.SteamAPI_UnregisterCallResult(m_pCCallbackBase.AddrOfPinnedObject(), (ulong)m_hAPICall); - m_hAPICall = SteamAPICall_t.Invalid; - } - } - - public void SetGameserverFlag() { m_CCallbackBase.m_nCallbackFlags |= CCallbackBase.k_ECallbackFlagsGameServer; } - - // Shouldn't get ever get called here, but this is what C++ Steamworks does! - private void OnRunCallback( -#if !STDCALL - IntPtr thisptr, -#endif - IntPtr pvParam) { - m_hAPICall = SteamAPICall_t.Invalid; // Caller unregisters for us - try { - m_Func((T)Marshal.PtrToStructure(pvParam, typeof(T)), false); - } - catch (Exception e) { - CallbackDispatcher.ExceptionHandler(e); - } - } - - - private void OnRunCallResult( -#if !STDCALL - IntPtr thisptr, -#endif - IntPtr pvParam, bool bFailed, ulong hSteamAPICall) { - SteamAPICall_t hAPICall = (SteamAPICall_t)hSteamAPICall; - if (hAPICall == m_hAPICall) { - try { - m_Func((T)Marshal.PtrToStructure(pvParam, typeof(T)), bFailed); - } - catch (Exception e) { - CallbackDispatcher.ExceptionHandler(e); - } - - // The official SDK sets m_hAPICall to invalid before calling the callresult function, - // this doesn't let us access .Handle from within the function though. - if (hAPICall == m_hAPICall) { // Ensure that m_hAPICall has not been changed in m_Func - m_hAPICall = SteamAPICall_t.Invalid; // Caller unregisters for us - } - } - } - - private int OnGetCallbackSizeBytes( -#if !STDCALL - IntPtr thisptr -#endif - ) { - return m_size; - } - - // Steamworks.NET Specific - private void BuildCCallbackBase() { - VTable = new CCallbackBaseVTable() { - m_RunCallback = OnRunCallback, - m_RunCallResult = OnRunCallResult, - m_GetCallbackSizeBytes = OnGetCallbackSizeBytes - }; - m_pVTable = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(CCallbackBaseVTable))); - Marshal.StructureToPtr(VTable, m_pVTable, false); - - m_CCallbackBase = new CCallbackBase() { - m_vfptr = m_pVTable, - m_nCallbackFlags = 0, - m_iCallback = CallbackIdentities.GetCallbackIdentity(typeof(T)) - }; - m_pCCallbackBase = GCHandle.Alloc(m_CCallbackBase, GCHandleType.Pinned); - } - } - - [StructLayout(LayoutKind.Sequential)] - internal class CCallbackBase { - public const byte k_ECallbackFlagsRegistered = 0x01; - public const byte k_ECallbackFlagsGameServer = 0x02; - public IntPtr m_vfptr; - public byte m_nCallbackFlags; - public int m_iCallback; - }; - - [StructLayout(LayoutKind.Sequential)] - internal class CCallbackBaseVTable { -#if STDCALL - private const CallingConvention cc = CallingConvention.StdCall; - - [UnmanagedFunctionPointer(cc)] - public delegate void RunCBDel(IntPtr pvParam); - [UnmanagedFunctionPointer(cc)] - public delegate void RunCRDel(IntPtr pvParam, [MarshalAs(UnmanagedType.I1)] bool bIOFailure, ulong hSteamAPICall); - [UnmanagedFunctionPointer(cc)] - public delegate int GetCallbackSizeBytesDel(); -#else - #if THISCALL - private const CallingConvention cc = CallingConvention.ThisCall; - #else - private const CallingConvention cc = CallingConvention.Cdecl; - #endif - - [UnmanagedFunctionPointer(cc)] - public delegate void RunCBDel(IntPtr thisptr, IntPtr pvParam); - [UnmanagedFunctionPointer(cc)] - public delegate void RunCRDel(IntPtr thisptr, IntPtr pvParam, [MarshalAs(UnmanagedType.I1)] bool bIOFailure, ulong hSteamAPICall); - [UnmanagedFunctionPointer(cc)] - public delegate int GetCallbackSizeBytesDel(IntPtr thisptr); -#endif - - // RunCallback and RunCallResult are swapped in MSVC ABI -#if WINDOWS_BUILD - [NonSerialized] - [MarshalAs(UnmanagedType.FunctionPtr)] - public RunCRDel m_RunCallResult; -#endif - [NonSerialized] - [MarshalAs(UnmanagedType.FunctionPtr)] - public RunCBDel m_RunCallback; -#if !WINDOWS_BUILD - [NonSerialized] - [MarshalAs(UnmanagedType.FunctionPtr)] - public RunCRDel m_RunCallResult; -#endif - [NonSerialized] - [MarshalAs(UnmanagedType.FunctionPtr)] - public GetCallbackSizeBytesDel m_GetCallbackSizeBytes; - } -} diff --git a/Assets/Plugins/Steamworks.NET/CallbackDispatcher.cs.meta b/Assets/Plugins/Steamworks.NET/CallbackDispatcher.cs.meta deleted file mode 100644 index f28b90f..0000000 --- a/Assets/Plugins/Steamworks.NET/CallbackDispatcher.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 04a14f6b19a5ebf4680129c861315b10 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/Plugins/Steamworks.NET/CallbackIdentity.cs b/Assets/Plugins/Steamworks.NET/CallbackIdentity.cs deleted file mode 100644 index 2ceb342..0000000 --- a/Assets/Plugins/Steamworks.NET/CallbackIdentity.cs +++ /dev/null @@ -1,28 +0,0 @@ -// This file is provided under The MIT License as part of Steamworks.NET. -// Copyright (c) 2013-2015 Riley Labrecque -// Please see the included LICENSE.txt for additional information. - -// Changes to this file will be reverted when you update Steamworks.NET - -using System; -using System.Runtime.InteropServices; - -namespace Steamworks { - class CallbackIdentities { - public static int GetCallbackIdentity(Type callbackStruct) { - foreach (CallbackIdentityAttribute attribute in callbackStruct.GetCustomAttributes(typeof(CallbackIdentityAttribute), false)) { - return attribute.Identity; - } - - throw new Exception("Callback number not found for struct " + callbackStruct); - } - } - - [AttributeUsage(AttributeTargets.Struct, AllowMultiple = false)] - internal class CallbackIdentityAttribute : System.Attribute { - public int Identity { get; set; } - public CallbackIdentityAttribute(int callbackNum) { - Identity = callbackNum; - } - } -} \ No newline at end of file diff --git a/Assets/Plugins/Steamworks.NET/CallbackIdentity.cs.meta b/Assets/Plugins/Steamworks.NET/CallbackIdentity.cs.meta deleted file mode 100644 index 721578a..0000000 --- a/Assets/Plugins/Steamworks.NET/CallbackIdentity.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 083986a54ab9e4e498e84a810a760a49 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/Plugins/Steamworks.NET/ISteamMatchmakingResponses.cs b/Assets/Plugins/Steamworks.NET/ISteamMatchmakingResponses.cs deleted file mode 100644 index e501dd5..0000000 --- a/Assets/Plugins/Steamworks.NET/ISteamMatchmakingResponses.cs +++ /dev/null @@ -1,439 +0,0 @@ -// This file is provided under The MIT License as part of Steamworks.NET. -// Copyright (c) 2013-2015 Riley Labrecque -// Please see the included LICENSE.txt for additional information. - -// Changes to this file will be reverted when you update Steamworks.NET - -// Unity 32bit Mono on Windows crashes with ThisCall for some reason, StdCall without the 'this' ptr is the only thing that works..? -#if (UNITY_EDITOR_WIN && !UNITY_EDITOR_64) || (!UNITY_EDITOR && UNITY_STANDALONE_WIN && !UNITY_64) - #define NOTHISPTR -#endif - -using System; -using System.Runtime.InteropServices; - -namespace Steamworks { - //----------------------------------------------------------------------------- - // Purpose: Callback interface for receiving responses after a server list refresh - // or an individual server update. - // - // Since you get these callbacks after requesting full list refreshes you will - // usually implement this interface inside an object like CServerBrowser. If that - // object is getting destructed you should use ISteamMatchMakingServers()->CancelQuery() - // to cancel any in-progress queries so you don't get a callback into the destructed - // object and crash. - //----------------------------------------------------------------------------- - public class ISteamMatchmakingServerListResponse { - // Server has responded ok with updated data - public delegate void ServerResponded(HServerListRequest hRequest, int iServer); - // Server has failed to respond - public delegate void ServerFailedToRespond(HServerListRequest hRequest, int iServer); - // A list refresh you had initiated is now 100% completed - public delegate void RefreshComplete(HServerListRequest hRequest, EMatchMakingServerResponse response); - - private VTable m_VTable; - private IntPtr m_pVTable; - private GCHandle m_pGCHandle; - private ServerResponded m_ServerResponded; - private ServerFailedToRespond m_ServerFailedToRespond; - private RefreshComplete m_RefreshComplete; - - public ISteamMatchmakingServerListResponse(ServerResponded onServerResponded, ServerFailedToRespond onServerFailedToRespond, RefreshComplete onRefreshComplete) { - if (onServerResponded == null || onServerFailedToRespond == null || onRefreshComplete == null) { - throw new ArgumentNullException(); - } - m_ServerResponded = onServerResponded; - m_ServerFailedToRespond = onServerFailedToRespond; - m_RefreshComplete = onRefreshComplete; - - m_VTable = new VTable() { - m_VTServerResponded = InternalOnServerResponded, - m_VTServerFailedToRespond = InternalOnServerFailedToRespond, - m_VTRefreshComplete = InternalOnRefreshComplete - }; - m_pVTable = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(VTable))); - Marshal.StructureToPtr(m_VTable, m_pVTable, false); - - m_pGCHandle = GCHandle.Alloc(m_pVTable, GCHandleType.Pinned); - } - - ~ISteamMatchmakingServerListResponse() { - if (m_pVTable != IntPtr.Zero) { - Marshal.FreeHGlobal(m_pVTable); - } - - if (m_pGCHandle.IsAllocated) { - m_pGCHandle.Free(); - } - } - -#if NOTHISPTR - [UnmanagedFunctionPointer(CallingConvention.StdCall)] - private delegate void InternalServerResponded(HServerListRequest hRequest, int iServer); - [UnmanagedFunctionPointer(CallingConvention.StdCall)] - private delegate void InternalServerFailedToRespond(HServerListRequest hRequest, int iServer); - [UnmanagedFunctionPointer(CallingConvention.StdCall)] - private delegate void InternalRefreshComplete(HServerListRequest hRequest, EMatchMakingServerResponse response); - private void InternalOnServerResponded(HServerListRequest hRequest, int iServer) { - m_ServerResponded(hRequest, iServer); - } - private void InternalOnServerFailedToRespond(HServerListRequest hRequest, int iServer) { - m_ServerFailedToRespond(hRequest, iServer); - } - private void InternalOnRefreshComplete(HServerListRequest hRequest, EMatchMakingServerResponse response) { - m_RefreshComplete(hRequest, response); - } -#else - [UnmanagedFunctionPointer(CallingConvention.ThisCall)] - private delegate void InternalServerResponded(IntPtr thisptr, HServerListRequest hRequest, int iServer); - [UnmanagedFunctionPointer(CallingConvention.ThisCall)] - private delegate void InternalServerFailedToRespond(IntPtr thisptr, HServerListRequest hRequest, int iServer); - [UnmanagedFunctionPointer(CallingConvention.ThisCall)] - private delegate void InternalRefreshComplete(IntPtr thisptr, HServerListRequest hRequest, EMatchMakingServerResponse response); - private void InternalOnServerResponded(IntPtr thisptr, HServerListRequest hRequest, int iServer) { - m_ServerResponded(hRequest, iServer); - } - private void InternalOnServerFailedToRespond(IntPtr thisptr, HServerListRequest hRequest, int iServer) { - m_ServerFailedToRespond(hRequest, iServer); - } - private void InternalOnRefreshComplete(IntPtr thisptr, HServerListRequest hRequest, EMatchMakingServerResponse response) { - m_RefreshComplete(hRequest, response); - } -#endif - - [StructLayout(LayoutKind.Sequential)] - private class VTable { - [NonSerialized] - [MarshalAs(UnmanagedType.FunctionPtr)] - public InternalServerResponded m_VTServerResponded; - - [NonSerialized] - [MarshalAs(UnmanagedType.FunctionPtr)] - public InternalServerFailedToRespond m_VTServerFailedToRespond; - - [NonSerialized] - [MarshalAs(UnmanagedType.FunctionPtr)] - public InternalRefreshComplete m_VTRefreshComplete; - } - - public static explicit operator System.IntPtr(ISteamMatchmakingServerListResponse that) { - return that.m_pGCHandle.AddrOfPinnedObject(); - } - }; - - //----------------------------------------------------------------------------- - // Purpose: Callback interface for receiving responses after pinging an individual server - // - // These callbacks all occur in response to querying an individual server - // via the ISteamMatchmakingServers()->PingServer() call below. If you are - // destructing an object that implements this interface then you should call - // ISteamMatchmakingServers()->CancelServerQuery() passing in the handle to the query - // which is in progress. Failure to cancel in progress queries when destructing - // a callback handler may result in a crash when a callback later occurs. - //----------------------------------------------------------------------------- - public class ISteamMatchmakingPingResponse { - // Server has responded successfully and has updated data - public delegate void ServerResponded(gameserveritem_t server); - - // Server failed to respond to the ping request - public delegate void ServerFailedToRespond(); - - private VTable m_VTable; - private IntPtr m_pVTable; - private GCHandle m_pGCHandle; - private ServerResponded m_ServerResponded; - private ServerFailedToRespond m_ServerFailedToRespond; - - public ISteamMatchmakingPingResponse(ServerResponded onServerResponded, ServerFailedToRespond onServerFailedToRespond) { - if (onServerResponded == null || onServerFailedToRespond == null) { - throw new ArgumentNullException(); - } - m_ServerResponded = onServerResponded; - m_ServerFailedToRespond = onServerFailedToRespond; - - m_VTable = new VTable() { - m_VTServerResponded = InternalOnServerResponded, - m_VTServerFailedToRespond = InternalOnServerFailedToRespond, - }; - m_pVTable = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(VTable))); - Marshal.StructureToPtr(m_VTable, m_pVTable, false); - - m_pGCHandle = GCHandle.Alloc(m_pVTable, GCHandleType.Pinned); - } - - ~ISteamMatchmakingPingResponse() { - if (m_pVTable != IntPtr.Zero) { - Marshal.FreeHGlobal(m_pVTable); - } - - if (m_pGCHandle.IsAllocated) { - m_pGCHandle.Free(); - } - } - -#if NOTHISPTR - [UnmanagedFunctionPointer(CallingConvention.StdCall)] - private delegate void InternalServerResponded(gameserveritem_t server); - [UnmanagedFunctionPointer(CallingConvention.StdCall)] - private delegate void InternalServerFailedToRespond(); - private void InternalOnServerResponded(gameserveritem_t server) { - m_ServerResponded(server); - } - private void InternalOnServerFailedToRespond() { - m_ServerFailedToRespond(); - } -#else - [UnmanagedFunctionPointer(CallingConvention.ThisCall)] - private delegate void InternalServerResponded(IntPtr thisptr, gameserveritem_t server); - [UnmanagedFunctionPointer(CallingConvention.ThisCall)] - private delegate void InternalServerFailedToRespond(IntPtr thisptr); - private void InternalOnServerResponded(IntPtr thisptr, gameserveritem_t server) { - m_ServerResponded(server); - } - private void InternalOnServerFailedToRespond(IntPtr thisptr) { - m_ServerFailedToRespond(); - } -#endif - - [StructLayout(LayoutKind.Sequential)] - private class VTable { - [NonSerialized] - [MarshalAs(UnmanagedType.FunctionPtr)] - public InternalServerResponded m_VTServerResponded; - - [NonSerialized] - [MarshalAs(UnmanagedType.FunctionPtr)] - public InternalServerFailedToRespond m_VTServerFailedToRespond; - } - - public static explicit operator System.IntPtr(ISteamMatchmakingPingResponse that) { - return that.m_pGCHandle.AddrOfPinnedObject(); - } - }; - - //----------------------------------------------------------------------------- - // Purpose: Callback interface for receiving responses after requesting details on - // who is playing on a particular server. - // - // These callbacks all occur in response to querying an individual server - // via the ISteamMatchmakingServers()->PlayerDetails() call below. If you are - // destructing an object that implements this interface then you should call - // ISteamMatchmakingServers()->CancelServerQuery() passing in the handle to the query - // which is in progress. Failure to cancel in progress queries when destructing - // a callback handler may result in a crash when a callback later occurs. - //----------------------------------------------------------------------------- - public class ISteamMatchmakingPlayersResponse { - // Got data on a new player on the server -- you'll get this callback once per player - // on the server which you have requested player data on. - public delegate void AddPlayerToList(string pchName, int nScore, float flTimePlayed); - - // The server failed to respond to the request for player details - public delegate void PlayersFailedToRespond(); - - // The server has finished responding to the player details request - // (ie, you won't get anymore AddPlayerToList callbacks) - public delegate void PlayersRefreshComplete(); - - private VTable m_VTable; - private IntPtr m_pVTable; - private GCHandle m_pGCHandle; - private AddPlayerToList m_AddPlayerToList; - private PlayersFailedToRespond m_PlayersFailedToRespond; - private PlayersRefreshComplete m_PlayersRefreshComplete; - - public ISteamMatchmakingPlayersResponse(AddPlayerToList onAddPlayerToList, PlayersFailedToRespond onPlayersFailedToRespond, PlayersRefreshComplete onPlayersRefreshComplete) { - if (onAddPlayerToList == null || onPlayersFailedToRespond == null || onPlayersRefreshComplete == null) { - throw new ArgumentNullException(); - } - m_AddPlayerToList = onAddPlayerToList; - m_PlayersFailedToRespond = onPlayersFailedToRespond; - m_PlayersRefreshComplete = onPlayersRefreshComplete; - - m_VTable = new VTable() { - m_VTAddPlayerToList = InternalOnAddPlayerToList, - m_VTPlayersFailedToRespond = InternalOnPlayersFailedToRespond, - m_VTPlayersRefreshComplete = InternalOnPlayersRefreshComplete - }; - m_pVTable = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(VTable))); - Marshal.StructureToPtr(m_VTable, m_pVTable, false); - - m_pGCHandle = GCHandle.Alloc(m_pVTable, GCHandleType.Pinned); - } - - ~ISteamMatchmakingPlayersResponse() { - if (m_pVTable != IntPtr.Zero) { - Marshal.FreeHGlobal(m_pVTable); - } - - if (m_pGCHandle.IsAllocated) { - m_pGCHandle.Free(); - } - } - -#if NOTHISPTR - [UnmanagedFunctionPointer(CallingConvention.StdCall)] - public delegate void InternalAddPlayerToList(IntPtr pchName, int nScore, float flTimePlayed); - [UnmanagedFunctionPointer(CallingConvention.StdCall)] - public delegate void InternalPlayersFailedToRespond(); - [UnmanagedFunctionPointer(CallingConvention.StdCall)] - public delegate void InternalPlayersRefreshComplete(); - private void InternalOnAddPlayerToList(IntPtr pchName, int nScore, float flTimePlayed) { - m_AddPlayerToList(InteropHelp.PtrToStringUTF8(pchName), nScore, flTimePlayed); - } - private void InternalOnPlayersFailedToRespond() { - m_PlayersFailedToRespond(); - } - private void InternalOnPlayersRefreshComplete() { - m_PlayersRefreshComplete(); - } -#else - [UnmanagedFunctionPointer(CallingConvention.ThisCall)] - public delegate void InternalAddPlayerToList(IntPtr thisptr, IntPtr pchName, int nScore, float flTimePlayed); - [UnmanagedFunctionPointer(CallingConvention.ThisCall)] - public delegate void InternalPlayersFailedToRespond(IntPtr thisptr); - [UnmanagedFunctionPointer(CallingConvention.ThisCall)] - public delegate void InternalPlayersRefreshComplete(IntPtr thisptr); - private void InternalOnAddPlayerToList(IntPtr thisptr, IntPtr pchName, int nScore, float flTimePlayed) { - m_AddPlayerToList(InteropHelp.PtrToStringUTF8(pchName), nScore, flTimePlayed); - } - private void InternalOnPlayersFailedToRespond(IntPtr thisptr) { - m_PlayersFailedToRespond(); - } - private void InternalOnPlayersRefreshComplete(IntPtr thisptr) { - m_PlayersRefreshComplete(); - } -#endif - - [StructLayout(LayoutKind.Sequential)] - private class VTable { - [NonSerialized] - [MarshalAs(UnmanagedType.FunctionPtr)] - public InternalAddPlayerToList m_VTAddPlayerToList; - - [NonSerialized] - [MarshalAs(UnmanagedType.FunctionPtr)] - public InternalPlayersFailedToRespond m_VTPlayersFailedToRespond; - - [NonSerialized] - [MarshalAs(UnmanagedType.FunctionPtr)] - public InternalPlayersRefreshComplete m_VTPlayersRefreshComplete; - } - - public static explicit operator System.IntPtr(ISteamMatchmakingPlayersResponse that) { - return that.m_pGCHandle.AddrOfPinnedObject(); - } - }; - - //----------------------------------------------------------------------------- - // Purpose: Callback interface for receiving responses after requesting rules - // details on a particular server. - // - // These callbacks all occur in response to querying an individual server - // via the ISteamMatchmakingServers()->ServerRules() call below. If you are - // destructing an object that implements this interface then you should call - // ISteamMatchmakingServers()->CancelServerQuery() passing in the handle to the query - // which is in progress. Failure to cancel in progress queries when destructing - // a callback handler may result in a crash when a callback later occurs. - //----------------------------------------------------------------------------- - public class ISteamMatchmakingRulesResponse { - // Got data on a rule on the server -- you'll get one of these per rule defined on - // the server you are querying - public delegate void RulesResponded(string pchRule, string pchValue); - - // The server failed to respond to the request for rule details - public delegate void RulesFailedToRespond(); - - // The server has finished responding to the rule details request - // (ie, you won't get anymore RulesResponded callbacks) - public delegate void RulesRefreshComplete(); - - private VTable m_VTable; - private IntPtr m_pVTable; - private GCHandle m_pGCHandle; - private RulesResponded m_RulesResponded; - private RulesFailedToRespond m_RulesFailedToRespond; - private RulesRefreshComplete m_RulesRefreshComplete; - - public ISteamMatchmakingRulesResponse(RulesResponded onRulesResponded, RulesFailedToRespond onRulesFailedToRespond, RulesRefreshComplete onRulesRefreshComplete) { - if (onRulesResponded == null || onRulesFailedToRespond == null || onRulesRefreshComplete == null) { - throw new ArgumentNullException(); - } - m_RulesResponded = onRulesResponded; - m_RulesFailedToRespond = onRulesFailedToRespond; - m_RulesRefreshComplete = onRulesRefreshComplete; - - m_VTable = new VTable() { - m_VTRulesResponded = InternalOnRulesResponded, - m_VTRulesFailedToRespond = InternalOnRulesFailedToRespond, - m_VTRulesRefreshComplete = InternalOnRulesRefreshComplete - }; - m_pVTable = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(VTable))); - Marshal.StructureToPtr(m_VTable, m_pVTable, false); - - m_pGCHandle = GCHandle.Alloc(m_pVTable, GCHandleType.Pinned); - } - - ~ISteamMatchmakingRulesResponse() { - if (m_pVTable != IntPtr.Zero) { - Marshal.FreeHGlobal(m_pVTable); - } - - if (m_pGCHandle.IsAllocated) { - m_pGCHandle.Free(); - } - } - -#if NOTHISPTR - [UnmanagedFunctionPointer(CallingConvention.StdCall)] - public delegate void InternalRulesResponded(IntPtr pchRule, IntPtr pchValue); - [UnmanagedFunctionPointer(CallingConvention.StdCall)] - public delegate void InternalRulesFailedToRespond(); - [UnmanagedFunctionPointer(CallingConvention.StdCall)] - public delegate void InternalRulesRefreshComplete(); - private void InternalOnRulesResponded(IntPtr pchRule, IntPtr pchValue) { - m_RulesResponded(InteropHelp.PtrToStringUTF8(pchRule), InteropHelp.PtrToStringUTF8(pchValue)); - } - private void InternalOnRulesFailedToRespond() { - m_RulesFailedToRespond(); - } - private void InternalOnRulesRefreshComplete() { - m_RulesRefreshComplete(); - } -#else - [UnmanagedFunctionPointer(CallingConvention.ThisCall)] - public delegate void InternalRulesResponded(IntPtr thisptr, IntPtr pchRule, IntPtr pchValue); - [UnmanagedFunctionPointer(CallingConvention.ThisCall)] - public delegate void InternalRulesFailedToRespond(IntPtr thisptr); - [UnmanagedFunctionPointer(CallingConvention.ThisCall)] - public delegate void InternalRulesRefreshComplete(IntPtr thisptr); - private void InternalOnRulesResponded(IntPtr thisptr, IntPtr pchRule, IntPtr pchValue) { - m_RulesResponded(InteropHelp.PtrToStringUTF8(pchRule), InteropHelp.PtrToStringUTF8(pchValue)); - } - private void InternalOnRulesFailedToRespond(IntPtr thisptr) { - m_RulesFailedToRespond(); - } - private void InternalOnRulesRefreshComplete(IntPtr thisptr) { - m_RulesRefreshComplete(); - } -#endif - - [StructLayout(LayoutKind.Sequential)] - private class VTable { - [NonSerialized] - [MarshalAs(UnmanagedType.FunctionPtr)] - public InternalRulesResponded m_VTRulesResponded; - - [NonSerialized] - [MarshalAs(UnmanagedType.FunctionPtr)] - public InternalRulesFailedToRespond m_VTRulesFailedToRespond; - - [NonSerialized] - [MarshalAs(UnmanagedType.FunctionPtr)] - public InternalRulesRefreshComplete m_VTRulesRefreshComplete; - } - - public static explicit operator System.IntPtr(ISteamMatchmakingRulesResponse that) { - return that.m_pGCHandle.AddrOfPinnedObject(); - } - }; -} diff --git a/Assets/Plugins/Steamworks.NET/ISteamMatchmakingResponses.cs.meta b/Assets/Plugins/Steamworks.NET/ISteamMatchmakingResponses.cs.meta deleted file mode 100644 index 66781a1..0000000 --- a/Assets/Plugins/Steamworks.NET/ISteamMatchmakingResponses.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: f25e8267432f24747a9b199201572644 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/Plugins/Steamworks.NET/InteropHelp.cs b/Assets/Plugins/Steamworks.NET/InteropHelp.cs deleted file mode 100644 index 405840e..0000000 --- a/Assets/Plugins/Steamworks.NET/InteropHelp.cs +++ /dev/null @@ -1,224 +0,0 @@ -// This file is provided under The MIT License as part of Steamworks.NET. -// Copyright (c) 2013-2015 Riley Labrecque -// Please see the included LICENSE.txt for additional information. - -// Changes to this file will be reverted when you update Steamworks.NET - -using System; -using System.Collections.Generic; -using System.Runtime.InteropServices; -using System.Text; - -namespace Steamworks { - public class InteropHelp { - public static void TestIfPlatformSupported() { -#if !UNITY_EDITOR && !UNITY_STANDALONE_WIN && !UNITY_STANDALONE_LINUX && !UNITY_STANDALONE_OSX && !STEAMWORKS_WIN && !STEAMWORKS_LIN_OSX - throw new System.InvalidOperationException("Steamworks functions can only be called on platforms that Steam is available on."); -#endif - } - - public static void TestIfAvailableClient() { - TestIfPlatformSupported(); - if (NativeMethods.SteamClient() == System.IntPtr.Zero) { - throw new System.InvalidOperationException("Steamworks is not initialized."); - } - } - - public static void TestIfAvailableGameServer() { - TestIfPlatformSupported(); - if (NativeMethods.SteamClientGameServer() == System.IntPtr.Zero) { - throw new System.InvalidOperationException("Steamworks is not initialized."); - } - } - - // This continues to exist for both 'out string' and strings returned by Steamworks functions. - public static string PtrToStringUTF8(IntPtr nativeUtf8) { - if (nativeUtf8 == IntPtr.Zero) { - return string.Empty; - } - - int len = 0; - - while (Marshal.ReadByte(nativeUtf8, len) != 0) { - ++len; - } - - if (len == 0) { - return string.Empty; - } - - byte[] buffer = new byte[len]; - Marshal.Copy(nativeUtf8, buffer, 0, buffer.Length); - return Encoding.UTF8.GetString(buffer); - } - - // This is for 'const char *' arguments which we need to ensure do not get GC'd while Steam is using them. - // We can't use an ICustomMarshaler because Unity crashes when a string between 96 and 127 characters long is defined/initialized at the top of class scope... - public class UTF8StringHandle : Microsoft.Win32.SafeHandles.SafeHandleZeroOrMinusOneIsInvalid { - public UTF8StringHandle(string str) - : base(true) { - if (str == null) { - SetHandle(IntPtr.Zero); - return; - } - - byte[] strbuf = new byte[Encoding.UTF8.GetByteCount(str) + 1]; - Encoding.UTF8.GetBytes(str, 0, str.Length, strbuf, 0); - IntPtr buffer = Marshal.AllocHGlobal(strbuf.Length); - Marshal.Copy(strbuf, 0, buffer, strbuf.Length); - - SetHandle(buffer); - } - - protected override bool ReleaseHandle() { - if (!IsInvalid) { - Marshal.FreeHGlobal(handle); - } - return true; - } - } - - // TODO - Should be IDisposable - // We can't use an ICustomMarshaler because Unity dies when MarshalManagedToNative() gets called with a generic type. - public class SteamParamStringArray { - // The pointer to each AllocHGlobal() string - IntPtr[] m_Strings; - // The pointer to the condensed version of m_Strings - IntPtr m_ptrStrings; - // The pointer to the StructureToPtr version of SteamParamStringArray_t that will get marshaled - IntPtr m_pSteamParamStringArray; - - public SteamParamStringArray(System.Collections.Generic.IList strings) { - if (strings == null) { - m_pSteamParamStringArray = IntPtr.Zero; - return; - } - - m_Strings = new IntPtr[strings.Count]; - for (int i = 0; i < strings.Count; ++i) { - byte[] strbuf = new byte[Encoding.UTF8.GetByteCount(strings[i]) + 1]; - Encoding.UTF8.GetBytes(strings[i], 0, strings[i].Length, strbuf, 0); - m_Strings[i] = Marshal.AllocHGlobal(strbuf.Length); - Marshal.Copy(strbuf, 0, m_Strings[i], strbuf.Length); - } - - m_ptrStrings = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(IntPtr)) * m_Strings.Length); - SteamParamStringArray_t stringArray = new SteamParamStringArray_t() { - m_ppStrings = m_ptrStrings, - m_nNumStrings = m_Strings.Length - }; - Marshal.Copy(m_Strings, 0, stringArray.m_ppStrings, m_Strings.Length); - - m_pSteamParamStringArray = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(SteamParamStringArray_t))); - Marshal.StructureToPtr(stringArray, m_pSteamParamStringArray, false); - } - - ~SteamParamStringArray() { - foreach (IntPtr ptr in m_Strings) { - Marshal.FreeHGlobal(ptr); - } - - if (m_ptrStrings != IntPtr.Zero) { - Marshal.FreeHGlobal(m_ptrStrings); - } - - if (m_pSteamParamStringArray != IntPtr.Zero) { - Marshal.FreeHGlobal(m_pSteamParamStringArray); - } - } - - public static implicit operator IntPtr(SteamParamStringArray that) { - return that.m_pSteamParamStringArray; - } - } - } - - // TODO - Should be IDisposable - // MatchMaking Key-Value Pair Marshaller - public class MMKVPMarshaller { - private IntPtr m_pNativeArray; - private IntPtr m_pArrayEntries; - - public MMKVPMarshaller(MatchMakingKeyValuePair_t[] filters) { - if (filters == null) { - return; - } - - int sizeOfMMKVP = Marshal.SizeOf(typeof(MatchMakingKeyValuePair_t)); - - m_pNativeArray = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(IntPtr)) * filters.Length); - m_pArrayEntries = Marshal.AllocHGlobal(sizeOfMMKVP * filters.Length); - for (int i = 0; i < filters.Length; ++i) { - Marshal.StructureToPtr(filters[i], new IntPtr(m_pArrayEntries.ToInt64() + (i * sizeOfMMKVP)), false); - } - - Marshal.WriteIntPtr(m_pNativeArray, m_pArrayEntries); - } - - ~MMKVPMarshaller() { - if (m_pArrayEntries != IntPtr.Zero) { - Marshal.FreeHGlobal(m_pArrayEntries); - } - if (m_pNativeArray != IntPtr.Zero) { - Marshal.FreeHGlobal(m_pNativeArray); - } - } - - public static implicit operator IntPtr(MMKVPMarshaller that) { - return that.m_pNativeArray; - } - } - - public class DllCheck { - [DllImport("kernel32.dll")] - public static extern IntPtr GetModuleHandle(string lpModuleName); - - [DllImport("kernel32.dll", CharSet = CharSet.Auto)] - extern static int GetModuleFileName(IntPtr hModule, StringBuilder strFullPath, int nSize); - - /// - /// This is an optional runtime check to ensure that the dlls are the correct version. Returns false only if the steam_api.dll is found and it's the wrong size or version number. - /// - public static bool Test() { - //bool ret = CheckSteamAPIDLL(); - return true; - } - - private static bool CheckSteamAPIDLL() { -#if STEAMWORKS_WIN || (UNITY_EDITOR_WIN && UNITY_STANDALONE) || (!UNITY_EDITOR && UNITY_STANDALONE_WIN) - string fileName; - int fileBytes; - if (IntPtr.Size == 4) { - fileName = "steam_api.dll"; - fileBytes = Version.SteamAPIDLLSize; - } - else { - fileName = "steam_api64.dll"; - fileBytes = Version.SteamAPI64DLLSize; - } - - IntPtr handle = GetModuleHandle(fileName); - if (handle == IntPtr.Zero) { - return true; - } - - StringBuilder filePath = new StringBuilder(256); - GetModuleFileName(handle, filePath, filePath.Capacity); - string file = filePath.ToString(); - - // If we can not find the file we'll just skip it and let the DllNotFoundException take care of it. - if (System.IO.File.Exists(file)) { - System.IO.FileInfo fInfo = new System.IO.FileInfo(file); - if (fInfo.Length != fileBytes) { - return false; - } - - if (System.Diagnostics.FileVersionInfo.GetVersionInfo(file).FileVersion != Version.SteamAPIDLLVersion) { - return false; - } - } -#endif - return true; - } - } -} diff --git a/Assets/Plugins/Steamworks.NET/InteropHelp.cs.meta b/Assets/Plugins/Steamworks.NET/InteropHelp.cs.meta deleted file mode 100644 index d815a3a..0000000 --- a/Assets/Plugins/Steamworks.NET/InteropHelp.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 35ab6455cc3f7164f95914ee5cebbe58 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/Plugins/Steamworks.NET/Packsize.cs b/Assets/Plugins/Steamworks.NET/Packsize.cs deleted file mode 100644 index 32d58f3..0000000 --- a/Assets/Plugins/Steamworks.NET/Packsize.cs +++ /dev/null @@ -1,62 +0,0 @@ -// This file is provided under The MIT License as part of Steamworks.NET. -// Copyright (c) 2013-2015 Riley Labrecque -// Please see the included LICENSE.txt for additional information. - -// Changes to this file will be reverted when you update Steamworks.NET - -// If we're running in the Unity Editor we need the editors platform. -#if UNITY_EDITOR_WIN - #define VALVE_CALLBACK_PACK_LARGE -#elif UNITY_EDITOR_OSX - #define VALVE_CALLBACK_PACK_SMALL - -// Otherwise we want the target platform. -#elif UNITY_STANDALONE_WIN || STEAMWORKS_WIN - #define VALVE_CALLBACK_PACK_LARGE -#elif UNITY_STANDALONE_LINUX || UNITY_STANDALONE_OSX || STEAMWORKS_LIN_OSX - #define VALVE_CALLBACK_PACK_SMALL - -// We do not want to throw a warning when we're building in Unity but for an unsupported platform. So we'll silently let this slip by. -// It would be nice if Unity itself would define 'UNITY' or something like that... -#elif UNITY_3_5 || UNITY_4_0 || UNITY_4_1 || UNITY_4_2 || UNITY_4_3 || UNITY_4_5 || UNITY_4_6 || UNITY_5 - #define VALVE_CALLBACK_PACK_SMALL - -// But we do want to be explicit on the Standalone build for XNA/Monogame. -#else - #define VALVE_CALLBACK_PACK_LARGE - #warning You need to define STEAMWORKS_WIN, or STEAMWORKS_LIN_OSX. Refer to the readme for more details. -#endif - -using System; -using System.Runtime.InteropServices; - -namespace Steamworks { - public static class Packsize { -#if VALVE_CALLBACK_PACK_LARGE - public const int value = 8; -#elif VALVE_CALLBACK_PACK_SMALL - public const int value = 4; -#endif - - public static bool Test() { - int sentinelSize = Marshal.SizeOf(typeof(ValvePackingSentinel_t)); - int subscribedFilesSize = Marshal.SizeOf(typeof(RemoteStorageEnumerateUserSubscribedFilesResult_t)); -#if VALVE_CALLBACK_PACK_LARGE - if (sentinelSize != 32 || subscribedFilesSize != (1 + 1 + 1 + 50 + 100) * 4 + 4) - return false; -#elif VALVE_CALLBACK_PACK_SMALL - if (sentinelSize != 24 || subscribedFilesSize != (1 + 1 + 1 + 50 + 100) * 4) - return false; -#endif - return true; - } - - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - struct ValvePackingSentinel_t { - uint m_u32; - ulong m_u64; - ushort m_u16; - double m_d; - }; - } -} diff --git a/Assets/Plugins/Steamworks.NET/Packsize.cs.meta b/Assets/Plugins/Steamworks.NET/Packsize.cs.meta deleted file mode 100644 index 6c403c1..0000000 --- a/Assets/Plugins/Steamworks.NET/Packsize.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 24b26fde0e73adb448711d77d2d24814 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/Plugins/Steamworks.NET/Steam.cs b/Assets/Plugins/Steamworks.NET/Steam.cs deleted file mode 100644 index 3697750..0000000 --- a/Assets/Plugins/Steamworks.NET/Steam.cs +++ /dev/null @@ -1,216 +0,0 @@ -// This file is provided under The MIT License as part of Steamworks.NET. -// Copyright (c) 2013-2015 Riley Labrecque -// Please see the included LICENSE.txt for additional information. - -// Changes to this file will be reverted when you update Steamworks.NET - -#define VERSION_SAFE_STEAM_API_INTERFACES - -using System.Runtime.InteropServices; - -namespace Steamworks { - public static class Version { - public const string SteamworksNETVersion = "7.0.0"; - public const string SteamworksSDKVersion = "1.34"; - public const string SteamAPIDLLVersion = "02.89.45.04"; - public const int SteamAPIDLLSize = 186560; - public const int SteamAPI64DLLSize = 206760; - } - - public static class SteamAPI { - //----------------------------------------------------------------------------------------------------------------------------------------------------------// - // Steam API setup & shutdown - // - // These functions manage loading, initializing and shutdown of the steamclient.dll - // - //----------------------------------------------------------------------------------------------------------------------------------------------------------// - - // Detects if your executable was launched through the Steam client, and restarts your game through - // the client if necessary. The Steam client will be started if it is not running. - // - // Returns: true if your executable was NOT launched through the Steam client. This function will - // then start your application through the client. Your current process should exit. - // - // false if your executable was started through the Steam client or a steam_appid.txt file - // is present in your game's directory (for development). Your current process should continue. - // - // NOTE: This function should be used only if you are using CEG or not using Steam's DRM. Once applied - // to your executable, Steam's DRM will handle restarting through Steam if necessary. - public static bool RestartAppIfNecessary(AppId_t unOwnAppID) { - InteropHelp.TestIfPlatformSupported(); - return NativeMethods.SteamAPI_RestartAppIfNecessary(unOwnAppID); - } - -#if VERSION_SAFE_STEAM_API_INTERFACES - public static bool InitSafe() { - return Init(); - } - - // [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(); - } -#else - public static bool Init() { - InteropHelp.TestIfPlatformSupported(); - return NativeMethods.SteamAPI_Init(); - } -#endif - - public static void Shutdown() { - InteropHelp.TestIfPlatformSupported(); - NativeMethods.SteamAPI_Shutdown(); - } - - //----------------------------------------------------------------------------------------------------------------------------------------------------------// - // steam callback helper functions - // - // The following classes/macros are used to be able to easily multiplex callbacks - // from the Steam API into various objects in the app in a thread-safe manner - // - // These functors are triggered via the SteamAPI_RunCallbacks() function, mapping the callback - // to as many functions/objects as are registered to it - //----------------------------------------------------------------------------------------------------------------------------------------------------------// - public static void RunCallbacks() { - InteropHelp.TestIfPlatformSupported(); - NativeMethods.SteamAPI_RunCallbacks(); - } - - // checks if a local Steam client is running - public static bool IsSteamRunning() { - InteropHelp.TestIfPlatformSupported(); - return NativeMethods.SteamAPI_IsSteamRunning(); - } - - // returns the HSteamUser of the last user to dispatch a callback - public static HSteamUser GetHSteamUserCurrent() { - InteropHelp.TestIfPlatformSupported(); - return (HSteamUser)NativeMethods.Steam_GetHSteamUserCurrent(); - } - - // returns the pipe we are communicating to Steam with - public static HSteamPipe GetHSteamPipe() { - InteropHelp.TestIfPlatformSupported(); - return (HSteamPipe)NativeMethods.SteamAPI_GetHSteamPipe(); - } - - public static HSteamUser GetHSteamUser() { - InteropHelp.TestIfPlatformSupported(); - return (HSteamUser)NativeMethods.SteamAPI_GetHSteamUser(); - } - } - - public static class GameServer { - // Initialize ISteamGameServer interface object, and set server properties which may not be changed. - // - // After calling this function, you should set any additional server parameters, and then - // call ISteamGameServer::LogOnAnonymous() or ISteamGameServer::LogOn() - // - // - usSteamPort is the local port used to communicate with the steam servers. - // - usGamePort is the port that clients will connect to for gameplay. - // - usQueryPort is the port that will manage server browser related duties and info - // pings from clients. If you pass MASTERSERVERUPDATERPORT_USEGAMESOCKETSHARE for usQueryPort, then it - // will use "GameSocketShare" mode, which means that the game is responsible for sending and receiving - // UDP packets for the master server updater. See references to GameSocketShare in isteamgameserver.h. - // - The version string is usually in the form x.x.x.x, and is used by the master server to detect when the - // server is out of date. (Only servers with the latest version will be listed.) -#if VERSION_SAFE_STEAM_API_INTERFACES - public static bool InitSafe(uint unIP, ushort usSteamPort, ushort usGamePort, ushort usQueryPort, EServerMode eServerMode, string pchVersionString) { - InteropHelp.TestIfPlatformSupported(); - using (var pchVersionString2 = new InteropHelp.UTF8StringHandle(pchVersionString)) { - return NativeMethods.SteamGameServer_InitSafe(unIP, usSteamPort, usGamePort, usQueryPort, eServerMode, pchVersionString2); - } - } - - // [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(uint unIP, ushort usSteamPort, ushort usGamePort, ushort usQueryPort, EServerMode eServerMode, string pchVersionString) { - InteropHelp.TestIfPlatformSupported(); - using (var pchVersionString2 = new InteropHelp.UTF8StringHandle(pchVersionString)) { - return NativeMethods.SteamGameServer_InitSafe(unIP, usSteamPort, usGamePort, usQueryPort, eServerMode, pchVersionString2); - } - } -#else - public static bool Init(uint unIP, ushort usSteamPort, ushort usGamePort, ushort usQueryPort, EServerMode eServerMode, string pchVersionString) { - InteropHelp.TestIfPlatformSupported(); - using (var pchVersionString2 = new InteropHelp.UTF8StringHandle(pchVersionString)) { - return NativeMethods.SteamGameServer_Init(unIP, usSteamPort, usGamePort, usQueryPort, eServerMode, pchVersionString2); - ` } - } -#endif - public static void Shutdown() { - InteropHelp.TestIfPlatformSupported(); - NativeMethods.SteamGameServer_Shutdown(); - } - - public static void RunCallbacks() { - InteropHelp.TestIfPlatformSupported(); - NativeMethods.SteamGameServer_RunCallbacks(); - } - - public static bool BSecure() { - InteropHelp.TestIfPlatformSupported(); - return NativeMethods.SteamGameServer_BSecure(); - } - - public static CSteamID GetSteamID() { - InteropHelp.TestIfPlatformSupported(); - return (CSteamID)NativeMethods.SteamGameServer_GetSteamID(); - } - - public static HSteamPipe GetHSteamPipe() { - InteropHelp.TestIfPlatformSupported(); - return (HSteamPipe)NativeMethods.SteamGameServer_GetHSteamPipe(); - } - - public static HSteamUser GetHSteamUser() { - InteropHelp.TestIfPlatformSupported(); - return (HSteamUser)NativeMethods.SteamGameServer_GetHSteamUser(); - } - } - - public static class SteamEncryptedAppTicket { - public static bool BDecryptTicket(byte[] rgubTicketEncrypted, uint cubTicketEncrypted, byte[] rgubTicketDecrypted, ref uint pcubTicketDecrypted, byte[] rgubKey, int cubKey) { - InteropHelp.TestIfPlatformSupported(); - return NativeMethods.BDecryptTicket(rgubTicketEncrypted, cubTicketEncrypted, rgubTicketDecrypted, ref pcubTicketDecrypted, rgubKey, cubKey); - } - - public static bool BIsTicketForApp(byte[] rgubTicketDecrypted, uint cubTicketDecrypted, AppId_t nAppID) { - InteropHelp.TestIfPlatformSupported(); - return NativeMethods.BIsTicketForApp(rgubTicketDecrypted, cubTicketDecrypted, nAppID); - } - - public static uint GetTicketIssueTime(byte[] rgubTicketDecrypted, uint cubTicketDecrypted) { - InteropHelp.TestIfPlatformSupported(); - return NativeMethods.GetTicketIssueTime(rgubTicketDecrypted, cubTicketDecrypted); - } - - public static void GetTicketSteamID(byte[] rgubTicketDecrypted, uint cubTicketDecrypted, out CSteamID psteamID) { - InteropHelp.TestIfPlatformSupported(); - NativeMethods.GetTicketSteamID(rgubTicketDecrypted, cubTicketDecrypted, out psteamID); - } - - public static uint GetTicketAppID(byte[] rgubTicketDecrypted, uint cubTicketDecrypted) { - InteropHelp.TestIfPlatformSupported(); - return NativeMethods.GetTicketAppID(rgubTicketDecrypted, cubTicketDecrypted); - } - - public static bool BUserOwnsAppInTicket(byte[] rgubTicketDecrypted, uint cubTicketDecrypted, AppId_t nAppID) { - InteropHelp.TestIfPlatformSupported(); - return NativeMethods.BUserOwnsAppInTicket(rgubTicketDecrypted, cubTicketDecrypted, nAppID); - } - - public static bool BUserIsVacBanned(byte[] rgubTicketDecrypted, uint cubTicketDecrypted) { - InteropHelp.TestIfPlatformSupported(); - return NativeMethods.BUserIsVacBanned(rgubTicketDecrypted, cubTicketDecrypted); - } - - public static byte[] GetUserVariableData(byte[] rgubTicketDecrypted, uint cubTicketDecrypted, out uint pcubUserData) { - InteropHelp.TestIfPlatformSupported(); - System.IntPtr punSecretData = NativeMethods.GetUserVariableData(rgubTicketDecrypted, cubTicketDecrypted, out pcubUserData); - byte[] ret = new byte[pcubUserData]; - System.Runtime.InteropServices.Marshal.Copy(punSecretData, ret, 0, (int)pcubUserData); - return ret; - } - } -} diff --git a/Assets/Plugins/Steamworks.NET/Steam.cs.meta b/Assets/Plugins/Steamworks.NET/Steam.cs.meta deleted file mode 100644 index 62e614f..0000000 --- a/Assets/Plugins/Steamworks.NET/Steam.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 9ad8b51ab32b56347874e1c180123916 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/Plugins/Steamworks.NET/autogen.meta b/Assets/Plugins/Steamworks.NET/autogen.meta deleted file mode 100644 index 3eccddd..0000000 --- a/Assets/Plugins/Steamworks.NET/autogen.meta +++ /dev/null @@ -1,5 +0,0 @@ -fileFormatVersion: 2 -guid: af3513bb4ec31ee46a75603ffb8030ed -folderAsset: yes -DefaultImporter: - userData: diff --git a/Assets/Plugins/Steamworks.NET/autogen/NativeMethods.cs b/Assets/Plugins/Steamworks.NET/autogen/NativeMethods.cs deleted file mode 100644 index 66ce91c..0000000 --- a/Assets/Plugins/Steamworks.NET/autogen/NativeMethods.cs +++ /dev/null @@ -1,2974 +0,0 @@ -// This file is provided under The MIT License as part of Steamworks.NET. -// Copyright (c) 2013-2015 Riley Labrecque -// Please see the included LICENSE.txt for additional information. - -// This file is automatically generated. -// Changes to this file will be reverted when you update Steamworks.NET - -using System; -using System.Runtime.InteropServices; - -namespace Steamworks { - internal static class NativeMethods { - internal const string NativeLibraryName = "CSteamworks"; -#region steam_api.h - [DllImport("CSteamworks", EntryPoint = "Shutdown", CallingConvention = CallingConvention.Cdecl)] - public static extern void SteamAPI_Shutdown(); - - [DllImport("CSteamworks", EntryPoint = "IsSteamRunning", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool SteamAPI_IsSteamRunning(); - - [DllImport("CSteamworks", EntryPoint = "RestartAppIfNecessary", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool SteamAPI_RestartAppIfNecessary(AppId_t unOwnAppID); - - [DllImport("CSteamworks", EntryPoint = "WriteMiniDump", CallingConvention = CallingConvention.Cdecl)] - public static extern void SteamAPI_WriteMiniDump(uint uStructuredExceptionCode, IntPtr pvExceptionInfo, uint uBuildID); - - [DllImport("CSteamworks", EntryPoint = "SetMiniDumpComment", CallingConvention = CallingConvention.Cdecl)] - public static extern void SteamAPI_SetMiniDumpComment(InteropHelp.UTF8StringHandle pchMsg); - - [DllImport("CSteamworks", EntryPoint = "SteamClient_", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr SteamClient(); - - [DllImport("CSteamworks", EntryPoint = "InitSafe", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool SteamAPI_InitSafe(); - -#if DISABLED - // This depends on how CSteamworks was compiled. By default it's compiled with VERSION_SAFE_STEAM_API_INTERFACES. - [DllImport("CSteamworks", EntryPoint = "Init", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool SteamAPI_Init(); -#endif - [DllImport("CSteamworks", EntryPoint = "RunCallbacks", CallingConvention = CallingConvention.Cdecl)] - public static extern void SteamAPI_RunCallbacks(); - - [DllImport("CSteamworks", EntryPoint = "RegisterCallback", CallingConvention = CallingConvention.Cdecl)] - public static extern void SteamAPI_RegisterCallback(IntPtr pCallback, int iCallback); - - [DllImport("CSteamworks", EntryPoint = "UnregisterCallback", CallingConvention = CallingConvention.Cdecl)] - public static extern void SteamAPI_UnregisterCallback(IntPtr pCallback); - - [DllImport("CSteamworks", EntryPoint = "RegisterCallResult", CallingConvention = CallingConvention.Cdecl)] - public static extern void SteamAPI_RegisterCallResult(IntPtr pCallback, ulong hAPICall); - - [DllImport("CSteamworks", EntryPoint = "UnregisterCallResult", CallingConvention = CallingConvention.Cdecl)] - public static extern void SteamAPI_UnregisterCallResult(IntPtr pCallback, ulong hAPICall); - - [DllImport("CSteamworks", EntryPoint = "Steam_RunCallbacks_", CallingConvention = CallingConvention.Cdecl)] - public static extern void Steam_RunCallbacks(HSteamPipe hSteamPipe, [MarshalAs(UnmanagedType.I1)] bool bGameServerCallbacks); - - [DllImport("CSteamworks", EntryPoint = "Steam_RegisterInterfaceFuncs_", CallingConvention = CallingConvention.Cdecl)] - public static extern void Steam_RegisterInterfaceFuncs(IntPtr hModule); - - [DllImport("CSteamworks", EntryPoint = "Steam_GetHSteamUserCurrent_", CallingConvention = CallingConvention.Cdecl)] - public static extern int Steam_GetHSteamUserCurrent(); - - [DllImport("CSteamworks", EntryPoint = "GetSteamInstallPath", CallingConvention = CallingConvention.Cdecl)] - public static extern int SteamAPI_GetSteamInstallPath(); - - [DllImport("CSteamworks", EntryPoint = "GetHSteamPipe_", CallingConvention = CallingConvention.Cdecl)] - public static extern int SteamAPI_GetHSteamPipe(); - - [DllImport("CSteamworks", EntryPoint = "SetTryCatchCallbacks", CallingConvention = CallingConvention.Cdecl)] - public static extern void SteamAPI_SetTryCatchCallbacks([MarshalAs(UnmanagedType.I1)] bool bTryCatchCallbacks); - - [DllImport("CSteamworks", EntryPoint = "GetHSteamUser_", CallingConvention = CallingConvention.Cdecl)] - public static extern int SteamAPI_GetHSteamUser(); - - [DllImport("CSteamworks", EntryPoint = "UseBreakpadCrashHandler", CallingConvention = CallingConvention.Cdecl)] - public static extern void SteamAPI_UseBreakpadCrashHandler(InteropHelp.UTF8StringHandle pchVersion, InteropHelp.UTF8StringHandle pchDate, InteropHelp.UTF8StringHandle pchTime, [MarshalAs(UnmanagedType.I1)] bool bFullMemoryDumps, IntPtr pvContext, IntPtr m_pfnPreMinidumpCallback); - - // SteamContext Accessors: - [DllImport("CSteamworks", EntryPoint = "SteamUser", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr SteamUser(); - [DllImport("CSteamworks", EntryPoint = "SteamFriends", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr SteamFriends(); - [DllImport("CSteamworks", EntryPoint = "SteamUtils", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr SteamUtils(); - [DllImport("CSteamworks", EntryPoint = "SteamMatchmaking", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr SteamMatchmaking(); - [DllImport("CSteamworks", EntryPoint = "SteamUserStats", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr SteamUserStats(); - [DllImport("CSteamworks", EntryPoint = "SteamApps", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr SteamApps(); - [DllImport("CSteamworks", EntryPoint = "SteamNetworking", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr SteamNetworking(); - [DllImport("CSteamworks", EntryPoint = "SteamMatchmakingServers", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr SteamMatchmakingServers(); - [DllImport("CSteamworks", EntryPoint = "SteamRemoteStorage", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr SteamRemoteStorage(); - [DllImport("CSteamworks", EntryPoint = "SteamScreenshots", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr SteamScreenshots(); - [DllImport("CSteamworks", EntryPoint = "SteamHTTP", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr SteamHTTP(); - [DllImport("CSteamworks", EntryPoint = "SteamUnifiedMessages", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr SteamUnifiedMessages(); - [DllImport("CSteamworks", EntryPoint = "SteamController", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr SteamController(); - [DllImport("CSteamworks", EntryPoint = "SteamUGC", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr SteamUGC(); - [DllImport("CSteamworks", EntryPoint = "SteamAppList", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr SteamAppList(); - [DllImport("CSteamworks", EntryPoint = "SteamMusic", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr SteamMusic(); - [DllImport("CSteamworks", EntryPoint = "SteamMusicRemote", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr SteamMusicRemote(); - [DllImport("CSteamworks", EntryPoint = "SteamHTMLSurface", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr SteamHTMLSurface(); - [DllImport("CSteamworks", EntryPoint = "SteamInventory", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr SteamInventory(); - [DllImport("CSteamworks", EntryPoint = "SteamVideo", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr SteamVideo(); -#endregion -#region steam_gameserver.h - [DllImport("CSteamworks", EntryPoint = "GameServer_InitSafe", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool SteamGameServer_InitSafe(uint unIP, ushort usSteamPort, ushort usGamePort, ushort usQueryPort, EServerMode eServerMode, InteropHelp.UTF8StringHandle pchVersionString); - -#if DISABLED - // This depends on how CSteamworks was compiled. By default it's compiled with VERSION_SAFE_STEAM_API_INTERFACES. - [DllImport("CSteamworks", EntryPoint = "GameServer_Init", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool SteamGameServer_Init(uint unIP, ushort usSteamPort, ushort usGamePort, ushort usQueryPort, EServerMode eServerMode, InteropHelp.UTF8StringHandle pchVersionString); -#endif - - [DllImport("CSteamworks", EntryPoint = "GameServer_Shutdown", CallingConvention = CallingConvention.Cdecl)] - public static extern void SteamGameServer_Shutdown(); - - [DllImport("CSteamworks", EntryPoint = "GameServer_RunCallbacks", CallingConvention = CallingConvention.Cdecl)] - public static extern void SteamGameServer_RunCallbacks(); - - [DllImport("CSteamworks", EntryPoint = "GameServer_BSecure", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool SteamGameServer_BSecure(); - - [DllImport("CSteamworks", EntryPoint = "GameServer_GetSteamID", CallingConvention = CallingConvention.Cdecl)] - public static extern ulong SteamGameServer_GetSteamID(); - - [DllImport("CSteamworks", EntryPoint = "GameServer_GetHSteamPipe", CallingConvention = CallingConvention.Cdecl)] - public static extern int SteamGameServer_GetHSteamPipe(); - - [DllImport("CSteamworks", EntryPoint = "GameServer_GetHSteamUser", CallingConvention = CallingConvention.Cdecl)] - public static extern int SteamGameServer_GetHSteamUser(); - - [DllImport("CSteamworks", EntryPoint = "SteamClientGameServer", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr SteamClientGameServer(); - - // SteamGameServerContext Accessors - [DllImport("CSteamworks", EntryPoint = "SteamGameServer", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr SteamGameServer(); - [DllImport("CSteamworks", EntryPoint = "SteamGameServerUtils", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr SteamGameServerUtils(); - [DllImport("CSteamworks", EntryPoint = "SteamGameServerNetworking", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr SteamGameServerNetworking(); - [DllImport("CSteamworks", EntryPoint = "SteamGameServerStats", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr SteamGameServerStats(); - [DllImport("CSteamworks", EntryPoint = "SteamGameServerHTTP", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr SteamGameServerHTTP(); - [DllImport("CSteamworks", EntryPoint = "SteamGameServerInventory", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr SteamGameServerInventory(); - [DllImport("CSteamworks", EntryPoint = "SteamGameServerUGC", CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr SteamGameServerUGC(); -#endregion -#region steamencryptedappticket.h - [DllImport("sdkencryptedappticket", CallingConvention = CallingConvention.Cdecl, EntryPoint = "SteamEncryptedAppTicket_BDecryptTicket")] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool BDecryptTicket([In, Out] byte[] rgubTicketEncrypted, uint cubTicketEncrypted, [In, Out] byte[] rgubTicketDecrypted, ref uint pcubTicketDecrypted, [MarshalAs(UnmanagedType.LPArray, SizeConst=Constants.k_nSteamEncryptedAppTicketSymmetricKeyLen)] byte[] rgubKey, int cubKey); - - [DllImport("sdkencryptedappticket", CallingConvention = CallingConvention.Cdecl, EntryPoint = "SteamEncryptedAppTicket_BIsTicketForApp")] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool BIsTicketForApp([In, Out] byte[] rgubTicketDecrypted, uint cubTicketDecrypted, AppId_t nAppID); - - [DllImport("sdkencryptedappticket", CallingConvention = CallingConvention.Cdecl, EntryPoint = "SteamEncryptedAppTicket_GetTicketIssueTime")] - public static extern uint GetTicketIssueTime([In, Out] byte[] rgubTicketDecrypted, uint cubTicketDecrypted); - - [DllImport("sdkencryptedappticket", CallingConvention = CallingConvention.Cdecl, EntryPoint = "SteamEncryptedAppTicket_GetTicketSteamID")] - public static extern void GetTicketSteamID([In, Out] byte[] rgubTicketDecrypted, uint cubTicketDecrypted, out CSteamID psteamID); - - [DllImport("sdkencryptedappticket", CallingConvention = CallingConvention.Cdecl, EntryPoint = "SteamEncryptedAppTicket_GetTicketAppID")] - public static extern uint GetTicketAppID([In, Out] byte[] rgubTicketDecrypted, uint cubTicketDecrypted); - - [DllImport("sdkencryptedappticket", CallingConvention = CallingConvention.Cdecl, EntryPoint = "SteamEncryptedAppTicket_BUserOwnsAppInTicket")] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool BUserOwnsAppInTicket([In, Out] byte[] rgubTicketDecrypted, uint cubTicketDecrypted, AppId_t nAppID); - - [DllImport("sdkencryptedappticket", CallingConvention = CallingConvention.Cdecl, EntryPoint = "SteamEncryptedAppTicket_BUserIsVacBanned")] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool BUserIsVacBanned([In, Out] byte[] rgubTicketDecrypted, uint cubTicketDecrypted); - - [DllImport("sdkencryptedappticket", CallingConvention = CallingConvention.Cdecl, EntryPoint = "SteamEncryptedAppTicket_GetUserVariableData")] - public static extern IntPtr GetUserVariableData([In, Out] byte[] rgubTicketDecrypted, uint cubTicketDecrypted, out uint pcubUserData); -#endregion -#region SteamAppList - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamAppList_GetNumInstalledApps(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamAppList_GetInstalledApps([In, Out] AppId_t[] pvecAppID, uint unMaxAppIDs); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamAppList_GetAppName(AppId_t nAppID, IntPtr pchName, int cchNameMax); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamAppList_GetAppInstallDir(AppId_t nAppID, IntPtr pchDirectory, int cchNameMax); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamAppList_GetAppBuildId(AppId_t nAppID); -#endregion -#region SteamApps - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamApps_BIsSubscribed(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamApps_BIsLowViolence(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamApps_BIsCybercafe(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamApps_BIsVACBanned(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamApps_GetCurrentGameLanguage(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamApps_GetAvailableGameLanguages(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamApps_BIsSubscribedApp(AppId_t appID); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamApps_BIsDlcInstalled(AppId_t appID); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamApps_GetEarliestPurchaseUnixTime(AppId_t nAppID); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamApps_BIsSubscribedFromFreeWeekend(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamApps_GetDLCCount(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamApps_BGetDLCDataByIndex(int iDLC, out AppId_t pAppID, out bool pbAvailable, IntPtr pchName, int cchNameBufferSize); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamApps_InstallDLC(AppId_t nAppID); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamApps_UninstallDLC(AppId_t nAppID); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamApps_RequestAppProofOfPurchaseKey(AppId_t nAppID); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamApps_GetCurrentBetaName(IntPtr pchName, int cchNameBufferSize); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamApps_MarkContentCorrupt([MarshalAs(UnmanagedType.I1)] bool bMissingFilesOnly); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamApps_GetInstalledDepots(AppId_t appID, [In, Out] DepotId_t[] pvecDepots, uint cMaxDepots); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamApps_GetAppInstallDir(AppId_t appID, IntPtr pchFolder, uint cchFolderBufferSize); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamApps_BIsAppInstalled(AppId_t appID); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamApps_GetAppOwner(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamApps_GetLaunchQueryParam(InteropHelp.UTF8StringHandle pchKey); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamApps_GetDlcDownloadProgress(AppId_t nAppID, out ulong punBytesDownloaded, out ulong punBytesTotal); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamApps_GetAppBuildId(); -#if _PS3 - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamApps_RegisterActivationCode(InteropHelp.UTF8StringHandle pchActivationCode); -#endif -#endregion -#region SteamClient - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamClient_CreateSteamPipe(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamClient_BReleaseSteamPipe(HSteamPipe hSteamPipe); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamClient_ConnectToGlobalUser(HSteamPipe hSteamPipe); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamClient_CreateLocalUser(out HSteamPipe phSteamPipe, EAccountType eAccountType); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamClient_ReleaseUser(HSteamPipe hSteamPipe, HSteamUser hUser); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamClient_GetISteamUser(HSteamUser hSteamUser, HSteamPipe hSteamPipe, InteropHelp.UTF8StringHandle pchVersion); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamClient_GetISteamGameServer(HSteamUser hSteamUser, HSteamPipe hSteamPipe, InteropHelp.UTF8StringHandle pchVersion); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamClient_SetLocalIPBinding(uint unIP, ushort usPort); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamClient_GetISteamFriends(HSteamUser hSteamUser, HSteamPipe hSteamPipe, InteropHelp.UTF8StringHandle pchVersion); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamClient_GetISteamUtils(HSteamPipe hSteamPipe, InteropHelp.UTF8StringHandle pchVersion); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamClient_GetISteamMatchmaking(HSteamUser hSteamUser, HSteamPipe hSteamPipe, InteropHelp.UTF8StringHandle pchVersion); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamClient_GetISteamMatchmakingServers(HSteamUser hSteamUser, HSteamPipe hSteamPipe, InteropHelp.UTF8StringHandle pchVersion); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamClient_GetISteamGenericInterface(HSteamUser hSteamUser, HSteamPipe hSteamPipe, InteropHelp.UTF8StringHandle pchVersion); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamClient_GetISteamUserStats(HSteamUser hSteamUser, HSteamPipe hSteamPipe, InteropHelp.UTF8StringHandle pchVersion); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamClient_GetISteamGameServerStats(HSteamUser hSteamuser, HSteamPipe hSteamPipe, InteropHelp.UTF8StringHandle pchVersion); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamClient_GetISteamApps(HSteamUser hSteamUser, HSteamPipe hSteamPipe, InteropHelp.UTF8StringHandle pchVersion); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamClient_GetISteamNetworking(HSteamUser hSteamUser, HSteamPipe hSteamPipe, InteropHelp.UTF8StringHandle pchVersion); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamClient_GetISteamRemoteStorage(HSteamUser hSteamuser, HSteamPipe hSteamPipe, InteropHelp.UTF8StringHandle pchVersion); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamClient_GetISteamScreenshots(HSteamUser hSteamuser, HSteamPipe hSteamPipe, InteropHelp.UTF8StringHandle pchVersion); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamClient_RunFrame(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamClient_GetIPCCallCount(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamClient_SetWarningMessageHook(SteamAPIWarningMessageHook_t pFunction); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamClient_BShutdownIfAllPipesClosed(); -#if _PS3 - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamClient_GetISteamPS3OverlayRender(); -#endif - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamClient_GetISteamHTTP(HSteamUser hSteamuser, HSteamPipe hSteamPipe, InteropHelp.UTF8StringHandle pchVersion); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamClient_GetISteamUnifiedMessages(HSteamUser hSteamuser, HSteamPipe hSteamPipe, InteropHelp.UTF8StringHandle pchVersion); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamClient_GetISteamController(HSteamUser hSteamUser, HSteamPipe hSteamPipe, InteropHelp.UTF8StringHandle pchVersion); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamClient_GetISteamUGC(HSteamUser hSteamUser, HSteamPipe hSteamPipe, InteropHelp.UTF8StringHandle pchVersion); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamClient_GetISteamAppList(HSteamUser hSteamUser, HSteamPipe hSteamPipe, InteropHelp.UTF8StringHandle pchVersion); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamClient_GetISteamMusic(HSteamUser hSteamuser, HSteamPipe hSteamPipe, InteropHelp.UTF8StringHandle pchVersion); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamClient_GetISteamMusicRemote(HSteamUser hSteamuser, HSteamPipe hSteamPipe, InteropHelp.UTF8StringHandle pchVersion); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamClient_GetISteamHTMLSurface(HSteamUser hSteamuser, HSteamPipe hSteamPipe, InteropHelp.UTF8StringHandle pchVersion); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamClient_Set_SteamAPI_CPostAPIResultInProcess(SteamAPI_PostAPIResultInProcess_t func); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamClient_Remove_SteamAPI_CPostAPIResultInProcess(SteamAPI_PostAPIResultInProcess_t func); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamClient_Set_SteamAPI_CCheckCallbackRegisteredInProcess(SteamAPI_CheckCallbackRegistered_t func); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamClient_GetISteamInventory(HSteamUser hSteamuser, HSteamPipe hSteamPipe, InteropHelp.UTF8StringHandle pchVersion); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamClient_GetISteamVideo(HSteamUser hSteamuser, HSteamPipe hSteamPipe, InteropHelp.UTF8StringHandle pchVersion); -#endregion -#region SteamController - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamController_Init(InteropHelp.UTF8StringHandle pchAbsolutePathToControllerConfigVDF); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamController_Shutdown(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamController_RunFrame(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamController_GetControllerState(uint unControllerIndex, out SteamControllerState_t pState); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamController_TriggerHapticPulse(uint unControllerIndex, ESteamControllerPad eTargetPad, ushort usDurationMicroSec); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamController_SetOverrideMode(InteropHelp.UTF8StringHandle pchMode); -#endregion -#region SteamFriends - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamFriends_GetPersonaName(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamFriends_SetPersonaName(InteropHelp.UTF8StringHandle pchPersonaName); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern EPersonaState ISteamFriends_GetPersonaState(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamFriends_GetFriendCount(EFriendFlags iFriendFlags); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamFriends_GetFriendByIndex(int iFriend, EFriendFlags iFriendFlags); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern EFriendRelationship ISteamFriends_GetFriendRelationship(CSteamID steamIDFriend); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern EPersonaState ISteamFriends_GetFriendPersonaState(CSteamID steamIDFriend); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamFriends_GetFriendPersonaName(CSteamID steamIDFriend); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamFriends_GetFriendGamePlayed(CSteamID steamIDFriend, out FriendGameInfo_t pFriendGameInfo); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamFriends_GetFriendPersonaNameHistory(CSteamID steamIDFriend, int iPersonaName); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamFriends_GetFriendSteamLevel(CSteamID steamIDFriend); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamFriends_GetPlayerNickname(CSteamID steamIDPlayer); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamFriends_GetFriendsGroupCount(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern short ISteamFriends_GetFriendsGroupIDByIndex(int iFG); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamFriends_GetFriendsGroupName(FriendsGroupID_t friendsGroupID); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamFriends_GetFriendsGroupMembersCount(FriendsGroupID_t friendsGroupID); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamFriends_GetFriendsGroupMembersList(FriendsGroupID_t friendsGroupID, [In, Out] CSteamID[] pOutSteamIDMembers, int nMembersCount); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamFriends_HasFriend(CSteamID steamIDFriend, EFriendFlags iFriendFlags); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamFriends_GetClanCount(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamFriends_GetClanByIndex(int iClan); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamFriends_GetClanName(CSteamID steamIDClan); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamFriends_GetClanTag(CSteamID steamIDClan); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamFriends_GetClanActivityCounts(CSteamID steamIDClan, out int pnOnline, out int pnInGame, out int pnChatting); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamFriends_DownloadClanActivityCounts([In, Out] CSteamID[] psteamIDClans, int cClansToRequest); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamFriends_GetFriendCountFromSource(CSteamID steamIDSource); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamFriends_GetFriendFromSourceByIndex(CSteamID steamIDSource, int iFriend); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamFriends_IsUserInSource(CSteamID steamIDUser, CSteamID steamIDSource); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamFriends_SetInGameVoiceSpeaking(CSteamID steamIDUser, [MarshalAs(UnmanagedType.I1)] bool bSpeaking); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamFriends_ActivateGameOverlay(InteropHelp.UTF8StringHandle pchDialog); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamFriends_ActivateGameOverlayToUser(InteropHelp.UTF8StringHandle pchDialog, CSteamID steamID); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamFriends_ActivateGameOverlayToWebPage(InteropHelp.UTF8StringHandle pchURL); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamFriends_ActivateGameOverlayToStore(AppId_t nAppID, EOverlayToStoreFlag eFlag); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamFriends_SetPlayedWith(CSteamID steamIDUserPlayedWith); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamFriends_ActivateGameOverlayInviteDialog(CSteamID steamIDLobby); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamFriends_GetSmallFriendAvatar(CSteamID steamIDFriend); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamFriends_GetMediumFriendAvatar(CSteamID steamIDFriend); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamFriends_GetLargeFriendAvatar(CSteamID steamIDFriend); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamFriends_RequestUserInformation(CSteamID steamIDUser, [MarshalAs(UnmanagedType.I1)] bool bRequireNameOnly); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamFriends_RequestClanOfficerList(CSteamID steamIDClan); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamFriends_GetClanOwner(CSteamID steamIDClan); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamFriends_GetClanOfficerCount(CSteamID steamIDClan); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamFriends_GetClanOfficerByIndex(CSteamID steamIDClan, int iOfficer); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamFriends_GetUserRestrictions(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamFriends_SetRichPresence(InteropHelp.UTF8StringHandle pchKey, InteropHelp.UTF8StringHandle pchValue); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamFriends_ClearRichPresence(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamFriends_GetFriendRichPresence(CSteamID steamIDFriend, InteropHelp.UTF8StringHandle pchKey); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamFriends_GetFriendRichPresenceKeyCount(CSteamID steamIDFriend); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamFriends_GetFriendRichPresenceKeyByIndex(CSteamID steamIDFriend, int iKey); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamFriends_RequestFriendRichPresence(CSteamID steamIDFriend); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamFriends_InviteUserToGame(CSteamID steamIDFriend, InteropHelp.UTF8StringHandle pchConnectString); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamFriends_GetCoplayFriendCount(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamFriends_GetCoplayFriend(int iCoplayFriend); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamFriends_GetFriendCoplayTime(CSteamID steamIDFriend); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamFriends_GetFriendCoplayGame(CSteamID steamIDFriend); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamFriends_JoinClanChatRoom(CSteamID steamIDClan); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamFriends_LeaveClanChatRoom(CSteamID steamIDClan); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamFriends_GetClanChatMemberCount(CSteamID steamIDClan); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamFriends_GetChatMemberByIndex(CSteamID steamIDClan, int iUser); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamFriends_SendClanChatMessage(CSteamID steamIDClanChat, InteropHelp.UTF8StringHandle pchText); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamFriends_GetClanChatMessage(CSteamID steamIDClanChat, int iMessage, IntPtr prgchText, int cchTextMax, out EChatEntryType peChatEntryType, out CSteamID psteamidChatter); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamFriends_IsClanChatAdmin(CSteamID steamIDClanChat, CSteamID steamIDUser); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamFriends_IsClanChatWindowOpenInSteam(CSteamID steamIDClanChat); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamFriends_OpenClanChatWindowInSteam(CSteamID steamIDClanChat); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamFriends_CloseClanChatWindowInSteam(CSteamID steamIDClanChat); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamFriends_SetListenForFriendsMessages([MarshalAs(UnmanagedType.I1)] bool bInterceptEnabled); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamFriends_ReplyToFriendMessage(CSteamID steamIDFriend, InteropHelp.UTF8StringHandle pchMsgToSend); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamFriends_GetFriendMessage(CSteamID steamIDFriend, int iMessageID, IntPtr pvData, int cubData, out EChatEntryType peChatEntryType); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamFriends_GetFollowerCount(CSteamID steamID); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamFriends_IsFollowing(CSteamID steamID); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamFriends_EnumerateFollowingList(uint unStartIndex); -#endregion -#region SteamGameServer - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServer_InitGameServer(uint unIP, ushort usGamePort, ushort usQueryPort, uint unFlags, AppId_t nGameAppId, InteropHelp.UTF8StringHandle pchVersionString); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamGameServer_SetProduct(InteropHelp.UTF8StringHandle pszProduct); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamGameServer_SetGameDescription(InteropHelp.UTF8StringHandle pszGameDescription); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamGameServer_SetModDir(InteropHelp.UTF8StringHandle pszModDir); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamGameServer_SetDedicatedServer([MarshalAs(UnmanagedType.I1)] bool bDedicated); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamGameServer_LogOn(InteropHelp.UTF8StringHandle pszToken); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamGameServer_LogOnAnonymous(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamGameServer_LogOff(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServer_BLoggedOn(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServer_BSecure(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamGameServer_GetSteamID(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServer_WasRestartRequested(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamGameServer_SetMaxPlayerCount(int cPlayersMax); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamGameServer_SetBotPlayerCount(int cBotplayers); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamGameServer_SetServerName(InteropHelp.UTF8StringHandle pszServerName); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamGameServer_SetMapName(InteropHelp.UTF8StringHandle pszMapName); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamGameServer_SetPasswordProtected([MarshalAs(UnmanagedType.I1)] bool bPasswordProtected); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamGameServer_SetSpectatorPort(ushort unSpectatorPort); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamGameServer_SetSpectatorServerName(InteropHelp.UTF8StringHandle pszSpectatorServerName); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamGameServer_ClearAllKeyValues(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamGameServer_SetKeyValue(InteropHelp.UTF8StringHandle pKey, InteropHelp.UTF8StringHandle pValue); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamGameServer_SetGameTags(InteropHelp.UTF8StringHandle pchGameTags); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamGameServer_SetGameData(InteropHelp.UTF8StringHandle pchGameData); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamGameServer_SetRegion(InteropHelp.UTF8StringHandle pszRegion); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServer_SendUserConnectAndAuthenticate(uint unIPClient, [In, Out] byte[] pvAuthBlob, uint cubAuthBlobSize, out CSteamID pSteamIDUser); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamGameServer_CreateUnauthenticatedUserConnection(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamGameServer_SendUserDisconnect(CSteamID steamIDUser); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServer_BUpdateUserData(CSteamID steamIDUser, InteropHelp.UTF8StringHandle pchPlayerName, uint uScore); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamGameServer_GetAuthSessionTicket([In, Out] byte[] pTicket, int cbMaxTicket, out uint pcbTicket); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern EBeginAuthSessionResult ISteamGameServer_BeginAuthSession([In, Out] byte[] pAuthTicket, int cbAuthTicket, CSteamID steamID); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamGameServer_EndAuthSession(CSteamID steamID); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamGameServer_CancelAuthTicket(HAuthTicket hAuthTicket); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern EUserHasLicenseForAppResult ISteamGameServer_UserHasLicenseForApp(CSteamID steamID, AppId_t appID); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServer_RequestUserGroupStatus(CSteamID steamIDUser, CSteamID steamIDGroup); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamGameServer_GetGameplayStats(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamGameServer_GetServerReputation(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamGameServer_GetPublicIP(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServer_HandleIncomingPacket([In, Out] byte[] pData, int cbData, uint srcIP, ushort srcPort); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamGameServer_GetNextOutgoingPacket([In, Out] byte[] pOut, int cbMaxOut, out uint pNetAdr, out ushort pPort); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamGameServer_EnableHeartbeats([MarshalAs(UnmanagedType.I1)] bool bActive); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamGameServer_SetHeartbeatInterval(int iHeartbeatInterval); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamGameServer_ForceHeartbeat(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamGameServer_AssociateWithClan(CSteamID steamIDClan); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamGameServer_ComputeNewPlayerCompatibility(CSteamID steamIDNewPlayer); -#endregion -#region SteamGameServerStats - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamGameServerStats_RequestUserStats(CSteamID steamIDUser); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerStats_GetUserStat(CSteamID steamIDUser, InteropHelp.UTF8StringHandle pchName, out int pData); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerStats_GetUserStat_(CSteamID steamIDUser, InteropHelp.UTF8StringHandle pchName, out float pData); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerStats_GetUserAchievement(CSteamID steamIDUser, InteropHelp.UTF8StringHandle pchName, out bool pbAchieved); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerStats_SetUserStat(CSteamID steamIDUser, InteropHelp.UTF8StringHandle pchName, int nData); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerStats_SetUserStat_(CSteamID steamIDUser, InteropHelp.UTF8StringHandle pchName, float fData); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerStats_UpdateUserAvgRateStat(CSteamID steamIDUser, InteropHelp.UTF8StringHandle pchName, float flCountThisSession, double dSessionLength); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerStats_SetUserAchievement(CSteamID steamIDUser, InteropHelp.UTF8StringHandle pchName); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerStats_ClearUserAchievement(CSteamID steamIDUser, InteropHelp.UTF8StringHandle pchName); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamGameServerStats_StoreUserStats(CSteamID steamIDUser); -#endregion -#region SteamHTMLSurface - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamHTMLSurface_Init(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamHTMLSurface_Shutdown(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamHTMLSurface_CreateBrowser(InteropHelp.UTF8StringHandle pchUserAgent, InteropHelp.UTF8StringHandle pchUserCSS); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamHTMLSurface_RemoveBrowser(HHTMLBrowser unBrowserHandle); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamHTMLSurface_LoadURL(HHTMLBrowser unBrowserHandle, InteropHelp.UTF8StringHandle pchURL, InteropHelp.UTF8StringHandle pchPostData); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamHTMLSurface_SetSize(HHTMLBrowser unBrowserHandle, uint unWidth, uint unHeight); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamHTMLSurface_StopLoad(HHTMLBrowser unBrowserHandle); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamHTMLSurface_Reload(HHTMLBrowser unBrowserHandle); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamHTMLSurface_GoBack(HHTMLBrowser unBrowserHandle); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamHTMLSurface_GoForward(HHTMLBrowser unBrowserHandle); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamHTMLSurface_AddHeader(HHTMLBrowser unBrowserHandle, InteropHelp.UTF8StringHandle pchKey, InteropHelp.UTF8StringHandle pchValue); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamHTMLSurface_ExecuteJavascript(HHTMLBrowser unBrowserHandle, InteropHelp.UTF8StringHandle pchScript); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamHTMLSurface_MouseUp(HHTMLBrowser unBrowserHandle, EHTMLMouseButton eMouseButton); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamHTMLSurface_MouseDown(HHTMLBrowser unBrowserHandle, EHTMLMouseButton eMouseButton); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamHTMLSurface_MouseDoubleClick(HHTMLBrowser unBrowserHandle, EHTMLMouseButton eMouseButton); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamHTMLSurface_MouseMove(HHTMLBrowser unBrowserHandle, int x, int y); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamHTMLSurface_MouseWheel(HHTMLBrowser unBrowserHandle, int nDelta); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamHTMLSurface_KeyDown(HHTMLBrowser unBrowserHandle, uint nNativeKeyCode, EHTMLKeyModifiers eHTMLKeyModifiers); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamHTMLSurface_KeyUp(HHTMLBrowser unBrowserHandle, uint nNativeKeyCode, EHTMLKeyModifiers eHTMLKeyModifiers); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamHTMLSurface_KeyChar(HHTMLBrowser unBrowserHandle, uint cUnicodeChar, EHTMLKeyModifiers eHTMLKeyModifiers); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamHTMLSurface_SetHorizontalScroll(HHTMLBrowser unBrowserHandle, uint nAbsolutePixelScroll); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamHTMLSurface_SetVerticalScroll(HHTMLBrowser unBrowserHandle, uint nAbsolutePixelScroll); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamHTMLSurface_SetKeyFocus(HHTMLBrowser unBrowserHandle, [MarshalAs(UnmanagedType.I1)] bool bHasKeyFocus); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamHTMLSurface_ViewSource(HHTMLBrowser unBrowserHandle); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamHTMLSurface_CopyToClipboard(HHTMLBrowser unBrowserHandle); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamHTMLSurface_PasteFromClipboard(HHTMLBrowser unBrowserHandle); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamHTMLSurface_Find(HHTMLBrowser unBrowserHandle, InteropHelp.UTF8StringHandle pchSearchStr, [MarshalAs(UnmanagedType.I1)] bool bCurrentlyInFind, [MarshalAs(UnmanagedType.I1)] bool bReverse); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamHTMLSurface_StopFind(HHTMLBrowser unBrowserHandle); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamHTMLSurface_GetLinkAtPosition(HHTMLBrowser unBrowserHandle, int x, int y); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamHTMLSurface_SetCookie(InteropHelp.UTF8StringHandle pchHostname, InteropHelp.UTF8StringHandle pchKey, InteropHelp.UTF8StringHandle pchValue, InteropHelp.UTF8StringHandle pchPath, uint nExpires, [MarshalAs(UnmanagedType.I1)] bool bSecure, [MarshalAs(UnmanagedType.I1)] bool bHTTPOnly); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamHTMLSurface_SetPageScaleFactor(HHTMLBrowser unBrowserHandle, float flZoom, int nPointX, int nPointY); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamHTMLSurface_SetBackgroundMode(HHTMLBrowser unBrowserHandle, [MarshalAs(UnmanagedType.I1)] bool bBackgroundMode); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamHTMLSurface_AllowStartRequest(HHTMLBrowser unBrowserHandle, [MarshalAs(UnmanagedType.I1)] bool bAllowed); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamHTMLSurface_JSDialogResponse(HHTMLBrowser unBrowserHandle, [MarshalAs(UnmanagedType.I1)] bool bResult); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamHTMLSurface_FileLoadDialogResponse(HHTMLBrowser unBrowserHandle, IntPtr pchSelectedFiles); -#endregion -#region SteamHTTP - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamHTTP_CreateHTTPRequest(EHTTPMethod eHTTPRequestMethod, InteropHelp.UTF8StringHandle pchAbsoluteURL); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamHTTP_SetHTTPRequestContextValue(HTTPRequestHandle hRequest, ulong ulContextValue); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamHTTP_SetHTTPRequestNetworkActivityTimeout(HTTPRequestHandle hRequest, uint unTimeoutSeconds); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamHTTP_SetHTTPRequestHeaderValue(HTTPRequestHandle hRequest, InteropHelp.UTF8StringHandle pchHeaderName, InteropHelp.UTF8StringHandle pchHeaderValue); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamHTTP_SetHTTPRequestGetOrPostParameter(HTTPRequestHandle hRequest, InteropHelp.UTF8StringHandle pchParamName, InteropHelp.UTF8StringHandle pchParamValue); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamHTTP_SendHTTPRequest(HTTPRequestHandle hRequest, out SteamAPICall_t pCallHandle); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamHTTP_SendHTTPRequestAndStreamResponse(HTTPRequestHandle hRequest, out SteamAPICall_t pCallHandle); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamHTTP_DeferHTTPRequest(HTTPRequestHandle hRequest); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamHTTP_PrioritizeHTTPRequest(HTTPRequestHandle hRequest); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamHTTP_GetHTTPResponseHeaderSize(HTTPRequestHandle hRequest, InteropHelp.UTF8StringHandle pchHeaderName, out uint unResponseHeaderSize); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamHTTP_GetHTTPResponseHeaderValue(HTTPRequestHandle hRequest, InteropHelp.UTF8StringHandle pchHeaderName, [In, Out] byte[] pHeaderValueBuffer, uint unBufferSize); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamHTTP_GetHTTPResponseBodySize(HTTPRequestHandle hRequest, out uint unBodySize); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamHTTP_GetHTTPResponseBodyData(HTTPRequestHandle hRequest, [In, Out] byte[] pBodyDataBuffer, uint unBufferSize); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamHTTP_GetHTTPStreamingResponseBodyData(HTTPRequestHandle hRequest, uint cOffset, [In, Out] byte[] pBodyDataBuffer, uint unBufferSize); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamHTTP_ReleaseHTTPRequest(HTTPRequestHandle hRequest); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamHTTP_GetHTTPDownloadProgressPct(HTTPRequestHandle hRequest, out float pflPercentOut); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamHTTP_SetHTTPRequestRawPostBody(HTTPRequestHandle hRequest, InteropHelp.UTF8StringHandle pchContentType, [In, Out] byte[] pubBody, uint unBodyLen); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamHTTP_CreateCookieContainer([MarshalAs(UnmanagedType.I1)] bool bAllowResponsesToModify); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamHTTP_ReleaseCookieContainer(HTTPCookieContainerHandle hCookieContainer); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamHTTP_SetCookie(HTTPCookieContainerHandle hCookieContainer, InteropHelp.UTF8StringHandle pchHost, InteropHelp.UTF8StringHandle pchUrl, InteropHelp.UTF8StringHandle pchCookie); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamHTTP_SetHTTPRequestCookieContainer(HTTPRequestHandle hRequest, HTTPCookieContainerHandle hCookieContainer); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamHTTP_SetHTTPRequestUserAgentInfo(HTTPRequestHandle hRequest, InteropHelp.UTF8StringHandle pchUserAgentInfo); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamHTTP_SetHTTPRequestRequiresVerifiedCertificate(HTTPRequestHandle hRequest, [MarshalAs(UnmanagedType.I1)] bool bRequireVerifiedCertificate); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamHTTP_SetHTTPRequestAbsoluteTimeoutMS(HTTPRequestHandle hRequest, uint unMilliseconds); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamHTTP_GetHTTPRequestWasTimedOut(HTTPRequestHandle hRequest, out bool pbWasTimedOut); -#endregion -#region SteamInventory - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern EResult ISteamInventory_GetResultStatus(SteamInventoryResult_t resultHandle); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamInventory_GetResultItems(SteamInventoryResult_t resultHandle, [In, Out] SteamItemDetails_t[] pOutItemsArray, ref uint punOutItemsArraySize); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamInventory_GetResultTimestamp(SteamInventoryResult_t resultHandle); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamInventory_CheckResultSteamID(SteamInventoryResult_t resultHandle, CSteamID steamIDExpected); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamInventory_DestroyResult(SteamInventoryResult_t resultHandle); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamInventory_GetAllItems(out SteamInventoryResult_t pResultHandle); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamInventory_GetItemsByID(out SteamInventoryResult_t pResultHandle, [In, Out] SteamItemInstanceID_t[] pInstanceIDs, uint unCountInstanceIDs); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamInventory_SerializeResult(SteamInventoryResult_t resultHandle, [In, Out] byte[] pOutBuffer, out uint punOutBufferSize); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamInventory_DeserializeResult(out SteamInventoryResult_t pOutResultHandle, [In, Out] byte[] pBuffer, uint unBufferSize, [MarshalAs(UnmanagedType.I1)] bool bRESERVED_MUST_BE_FALSE); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamInventory_GenerateItems(out SteamInventoryResult_t pResultHandle, [In, Out] SteamItemDef_t[] pArrayItemDefs, [In, Out] uint[] punArrayQuantity, uint unArrayLength); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamInventory_GrantPromoItems(out SteamInventoryResult_t pResultHandle); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamInventory_AddPromoItem(out SteamInventoryResult_t pResultHandle, SteamItemDef_t itemDef); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamInventory_AddPromoItems(out SteamInventoryResult_t pResultHandle, [In, Out] SteamItemDef_t[] pArrayItemDefs, uint unArrayLength); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamInventory_ConsumeItem(out SteamInventoryResult_t pResultHandle, SteamItemInstanceID_t itemConsume, uint unQuantity); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamInventory_ExchangeItems(out SteamInventoryResult_t pResultHandle, [In, Out] SteamItemDef_t[] pArrayGenerate, [In, Out] uint[] punArrayGenerateQuantity, uint unArrayGenerateLength, [In, Out] SteamItemInstanceID_t[] pArrayDestroy, [In, Out] uint[] punArrayDestroyQuantity, uint unArrayDestroyLength); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamInventory_TransferItemQuantity(out SteamInventoryResult_t pResultHandle, SteamItemInstanceID_t itemIdSource, uint unQuantity, SteamItemInstanceID_t itemIdDest); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamInventory_SendItemDropHeartbeat(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamInventory_TriggerItemDrop(out SteamInventoryResult_t pResultHandle, SteamItemDef_t dropListDefinition); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamInventory_TradeItems(out SteamInventoryResult_t pResultHandle, CSteamID steamIDTradePartner, [In, Out] SteamItemInstanceID_t[] pArrayGive, [In, Out] uint[] pArrayGiveQuantity, uint nArrayGiveLength, [In, Out] SteamItemInstanceID_t[] pArrayGet, [In, Out] uint[] pArrayGetQuantity, uint nArrayGetLength); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamInventory_LoadItemDefinitions(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamInventory_GetItemDefinitionIDs([In, Out] SteamItemDef_t[] pItemDefIDs, out uint punItemDefIDsArraySize); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamInventory_GetItemDefinitionProperty(SteamItemDef_t iDefinition, InteropHelp.UTF8StringHandle pchPropertyName, IntPtr pchValueBuffer, ref uint punValueBufferSize); -#endregion -#region SteamMatchmaking - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamMatchmaking_GetFavoriteGameCount(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMatchmaking_GetFavoriteGame(int iGame, out AppId_t pnAppID, out uint pnIP, out ushort pnConnPort, out ushort pnQueryPort, out uint punFlags, out uint pRTime32LastPlayedOnServer); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamMatchmaking_AddFavoriteGame(AppId_t nAppID, uint nIP, ushort nConnPort, ushort nQueryPort, uint unFlags, uint rTime32LastPlayedOnServer); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMatchmaking_RemoveFavoriteGame(AppId_t nAppID, uint nIP, ushort nConnPort, ushort nQueryPort, uint unFlags); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamMatchmaking_RequestLobbyList(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamMatchmaking_AddRequestLobbyListStringFilter(InteropHelp.UTF8StringHandle pchKeyToMatch, InteropHelp.UTF8StringHandle pchValueToMatch, ELobbyComparison eComparisonType); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamMatchmaking_AddRequestLobbyListNumericalFilter(InteropHelp.UTF8StringHandle pchKeyToMatch, int nValueToMatch, ELobbyComparison eComparisonType); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamMatchmaking_AddRequestLobbyListNearValueFilter(InteropHelp.UTF8StringHandle pchKeyToMatch, int nValueToBeCloseTo); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamMatchmaking_AddRequestLobbyListFilterSlotsAvailable(int nSlotsAvailable); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamMatchmaking_AddRequestLobbyListDistanceFilter(ELobbyDistanceFilter eLobbyDistanceFilter); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamMatchmaking_AddRequestLobbyListResultCountFilter(int cMaxResults); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamMatchmaking_AddRequestLobbyListCompatibleMembersFilter(CSteamID steamIDLobby); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamMatchmaking_GetLobbyByIndex(int iLobby); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamMatchmaking_CreateLobby(ELobbyType eLobbyType, int cMaxMembers); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamMatchmaking_JoinLobby(CSteamID steamIDLobby); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamMatchmaking_LeaveLobby(CSteamID steamIDLobby); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMatchmaking_InviteUserToLobby(CSteamID steamIDLobby, CSteamID steamIDInvitee); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamMatchmaking_GetNumLobbyMembers(CSteamID steamIDLobby); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamMatchmaking_GetLobbyMemberByIndex(CSteamID steamIDLobby, int iMember); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamMatchmaking_GetLobbyData(CSteamID steamIDLobby, InteropHelp.UTF8StringHandle pchKey); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMatchmaking_SetLobbyData(CSteamID steamIDLobby, InteropHelp.UTF8StringHandle pchKey, InteropHelp.UTF8StringHandle pchValue); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamMatchmaking_GetLobbyDataCount(CSteamID steamIDLobby); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMatchmaking_GetLobbyDataByIndex(CSteamID steamIDLobby, int iLobbyData, IntPtr pchKey, int cchKeyBufferSize, IntPtr pchValue, int cchValueBufferSize); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMatchmaking_DeleteLobbyData(CSteamID steamIDLobby, InteropHelp.UTF8StringHandle pchKey); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamMatchmaking_GetLobbyMemberData(CSteamID steamIDLobby, CSteamID steamIDUser, InteropHelp.UTF8StringHandle pchKey); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamMatchmaking_SetLobbyMemberData(CSteamID steamIDLobby, InteropHelp.UTF8StringHandle pchKey, InteropHelp.UTF8StringHandle pchValue); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMatchmaking_SendLobbyChatMsg(CSteamID steamIDLobby, [In, Out] byte[] pvMsgBody, int cubMsgBody); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamMatchmaking_GetLobbyChatEntry(CSteamID steamIDLobby, int iChatID, out CSteamID pSteamIDUser, [In, Out] byte[] pvData, int cubData, out EChatEntryType peChatEntryType); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMatchmaking_RequestLobbyData(CSteamID steamIDLobby); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamMatchmaking_SetLobbyGameServer(CSteamID steamIDLobby, uint unGameServerIP, ushort unGameServerPort, CSteamID steamIDGameServer); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMatchmaking_GetLobbyGameServer(CSteamID steamIDLobby, out uint punGameServerIP, out ushort punGameServerPort, out CSteamID psteamIDGameServer); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMatchmaking_SetLobbyMemberLimit(CSteamID steamIDLobby, int cMaxMembers); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamMatchmaking_GetLobbyMemberLimit(CSteamID steamIDLobby); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMatchmaking_SetLobbyType(CSteamID steamIDLobby, ELobbyType eLobbyType); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMatchmaking_SetLobbyJoinable(CSteamID steamIDLobby, [MarshalAs(UnmanagedType.I1)] bool bLobbyJoinable); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamMatchmaking_GetLobbyOwner(CSteamID steamIDLobby); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMatchmaking_SetLobbyOwner(CSteamID steamIDLobby, CSteamID steamIDNewOwner); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMatchmaking_SetLinkedLobby(CSteamID steamIDLobby, CSteamID steamIDLobbyDependent); -#if _PS3 - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamMatchmaking_CheckForPSNGameBootInvite(uint iGameBootAttributes); -#endif -#endregion -#region SteamMatchmakingServers - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamMatchmakingServers_RequestInternetServerList(AppId_t iApp, IntPtr ppchFilters, uint nFilters, IntPtr pRequestServersResponse); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamMatchmakingServers_RequestLANServerList(AppId_t iApp, IntPtr pRequestServersResponse); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamMatchmakingServers_RequestFriendsServerList(AppId_t iApp, IntPtr ppchFilters, uint nFilters, IntPtr pRequestServersResponse); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamMatchmakingServers_RequestFavoritesServerList(AppId_t iApp, IntPtr ppchFilters, uint nFilters, IntPtr pRequestServersResponse); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamMatchmakingServers_RequestHistoryServerList(AppId_t iApp, IntPtr ppchFilters, uint nFilters, IntPtr pRequestServersResponse); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamMatchmakingServers_RequestSpectatorServerList(AppId_t iApp, IntPtr ppchFilters, uint nFilters, IntPtr pRequestServersResponse); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamMatchmakingServers_ReleaseRequest(HServerListRequest hServerListRequest); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamMatchmakingServers_GetServerDetails(HServerListRequest hRequest, int iServer); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamMatchmakingServers_CancelQuery(HServerListRequest hRequest); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamMatchmakingServers_RefreshQuery(HServerListRequest hRequest); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMatchmakingServers_IsRefreshing(HServerListRequest hRequest); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamMatchmakingServers_GetServerCount(HServerListRequest hRequest); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamMatchmakingServers_RefreshServer(HServerListRequest hRequest, int iServer); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamMatchmakingServers_PingServer(uint unIP, ushort usPort, IntPtr pRequestServersResponse); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamMatchmakingServers_PlayerDetails(uint unIP, ushort usPort, IntPtr pRequestServersResponse); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamMatchmakingServers_ServerRules(uint unIP, ushort usPort, IntPtr pRequestServersResponse); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamMatchmakingServers_CancelServerQuery(HServerQuery hServerQuery); -#endregion -#region SteamMusic - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMusic_BIsEnabled(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMusic_BIsPlaying(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern AudioPlayback_Status ISteamMusic_GetPlaybackStatus(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamMusic_Play(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamMusic_Pause(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamMusic_PlayPrevious(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamMusic_PlayNext(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamMusic_SetVolume(float flVolume); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern float ISteamMusic_GetVolume(); -#endregion -#region SteamMusicRemote - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMusicRemote_RegisterSteamMusicRemote(InteropHelp.UTF8StringHandle pchName); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMusicRemote_DeregisterSteamMusicRemote(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMusicRemote_BIsCurrentMusicRemote(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMusicRemote_BActivationSuccess([MarshalAs(UnmanagedType.I1)] bool bValue); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMusicRemote_SetDisplayName(InteropHelp.UTF8StringHandle pchDisplayName); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMusicRemote_SetPNGIcon_64x64([In, Out] byte[] pvBuffer, uint cbBufferLength); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMusicRemote_EnablePlayPrevious([MarshalAs(UnmanagedType.I1)] bool bValue); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMusicRemote_EnablePlayNext([MarshalAs(UnmanagedType.I1)] bool bValue); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMusicRemote_EnableShuffled([MarshalAs(UnmanagedType.I1)] bool bValue); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMusicRemote_EnableLooped([MarshalAs(UnmanagedType.I1)] bool bValue); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMusicRemote_EnableQueue([MarshalAs(UnmanagedType.I1)] bool bValue); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMusicRemote_EnablePlaylists([MarshalAs(UnmanagedType.I1)] bool bValue); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMusicRemote_UpdatePlaybackStatus(AudioPlayback_Status nStatus); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMusicRemote_UpdateShuffled([MarshalAs(UnmanagedType.I1)] bool bValue); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMusicRemote_UpdateLooped([MarshalAs(UnmanagedType.I1)] bool bValue); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMusicRemote_UpdateVolume(float flValue); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMusicRemote_CurrentEntryWillChange(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMusicRemote_CurrentEntryIsAvailable([MarshalAs(UnmanagedType.I1)] bool bAvailable); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMusicRemote_UpdateCurrentEntryText(InteropHelp.UTF8StringHandle pchText); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMusicRemote_UpdateCurrentEntryElapsedSeconds(int nValue); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMusicRemote_UpdateCurrentEntryCoverArt([In, Out] byte[] pvBuffer, uint cbBufferLength); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMusicRemote_CurrentEntryDidChange(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMusicRemote_QueueWillChange(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMusicRemote_ResetQueueEntries(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMusicRemote_SetQueueEntry(int nID, int nPosition, InteropHelp.UTF8StringHandle pchEntryText); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMusicRemote_SetCurrentQueueEntry(int nID); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMusicRemote_QueueDidChange(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMusicRemote_PlaylistWillChange(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMusicRemote_ResetPlaylistEntries(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMusicRemote_SetPlaylistEntry(int nID, int nPosition, InteropHelp.UTF8StringHandle pchEntryText); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMusicRemote_SetCurrentPlaylistEntry(int nID); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamMusicRemote_PlaylistDidChange(); -#endregion -#region SteamNetworking - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamNetworking_SendP2PPacket(CSteamID steamIDRemote, [In, Out] byte[] pubData, uint cubData, EP2PSend eP2PSendType, int nChannel); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamNetworking_IsP2PPacketAvailable(out uint pcubMsgSize, int nChannel); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamNetworking_ReadP2PPacket([In, Out] byte[] pubDest, uint cubDest, out uint pcubMsgSize, out CSteamID psteamIDRemote, int nChannel); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamNetworking_AcceptP2PSessionWithUser(CSteamID steamIDRemote); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamNetworking_CloseP2PSessionWithUser(CSteamID steamIDRemote); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamNetworking_CloseP2PChannelWithUser(CSteamID steamIDRemote, int nChannel); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamNetworking_GetP2PSessionState(CSteamID steamIDRemote, out P2PSessionState_t pConnectionState); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamNetworking_AllowP2PPacketRelay([MarshalAs(UnmanagedType.I1)] bool bAllow); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamNetworking_CreateListenSocket(int nVirtualP2PPort, uint nIP, ushort nPort, [MarshalAs(UnmanagedType.I1)] bool bAllowUseOfPacketRelay); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamNetworking_CreateP2PConnectionSocket(CSteamID steamIDTarget, int nVirtualPort, int nTimeoutSec, [MarshalAs(UnmanagedType.I1)] bool bAllowUseOfPacketRelay); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamNetworking_CreateConnectionSocket(uint nIP, ushort nPort, int nTimeoutSec); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamNetworking_DestroySocket(SNetSocket_t hSocket, [MarshalAs(UnmanagedType.I1)] bool bNotifyRemoteEnd); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamNetworking_DestroyListenSocket(SNetListenSocket_t hSocket, [MarshalAs(UnmanagedType.I1)] bool bNotifyRemoteEnd); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamNetworking_SendDataOnSocket(SNetSocket_t hSocket, IntPtr pubData, uint cubData, [MarshalAs(UnmanagedType.I1)] bool bReliable); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamNetworking_IsDataAvailableOnSocket(SNetSocket_t hSocket, out uint pcubMsgSize); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamNetworking_RetrieveDataFromSocket(SNetSocket_t hSocket, IntPtr pubDest, uint cubDest, out uint pcubMsgSize); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamNetworking_IsDataAvailable(SNetListenSocket_t hListenSocket, out uint pcubMsgSize, out SNetSocket_t phSocket); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamNetworking_RetrieveData(SNetListenSocket_t hListenSocket, IntPtr pubDest, uint cubDest, out uint pcubMsgSize, out SNetSocket_t phSocket); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamNetworking_GetSocketInfo(SNetSocket_t hSocket, out CSteamID pSteamIDRemote, out int peSocketStatus, out uint punIPRemote, out ushort punPortRemote); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamNetworking_GetListenSocketInfo(SNetListenSocket_t hListenSocket, out uint pnIP, out ushort pnPort); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ESNetSocketConnectionType ISteamNetworking_GetSocketConnectionType(SNetSocket_t hSocket); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamNetworking_GetMaxPacketSize(SNetSocket_t hSocket); -#endregion -#region SteamRemoteStorage - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamRemoteStorage_FileWrite(InteropHelp.UTF8StringHandle pchFile, [In, Out] byte[] pvData, int cubData); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamRemoteStorage_FileRead(InteropHelp.UTF8StringHandle pchFile, [In, Out] byte[] pvData, int cubDataToRead); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamRemoteStorage_FileForget(InteropHelp.UTF8StringHandle pchFile); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamRemoteStorage_FileDelete(InteropHelp.UTF8StringHandle pchFile); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamRemoteStorage_FileShare(InteropHelp.UTF8StringHandle pchFile); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamRemoteStorage_SetSyncPlatforms(InteropHelp.UTF8StringHandle pchFile, ERemoteStoragePlatform eRemoteStoragePlatform); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamRemoteStorage_FileWriteStreamOpen(InteropHelp.UTF8StringHandle pchFile); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamRemoteStorage_FileWriteStreamWriteChunk(UGCFileWriteStreamHandle_t writeHandle, [In, Out] byte[] pvData, int cubData); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamRemoteStorage_FileWriteStreamClose(UGCFileWriteStreamHandle_t writeHandle); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamRemoteStorage_FileWriteStreamCancel(UGCFileWriteStreamHandle_t writeHandle); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamRemoteStorage_FileExists(InteropHelp.UTF8StringHandle pchFile); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamRemoteStorage_FilePersisted(InteropHelp.UTF8StringHandle pchFile); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamRemoteStorage_GetFileSize(InteropHelp.UTF8StringHandle pchFile); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern long ISteamRemoteStorage_GetFileTimestamp(InteropHelp.UTF8StringHandle pchFile); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ERemoteStoragePlatform ISteamRemoteStorage_GetSyncPlatforms(InteropHelp.UTF8StringHandle pchFile); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamRemoteStorage_GetFileCount(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamRemoteStorage_GetFileNameAndSize(int iFile, out int pnFileSizeInBytes); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamRemoteStorage_GetQuota(out int pnTotalBytes, out int puAvailableBytes); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamRemoteStorage_IsCloudEnabledForAccount(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamRemoteStorage_IsCloudEnabledForApp(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamRemoteStorage_SetCloudEnabledForApp([MarshalAs(UnmanagedType.I1)] bool bEnabled); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamRemoteStorage_UGCDownload(UGCHandle_t hContent, uint unPriority); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamRemoteStorage_GetUGCDownloadProgress(UGCHandle_t hContent, out int pnBytesDownloaded, out int pnBytesExpected); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamRemoteStorage_GetUGCDetails(UGCHandle_t hContent, out AppId_t pnAppID, out IntPtr ppchName, out int pnFileSizeInBytes, out CSteamID pSteamIDOwner); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamRemoteStorage_UGCRead(UGCHandle_t hContent, [In, Out] byte[] pvData, int cubDataToRead, uint cOffset, EUGCReadAction eAction); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamRemoteStorage_GetCachedUGCCount(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamRemoteStorage_GetCachedUGCHandle(int iCachedContent); -#if _PS3 || _SERVER - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamRemoteStorage_GetFileListFromServer(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamRemoteStorage_FileFetch(InteropHelp.UTF8StringHandle pchFile); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamRemoteStorage_FilePersist(InteropHelp.UTF8StringHandle pchFile); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamRemoteStorage_SynchronizeToClient(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamRemoteStorage_SynchronizeToServer(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamRemoteStorage_ResetFileRequestState(); -#endif - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamRemoteStorage_PublishWorkshopFile(InteropHelp.UTF8StringHandle pchFile, InteropHelp.UTF8StringHandle pchPreviewFile, AppId_t nConsumerAppId, InteropHelp.UTF8StringHandle pchTitle, InteropHelp.UTF8StringHandle pchDescription, ERemoteStoragePublishedFileVisibility eVisibility, IntPtr pTags, EWorkshopFileType eWorkshopFileType); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamRemoteStorage_CreatePublishedFileUpdateRequest(PublishedFileId_t unPublishedFileId); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamRemoteStorage_UpdatePublishedFileFile(PublishedFileUpdateHandle_t updateHandle, InteropHelp.UTF8StringHandle pchFile); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamRemoteStorage_UpdatePublishedFilePreviewFile(PublishedFileUpdateHandle_t updateHandle, InteropHelp.UTF8StringHandle pchPreviewFile); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamRemoteStorage_UpdatePublishedFileTitle(PublishedFileUpdateHandle_t updateHandle, InteropHelp.UTF8StringHandle pchTitle); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamRemoteStorage_UpdatePublishedFileDescription(PublishedFileUpdateHandle_t updateHandle, InteropHelp.UTF8StringHandle pchDescription); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamRemoteStorage_UpdatePublishedFileVisibility(PublishedFileUpdateHandle_t updateHandle, ERemoteStoragePublishedFileVisibility eVisibility); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamRemoteStorage_UpdatePublishedFileTags(PublishedFileUpdateHandle_t updateHandle, IntPtr pTags); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamRemoteStorage_CommitPublishedFileUpdate(PublishedFileUpdateHandle_t updateHandle); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamRemoteStorage_GetPublishedFileDetails(PublishedFileId_t unPublishedFileId, uint unMaxSecondsOld); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamRemoteStorage_DeletePublishedFile(PublishedFileId_t unPublishedFileId); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamRemoteStorage_EnumerateUserPublishedFiles(uint unStartIndex); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamRemoteStorage_SubscribePublishedFile(PublishedFileId_t unPublishedFileId); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamRemoteStorage_EnumerateUserSubscribedFiles(uint unStartIndex); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamRemoteStorage_UnsubscribePublishedFile(PublishedFileId_t unPublishedFileId); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamRemoteStorage_UpdatePublishedFileSetChangeDescription(PublishedFileUpdateHandle_t updateHandle, InteropHelp.UTF8StringHandle pchChangeDescription); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamRemoteStorage_GetPublishedItemVoteDetails(PublishedFileId_t unPublishedFileId); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamRemoteStorage_UpdateUserPublishedItemVote(PublishedFileId_t unPublishedFileId, [MarshalAs(UnmanagedType.I1)] bool bVoteUp); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamRemoteStorage_GetUserPublishedItemVoteDetails(PublishedFileId_t unPublishedFileId); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamRemoteStorage_EnumerateUserSharedWorkshopFiles(CSteamID steamId, uint unStartIndex, IntPtr pRequiredTags, IntPtr pExcludedTags); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamRemoteStorage_PublishVideo(EWorkshopVideoProvider eVideoProvider, InteropHelp.UTF8StringHandle pchVideoAccount, InteropHelp.UTF8StringHandle pchVideoIdentifier, InteropHelp.UTF8StringHandle pchPreviewFile, AppId_t nConsumerAppId, InteropHelp.UTF8StringHandle pchTitle, InteropHelp.UTF8StringHandle pchDescription, ERemoteStoragePublishedFileVisibility eVisibility, IntPtr pTags); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamRemoteStorage_SetUserPublishedFileAction(PublishedFileId_t unPublishedFileId, EWorkshopFileAction eAction); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamRemoteStorage_EnumeratePublishedFilesByUserAction(EWorkshopFileAction eAction, uint unStartIndex); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamRemoteStorage_EnumeratePublishedWorkshopFiles(EWorkshopEnumerationType eEnumerationType, uint unStartIndex, uint unCount, uint unDays, IntPtr pTags, IntPtr pUserTags); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamRemoteStorage_UGCDownloadToLocation(UGCHandle_t hContent, InteropHelp.UTF8StringHandle pchLocation, uint unPriority); -#endregion -#region SteamScreenshots - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamScreenshots_WriteScreenshot([In, Out] byte[] pubRGB, uint cubRGB, int nWidth, int nHeight); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamScreenshots_AddScreenshotToLibrary(InteropHelp.UTF8StringHandle pchFilename, InteropHelp.UTF8StringHandle pchThumbnailFilename, int nWidth, int nHeight); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamScreenshots_TriggerScreenshot(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamScreenshots_HookScreenshots([MarshalAs(UnmanagedType.I1)] bool bHook); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamScreenshots_SetLocation(ScreenshotHandle hScreenshot, InteropHelp.UTF8StringHandle pchLocation); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamScreenshots_TagUser(ScreenshotHandle hScreenshot, CSteamID steamID); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamScreenshots_TagPublishedFile(ScreenshotHandle hScreenshot, PublishedFileId_t unPublishedFileID); -#endregion -#region SteamUGC - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamUGC_CreateQueryUserUGCRequest(AccountID_t unAccountID, EUserUGCList eListType, EUGCMatchingUGCType eMatchingUGCType, EUserUGCListSortOrder eSortOrder, AppId_t nCreatorAppID, AppId_t nConsumerAppID, uint unPage); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamUGC_CreateQueryAllUGCRequest(EUGCQuery eQueryType, EUGCMatchingUGCType eMatchingeMatchingUGCTypeFileType, AppId_t nCreatorAppID, AppId_t nConsumerAppID, uint unPage); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamUGC_CreateQueryUGCDetailsRequest([In, Out] PublishedFileId_t[] pvecPublishedFileID, uint unNumPublishedFileIDs); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamUGC_SendQueryUGCRequest(UGCQueryHandle_t handle); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUGC_GetQueryUGCResult(UGCQueryHandle_t handle, uint index, out SteamUGCDetails_t pDetails); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUGC_GetQueryUGCPreviewURL(UGCQueryHandle_t handle, uint index, IntPtr pchURL, uint cchURLSize); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUGC_GetQueryUGCMetadata(UGCQueryHandle_t handle, uint index, IntPtr pchMetadata, uint cchMetadatasize); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUGC_GetQueryUGCChildren(UGCQueryHandle_t handle, uint index, [In, Out] PublishedFileId_t[] pvecPublishedFileID, uint cMaxEntries); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUGC_GetQueryUGCStatistic(UGCQueryHandle_t handle, uint index, EItemStatistic eStatType, out uint pStatValue); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamUGC_GetQueryUGCNumAdditionalPreviews(UGCQueryHandle_t handle, uint index); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUGC_GetQueryUGCAdditionalPreview(UGCQueryHandle_t handle, uint index, uint previewIndex, IntPtr pchURLOrVideoID, uint cchURLSize, out bool pbIsImage); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamUGC_GetQueryUGCNumKeyValueTags(UGCQueryHandle_t handle, uint index); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUGC_GetQueryUGCKeyValueTag(UGCQueryHandle_t handle, uint index, uint keyValueTagIndex, IntPtr pchKey, uint cchKeySize, IntPtr pchValue, uint cchValueSize); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUGC_ReleaseQueryUGCRequest(UGCQueryHandle_t handle); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUGC_AddRequiredTag(UGCQueryHandle_t handle, InteropHelp.UTF8StringHandle pTagName); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUGC_AddExcludedTag(UGCQueryHandle_t handle, InteropHelp.UTF8StringHandle pTagName); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUGC_SetReturnKeyValueTags(UGCQueryHandle_t handle, [MarshalAs(UnmanagedType.I1)] bool bReturnKeyValueTags); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUGC_SetReturnLongDescription(UGCQueryHandle_t handle, [MarshalAs(UnmanagedType.I1)] bool bReturnLongDescription); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUGC_SetReturnMetadata(UGCQueryHandle_t handle, [MarshalAs(UnmanagedType.I1)] bool bReturnMetadata); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUGC_SetReturnChildren(UGCQueryHandle_t handle, [MarshalAs(UnmanagedType.I1)] bool bReturnChildren); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUGC_SetReturnAdditionalPreviews(UGCQueryHandle_t handle, [MarshalAs(UnmanagedType.I1)] bool bReturnAdditionalPreviews); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUGC_SetReturnTotalOnly(UGCQueryHandle_t handle, [MarshalAs(UnmanagedType.I1)] bool bReturnTotalOnly); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUGC_SetLanguage(UGCQueryHandle_t handle, InteropHelp.UTF8StringHandle pchLanguage); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUGC_SetAllowCachedResponse(UGCQueryHandle_t handle, uint unMaxAgeSeconds); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUGC_SetCloudFileNameFilter(UGCQueryHandle_t handle, InteropHelp.UTF8StringHandle pMatchCloudFileName); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUGC_SetMatchAnyTag(UGCQueryHandle_t handle, [MarshalAs(UnmanagedType.I1)] bool bMatchAnyTag); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUGC_SetSearchText(UGCQueryHandle_t handle, InteropHelp.UTF8StringHandle pSearchText); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUGC_SetRankedByTrendDays(UGCQueryHandle_t handle, uint unDays); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUGC_AddRequiredKeyValueTag(UGCQueryHandle_t handle, InteropHelp.UTF8StringHandle pKey, InteropHelp.UTF8StringHandle pValue); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamUGC_RequestUGCDetails(PublishedFileId_t nPublishedFileID, uint unMaxAgeSeconds); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamUGC_CreateItem(AppId_t nConsumerAppId, EWorkshopFileType eFileType); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamUGC_StartItemUpdate(AppId_t nConsumerAppId, PublishedFileId_t nPublishedFileID); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUGC_SetItemTitle(UGCUpdateHandle_t handle, InteropHelp.UTF8StringHandle pchTitle); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUGC_SetItemDescription(UGCUpdateHandle_t handle, InteropHelp.UTF8StringHandle pchDescription); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUGC_SetItemUpdateLanguage(UGCUpdateHandle_t handle, InteropHelp.UTF8StringHandle pchLanguage); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUGC_SetItemMetadata(UGCUpdateHandle_t handle, InteropHelp.UTF8StringHandle pchMetaData); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUGC_SetItemVisibility(UGCUpdateHandle_t handle, ERemoteStoragePublishedFileVisibility eVisibility); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUGC_SetItemTags(UGCUpdateHandle_t updateHandle, IntPtr pTags); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUGC_SetItemContent(UGCUpdateHandle_t handle, InteropHelp.UTF8StringHandle pszContentFolder); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUGC_SetItemPreview(UGCUpdateHandle_t handle, InteropHelp.UTF8StringHandle pszPreviewFile); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUGC_RemoveItemKeyValueTags(UGCUpdateHandle_t handle, InteropHelp.UTF8StringHandle pchKey); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUGC_AddItemKeyValueTag(UGCUpdateHandle_t handle, InteropHelp.UTF8StringHandle pchKey, InteropHelp.UTF8StringHandle pchValue); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamUGC_SubmitItemUpdate(UGCUpdateHandle_t handle, InteropHelp.UTF8StringHandle pchChangeNote); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern EItemUpdateStatus ISteamUGC_GetItemUpdateProgress(UGCUpdateHandle_t handle, out ulong punBytesProcessed, out ulong punBytesTotal); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamUGC_SetUserItemVote(PublishedFileId_t nPublishedFileID, [MarshalAs(UnmanagedType.I1)] bool bVoteUp); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamUGC_GetUserItemVote(PublishedFileId_t nPublishedFileID); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamUGC_AddItemToFavorites(AppId_t nAppId, PublishedFileId_t nPublishedFileID); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamUGC_RemoveItemFromFavorites(AppId_t nAppId, PublishedFileId_t nPublishedFileID); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamUGC_SubscribeItem(PublishedFileId_t nPublishedFileID); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamUGC_UnsubscribeItem(PublishedFileId_t nPublishedFileID); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamUGC_GetNumSubscribedItems(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamUGC_GetSubscribedItems([In, Out] PublishedFileId_t[] pvecPublishedFileID, uint cMaxEntries); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamUGC_GetItemState(PublishedFileId_t nPublishedFileID); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUGC_GetItemInstallInfo(PublishedFileId_t nPublishedFileID, out ulong punSizeOnDisk, IntPtr pchFolder, uint cchFolderSize, out uint punTimeStamp); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUGC_GetItemDownloadInfo(PublishedFileId_t nPublishedFileID, out ulong punBytesDownloaded, out ulong punBytesTotal); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUGC_DownloadItem(PublishedFileId_t nPublishedFileID, [MarshalAs(UnmanagedType.I1)] bool bHighPriority); -#endregion -#region SteamUnifiedMessages - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamUnifiedMessages_SendMethod(InteropHelp.UTF8StringHandle pchServiceMethod, [In, Out] byte[] pRequestBuffer, uint unRequestBufferSize, ulong unContext); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUnifiedMessages_GetMethodResponseInfo(ClientUnifiedMessageHandle hHandle, out uint punResponseSize, out EResult peResult); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUnifiedMessages_GetMethodResponseData(ClientUnifiedMessageHandle hHandle, [In, Out] byte[] pResponseBuffer, uint unResponseBufferSize, [MarshalAs(UnmanagedType.I1)] bool bAutoRelease); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUnifiedMessages_ReleaseMethod(ClientUnifiedMessageHandle hHandle); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUnifiedMessages_SendNotification(InteropHelp.UTF8StringHandle pchServiceNotification, [In, Out] byte[] pNotificationBuffer, uint unNotificationBufferSize); -#endregion -#region SteamUser - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamUser_GetHSteamUser(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUser_BLoggedOn(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamUser_GetSteamID(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamUser_InitiateGameConnection([In, Out] byte[] pAuthBlob, int cbMaxAuthBlob, CSteamID steamIDGameServer, uint unIPServer, ushort usPortServer, [MarshalAs(UnmanagedType.I1)] bool bSecure); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamUser_TerminateGameConnection(uint unIPServer, ushort usPortServer); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamUser_TrackAppUsageEvent(CGameID gameID, int eAppUsageEvent, InteropHelp.UTF8StringHandle pchExtraInfo); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUser_GetUserDataFolder(IntPtr pchBuffer, int cubBuffer); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamUser_StartVoiceRecording(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamUser_StopVoiceRecording(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern EVoiceResult ISteamUser_GetAvailableVoice(out uint pcbCompressed, out uint pcbUncompressed, uint nUncompressedVoiceDesiredSampleRate); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern EVoiceResult ISteamUser_GetVoice([MarshalAs(UnmanagedType.I1)] bool bWantCompressed, [In, Out] byte[] pDestBuffer, uint cbDestBufferSize, out uint nBytesWritten, [MarshalAs(UnmanagedType.I1)] bool bWantUncompressed, [In, Out] byte[] pUncompressedDestBuffer, uint cbUncompressedDestBufferSize, out uint nUncompressBytesWritten, uint nUncompressedVoiceDesiredSampleRate); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern EVoiceResult ISteamUser_DecompressVoice([In, Out] byte[] pCompressed, uint cbCompressed, [In, Out] byte[] pDestBuffer, uint cbDestBufferSize, out uint nBytesWritten, uint nDesiredSampleRate); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamUser_GetVoiceOptimalSampleRate(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamUser_GetAuthSessionTicket([In, Out] byte[] pTicket, int cbMaxTicket, out uint pcbTicket); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern EBeginAuthSessionResult ISteamUser_BeginAuthSession([In, Out] byte[] pAuthTicket, int cbAuthTicket, CSteamID steamID); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamUser_EndAuthSession(CSteamID steamID); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamUser_CancelAuthTicket(HAuthTicket hAuthTicket); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern EUserHasLicenseForAppResult ISteamUser_UserHasLicenseForApp(CSteamID steamID, AppId_t appID); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUser_BIsBehindNAT(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamUser_AdvertiseGame(CSteamID steamIDGameServer, uint unIPServer, ushort usPortServer); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamUser_RequestEncryptedAppTicket([In, Out] byte[] pDataToInclude, int cbDataToInclude); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUser_GetEncryptedAppTicket([In, Out] byte[] pTicket, int cbMaxTicket, out uint pcbTicket); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamUser_GetGameBadgeLevel(int nSeries, [MarshalAs(UnmanagedType.I1)] bool bFoil); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamUser_GetPlayerSteamLevel(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamUser_RequestStoreAuthURL(InteropHelp.UTF8StringHandle pchRedirectURL); -#if _PS3 - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamUser_LogOn([MarshalAs(UnmanagedType.I1)] bool bInteractive); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamUser_LogOnAndLinkSteamAccountToPSN([MarshalAs(UnmanagedType.I1)] bool bInteractive, InteropHelp.UTF8StringHandle pchUserName, InteropHelp.UTF8StringHandle pchPassword); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamUser_LogOnAndCreateNewSteamAccountIfNeeded([MarshalAs(UnmanagedType.I1)] bool bInteractive); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamUser_GetConsoleSteamID(); -#endif -#endregion -#region SteamUserStats - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUserStats_RequestCurrentStats(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUserStats_GetStat(InteropHelp.UTF8StringHandle pchName, out int pData); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUserStats_GetStat_(InteropHelp.UTF8StringHandle pchName, out float pData); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUserStats_SetStat(InteropHelp.UTF8StringHandle pchName, int nData); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUserStats_SetStat_(InteropHelp.UTF8StringHandle pchName, float fData); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUserStats_UpdateAvgRateStat(InteropHelp.UTF8StringHandle pchName, float flCountThisSession, double dSessionLength); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUserStats_GetAchievement(InteropHelp.UTF8StringHandle pchName, out bool pbAchieved); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUserStats_SetAchievement(InteropHelp.UTF8StringHandle pchName); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUserStats_ClearAchievement(InteropHelp.UTF8StringHandle pchName); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUserStats_GetAchievementAndUnlockTime(InteropHelp.UTF8StringHandle pchName, out bool pbAchieved, out uint punUnlockTime); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUserStats_StoreStats(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamUserStats_GetAchievementIcon(InteropHelp.UTF8StringHandle pchName); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamUserStats_GetAchievementDisplayAttribute(InteropHelp.UTF8StringHandle pchName, InteropHelp.UTF8StringHandle pchKey); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUserStats_IndicateAchievementProgress(InteropHelp.UTF8StringHandle pchName, uint nCurProgress, uint nMaxProgress); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamUserStats_GetNumAchievements(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamUserStats_GetAchievementName(uint iAchievement); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamUserStats_RequestUserStats(CSteamID steamIDUser); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUserStats_GetUserStat(CSteamID steamIDUser, InteropHelp.UTF8StringHandle pchName, out int pData); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUserStats_GetUserStat_(CSteamID steamIDUser, InteropHelp.UTF8StringHandle pchName, out float pData); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUserStats_GetUserAchievement(CSteamID steamIDUser, InteropHelp.UTF8StringHandle pchName, out bool pbAchieved); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUserStats_GetUserAchievementAndUnlockTime(CSteamID steamIDUser, InteropHelp.UTF8StringHandle pchName, out bool pbAchieved, out uint punUnlockTime); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUserStats_ResetAllStats([MarshalAs(UnmanagedType.I1)] bool bAchievementsToo); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamUserStats_FindOrCreateLeaderboard(InteropHelp.UTF8StringHandle pchLeaderboardName, ELeaderboardSortMethod eLeaderboardSortMethod, ELeaderboardDisplayType eLeaderboardDisplayType); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamUserStats_FindLeaderboard(InteropHelp.UTF8StringHandle pchLeaderboardName); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamUserStats_GetLeaderboardName(SteamLeaderboard_t hSteamLeaderboard); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamUserStats_GetLeaderboardEntryCount(SteamLeaderboard_t hSteamLeaderboard); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ELeaderboardSortMethod ISteamUserStats_GetLeaderboardSortMethod(SteamLeaderboard_t hSteamLeaderboard); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ELeaderboardDisplayType ISteamUserStats_GetLeaderboardDisplayType(SteamLeaderboard_t hSteamLeaderboard); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamUserStats_DownloadLeaderboardEntries(SteamLeaderboard_t hSteamLeaderboard, ELeaderboardDataRequest eLeaderboardDataRequest, int nRangeStart, int nRangeEnd); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamUserStats_DownloadLeaderboardEntriesForUsers(SteamLeaderboard_t hSteamLeaderboard, [In, Out] CSteamID[] prgUsers, int cUsers); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUserStats_GetDownloadedLeaderboardEntry(SteamLeaderboardEntries_t hSteamLeaderboardEntries, int index, out LeaderboardEntry_t pLeaderboardEntry, [In, Out] int[] pDetails, int cDetailsMax); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamUserStats_UploadLeaderboardScore(SteamLeaderboard_t hSteamLeaderboard, ELeaderboardUploadScoreMethod eLeaderboardUploadScoreMethod, int nScore, [In, Out] int[] pScoreDetails, int cScoreDetailsCount); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamUserStats_AttachLeaderboardUGC(SteamLeaderboard_t hSteamLeaderboard, UGCHandle_t hUGC); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamUserStats_GetNumberOfCurrentPlayers(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamUserStats_RequestGlobalAchievementPercentages(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamUserStats_GetMostAchievedAchievementInfo(IntPtr pchName, uint unNameBufLen, out float pflPercent, out bool pbAchieved); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamUserStats_GetNextMostAchievedAchievementInfo(int iIteratorPrevious, IntPtr pchName, uint unNameBufLen, out float pflPercent, out bool pbAchieved); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUserStats_GetAchievementAchievedPercent(InteropHelp.UTF8StringHandle pchName, out float pflPercent); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamUserStats_RequestGlobalStats(int nHistoryDays); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUserStats_GetGlobalStat(InteropHelp.UTF8StringHandle pchStatName, out long pData); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUserStats_GetGlobalStat_(InteropHelp.UTF8StringHandle pchStatName, out double pData); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamUserStats_GetGlobalStatHistory(InteropHelp.UTF8StringHandle pchStatName, [In, Out] long[] pData, uint cubData); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamUserStats_GetGlobalStatHistory_(InteropHelp.UTF8StringHandle pchStatName, [In, Out] double[] pData, uint cubData); -#if _PS3 - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUserStats_InstallPS3Trophies(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamUserStats_GetTrophySpaceRequiredBeforeInstall(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUserStats_SetUserStatsData(IntPtr pvData, uint cubData); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUserStats_GetUserStatsData(IntPtr pvData, uint cubData, out uint pcubWritten); -#endif -#endregion -#region SteamUtils - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamUtils_GetSecondsSinceAppActive(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamUtils_GetSecondsSinceComputerActive(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern EUniverse ISteamUtils_GetConnectedUniverse(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamUtils_GetServerRealTime(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamUtils_GetIPCountry(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUtils_GetImageSize(int iImage, out uint pnWidth, out uint pnHeight); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUtils_GetImageRGBA(int iImage, [In, Out] byte[] pubDest, int nDestBufferSize); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUtils_GetCSERIPPort(out uint unIP, out ushort usPort); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern byte ISteamUtils_GetCurrentBatteryPower(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamUtils_GetAppID(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamUtils_SetOverlayNotificationPosition(ENotificationPosition eNotificationPosition); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUtils_IsAPICallCompleted(SteamAPICall_t hSteamAPICall, out bool pbFailed); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ESteamAPICallFailure ISteamUtils_GetAPICallFailureReason(SteamAPICall_t hSteamAPICall); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUtils_GetAPICallResult(SteamAPICall_t hSteamAPICall, IntPtr pCallback, int cubCallback, int iCallbackExpected, out bool pbFailed); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamUtils_RunFrame(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamUtils_GetIPCCallCount(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamUtils_SetWarningMessageHook(SteamAPIWarningMessageHook_t pFunction); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUtils_IsOverlayEnabled(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUtils_BOverlayNeedsPresent(); -#if !_PS3 - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamUtils_CheckFileSignature(InteropHelp.UTF8StringHandle szFileName); -#endif -#if _PS3 - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamUtils_PostPS3SysutilCallback(ulong status, ulong param, IntPtr userdata); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUtils_BIsReadyToShutdown(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUtils_BIsPSNOnline(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamUtils_SetPSNGameBootInviteStrings(InteropHelp.UTF8StringHandle pchSubject, InteropHelp.UTF8StringHandle pchBody); -#endif - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUtils_ShowGamepadTextInput(EGamepadTextInputMode eInputMode, EGamepadTextInputLineMode eLineInputMode, InteropHelp.UTF8StringHandle pchDescription, uint unCharMax, InteropHelp.UTF8StringHandle pchExistingText); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamUtils_GetEnteredGamepadTextLength(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUtils_GetEnteredGamepadTextInput(IntPtr pchText, uint cchText); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamUtils_GetSteamUILanguage(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamUtils_IsSteamRunningInVR(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamUtils_SetOverlayNotificationInset(int nHorizontalInset, int nVerticalInset); -#endregion -#region SteamVideo - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamVideo_GetVideoURL(AppId_t unVideoAppID); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamVideo_IsBroadcasting(out int pnNumViewers); -#endregion -#region SteamGameServerHTTP - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamGameServerHTTP_CreateHTTPRequest(EHTTPMethod eHTTPRequestMethod, InteropHelp.UTF8StringHandle pchAbsoluteURL); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerHTTP_SetHTTPRequestContextValue(HTTPRequestHandle hRequest, ulong ulContextValue); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerHTTP_SetHTTPRequestNetworkActivityTimeout(HTTPRequestHandle hRequest, uint unTimeoutSeconds); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerHTTP_SetHTTPRequestHeaderValue(HTTPRequestHandle hRequest, InteropHelp.UTF8StringHandle pchHeaderName, InteropHelp.UTF8StringHandle pchHeaderValue); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerHTTP_SetHTTPRequestGetOrPostParameter(HTTPRequestHandle hRequest, InteropHelp.UTF8StringHandle pchParamName, InteropHelp.UTF8StringHandle pchParamValue); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerHTTP_SendHTTPRequest(HTTPRequestHandle hRequest, out SteamAPICall_t pCallHandle); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerHTTP_SendHTTPRequestAndStreamResponse(HTTPRequestHandle hRequest, out SteamAPICall_t pCallHandle); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerHTTP_DeferHTTPRequest(HTTPRequestHandle hRequest); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerHTTP_PrioritizeHTTPRequest(HTTPRequestHandle hRequest); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerHTTP_GetHTTPResponseHeaderSize(HTTPRequestHandle hRequest, InteropHelp.UTF8StringHandle pchHeaderName, out uint unResponseHeaderSize); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerHTTP_GetHTTPResponseHeaderValue(HTTPRequestHandle hRequest, InteropHelp.UTF8StringHandle pchHeaderName, [In, Out] byte[] pHeaderValueBuffer, uint unBufferSize); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerHTTP_GetHTTPResponseBodySize(HTTPRequestHandle hRequest, out uint unBodySize); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerHTTP_GetHTTPResponseBodyData(HTTPRequestHandle hRequest, [In, Out] byte[] pBodyDataBuffer, uint unBufferSize); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerHTTP_GetHTTPStreamingResponseBodyData(HTTPRequestHandle hRequest, uint cOffset, [In, Out] byte[] pBodyDataBuffer, uint unBufferSize); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerHTTP_ReleaseHTTPRequest(HTTPRequestHandle hRequest); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerHTTP_GetHTTPDownloadProgressPct(HTTPRequestHandle hRequest, out float pflPercentOut); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerHTTP_SetHTTPRequestRawPostBody(HTTPRequestHandle hRequest, InteropHelp.UTF8StringHandle pchContentType, [In, Out] byte[] pubBody, uint unBodyLen); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamGameServerHTTP_CreateCookieContainer([MarshalAs(UnmanagedType.I1)] bool bAllowResponsesToModify); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerHTTP_ReleaseCookieContainer(HTTPCookieContainerHandle hCookieContainer); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerHTTP_SetCookie(HTTPCookieContainerHandle hCookieContainer, InteropHelp.UTF8StringHandle pchHost, InteropHelp.UTF8StringHandle pchUrl, InteropHelp.UTF8StringHandle pchCookie); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerHTTP_SetHTTPRequestCookieContainer(HTTPRequestHandle hRequest, HTTPCookieContainerHandle hCookieContainer); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerHTTP_SetHTTPRequestUserAgentInfo(HTTPRequestHandle hRequest, InteropHelp.UTF8StringHandle pchUserAgentInfo); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerHTTP_SetHTTPRequestRequiresVerifiedCertificate(HTTPRequestHandle hRequest, [MarshalAs(UnmanagedType.I1)] bool bRequireVerifiedCertificate); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerHTTP_SetHTTPRequestAbsoluteTimeoutMS(HTTPRequestHandle hRequest, uint unMilliseconds); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerHTTP_GetHTTPRequestWasTimedOut(HTTPRequestHandle hRequest, out bool pbWasTimedOut); -#endregion -#region SteamGameServerInventory - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern EResult ISteamGameServerInventory_GetResultStatus(SteamInventoryResult_t resultHandle); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerInventory_GetResultItems(SteamInventoryResult_t resultHandle, [In, Out] SteamItemDetails_t[] pOutItemsArray, ref uint punOutItemsArraySize); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamGameServerInventory_GetResultTimestamp(SteamInventoryResult_t resultHandle); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerInventory_CheckResultSteamID(SteamInventoryResult_t resultHandle, CSteamID steamIDExpected); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamGameServerInventory_DestroyResult(SteamInventoryResult_t resultHandle); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerInventory_GetAllItems(out SteamInventoryResult_t pResultHandle); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerInventory_GetItemsByID(out SteamInventoryResult_t pResultHandle, [In, Out] SteamItemInstanceID_t[] pInstanceIDs, uint unCountInstanceIDs); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerInventory_SerializeResult(SteamInventoryResult_t resultHandle, [In, Out] byte[] pOutBuffer, out uint punOutBufferSize); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerInventory_DeserializeResult(out SteamInventoryResult_t pOutResultHandle, [In, Out] byte[] pBuffer, uint unBufferSize, [MarshalAs(UnmanagedType.I1)] bool bRESERVED_MUST_BE_FALSE); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerInventory_GenerateItems(out SteamInventoryResult_t pResultHandle, [In, Out] SteamItemDef_t[] pArrayItemDefs, [In, Out] uint[] punArrayQuantity, uint unArrayLength); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerInventory_GrantPromoItems(out SteamInventoryResult_t pResultHandle); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerInventory_AddPromoItem(out SteamInventoryResult_t pResultHandle, SteamItemDef_t itemDef); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerInventory_AddPromoItems(out SteamInventoryResult_t pResultHandle, [In, Out] SteamItemDef_t[] pArrayItemDefs, uint unArrayLength); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerInventory_ConsumeItem(out SteamInventoryResult_t pResultHandle, SteamItemInstanceID_t itemConsume, uint unQuantity); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerInventory_ExchangeItems(out SteamInventoryResult_t pResultHandle, [In, Out] SteamItemDef_t[] pArrayGenerate, [In, Out] uint[] punArrayGenerateQuantity, uint unArrayGenerateLength, [In, Out] SteamItemInstanceID_t[] pArrayDestroy, [In, Out] uint[] punArrayDestroyQuantity, uint unArrayDestroyLength); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerInventory_TransferItemQuantity(out SteamInventoryResult_t pResultHandle, SteamItemInstanceID_t itemIdSource, uint unQuantity, SteamItemInstanceID_t itemIdDest); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamGameServerInventory_SendItemDropHeartbeat(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerInventory_TriggerItemDrop(out SteamInventoryResult_t pResultHandle, SteamItemDef_t dropListDefinition); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerInventory_TradeItems(out SteamInventoryResult_t pResultHandle, CSteamID steamIDTradePartner, [In, Out] SteamItemInstanceID_t[] pArrayGive, [In, Out] uint[] pArrayGiveQuantity, uint nArrayGiveLength, [In, Out] SteamItemInstanceID_t[] pArrayGet, [In, Out] uint[] pArrayGetQuantity, uint nArrayGetLength); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerInventory_LoadItemDefinitions(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerInventory_GetItemDefinitionIDs([In, Out] SteamItemDef_t[] pItemDefIDs, out uint punItemDefIDsArraySize); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerInventory_GetItemDefinitionProperty(SteamItemDef_t iDefinition, InteropHelp.UTF8StringHandle pchPropertyName, IntPtr pchValueBuffer, ref uint punValueBufferSize); -#endregion -#region SteamGameServerNetworking - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerNetworking_SendP2PPacket(CSteamID steamIDRemote, [In, Out] byte[] pubData, uint cubData, EP2PSend eP2PSendType, int nChannel); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerNetworking_IsP2PPacketAvailable(out uint pcubMsgSize, int nChannel); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerNetworking_ReadP2PPacket([In, Out] byte[] pubDest, uint cubDest, out uint pcubMsgSize, out CSteamID psteamIDRemote, int nChannel); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerNetworking_AcceptP2PSessionWithUser(CSteamID steamIDRemote); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerNetworking_CloseP2PSessionWithUser(CSteamID steamIDRemote); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerNetworking_CloseP2PChannelWithUser(CSteamID steamIDRemote, int nChannel); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerNetworking_GetP2PSessionState(CSteamID steamIDRemote, out P2PSessionState_t pConnectionState); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerNetworking_AllowP2PPacketRelay([MarshalAs(UnmanagedType.I1)] bool bAllow); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamGameServerNetworking_CreateListenSocket(int nVirtualP2PPort, uint nIP, ushort nPort, [MarshalAs(UnmanagedType.I1)] bool bAllowUseOfPacketRelay); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamGameServerNetworking_CreateP2PConnectionSocket(CSteamID steamIDTarget, int nVirtualPort, int nTimeoutSec, [MarshalAs(UnmanagedType.I1)] bool bAllowUseOfPacketRelay); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamGameServerNetworking_CreateConnectionSocket(uint nIP, ushort nPort, int nTimeoutSec); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerNetworking_DestroySocket(SNetSocket_t hSocket, [MarshalAs(UnmanagedType.I1)] bool bNotifyRemoteEnd); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerNetworking_DestroyListenSocket(SNetListenSocket_t hSocket, [MarshalAs(UnmanagedType.I1)] bool bNotifyRemoteEnd); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerNetworking_SendDataOnSocket(SNetSocket_t hSocket, IntPtr pubData, uint cubData, [MarshalAs(UnmanagedType.I1)] bool bReliable); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerNetworking_IsDataAvailableOnSocket(SNetSocket_t hSocket, out uint pcubMsgSize); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerNetworking_RetrieveDataFromSocket(SNetSocket_t hSocket, IntPtr pubDest, uint cubDest, out uint pcubMsgSize); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerNetworking_IsDataAvailable(SNetListenSocket_t hListenSocket, out uint pcubMsgSize, out SNetSocket_t phSocket); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerNetworking_RetrieveData(SNetListenSocket_t hListenSocket, IntPtr pubDest, uint cubDest, out uint pcubMsgSize, out SNetSocket_t phSocket); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerNetworking_GetSocketInfo(SNetSocket_t hSocket, out CSteamID pSteamIDRemote, out int peSocketStatus, out uint punIPRemote, out ushort punPortRemote); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerNetworking_GetListenSocketInfo(SNetListenSocket_t hListenSocket, out uint pnIP, out ushort pnPort); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ESNetSocketConnectionType ISteamGameServerNetworking_GetSocketConnectionType(SNetSocket_t hSocket); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern int ISteamGameServerNetworking_GetMaxPacketSize(SNetSocket_t hSocket); -#endregion -#region SteamGameServerUGC - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamGameServerUGC_CreateQueryUserUGCRequest(AccountID_t unAccountID, EUserUGCList eListType, EUGCMatchingUGCType eMatchingUGCType, EUserUGCListSortOrder eSortOrder, AppId_t nCreatorAppID, AppId_t nConsumerAppID, uint unPage); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamGameServerUGC_CreateQueryAllUGCRequest(EUGCQuery eQueryType, EUGCMatchingUGCType eMatchingeMatchingUGCTypeFileType, AppId_t nCreatorAppID, AppId_t nConsumerAppID, uint unPage); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamGameServerUGC_CreateQueryUGCDetailsRequest([In, Out] PublishedFileId_t[] pvecPublishedFileID, uint unNumPublishedFileIDs); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamGameServerUGC_SendQueryUGCRequest(UGCQueryHandle_t handle); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerUGC_GetQueryUGCResult(UGCQueryHandle_t handle, uint index, out SteamUGCDetails_t pDetails); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerUGC_GetQueryUGCPreviewURL(UGCQueryHandle_t handle, uint index, IntPtr pchURL, uint cchURLSize); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerUGC_GetQueryUGCMetadata(UGCQueryHandle_t handle, uint index, IntPtr pchMetadata, uint cchMetadatasize); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerUGC_GetQueryUGCChildren(UGCQueryHandle_t handle, uint index, [In, Out] PublishedFileId_t[] pvecPublishedFileID, uint cMaxEntries); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerUGC_GetQueryUGCStatistic(UGCQueryHandle_t handle, uint index, EItemStatistic eStatType, out uint pStatValue); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamGameServerUGC_GetQueryUGCNumAdditionalPreviews(UGCQueryHandle_t handle, uint index); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerUGC_GetQueryUGCAdditionalPreview(UGCQueryHandle_t handle, uint index, uint previewIndex, IntPtr pchURLOrVideoID, uint cchURLSize, out bool pbIsImage); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamGameServerUGC_GetQueryUGCNumKeyValueTags(UGCQueryHandle_t handle, uint index); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerUGC_GetQueryUGCKeyValueTag(UGCQueryHandle_t handle, uint index, uint keyValueTagIndex, IntPtr pchKey, uint cchKeySize, IntPtr pchValue, uint cchValueSize); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerUGC_ReleaseQueryUGCRequest(UGCQueryHandle_t handle); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerUGC_AddRequiredTag(UGCQueryHandle_t handle, InteropHelp.UTF8StringHandle pTagName); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerUGC_AddExcludedTag(UGCQueryHandle_t handle, InteropHelp.UTF8StringHandle pTagName); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerUGC_SetReturnKeyValueTags(UGCQueryHandle_t handle, [MarshalAs(UnmanagedType.I1)] bool bReturnKeyValueTags); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerUGC_SetReturnLongDescription(UGCQueryHandle_t handle, [MarshalAs(UnmanagedType.I1)] bool bReturnLongDescription); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerUGC_SetReturnMetadata(UGCQueryHandle_t handle, [MarshalAs(UnmanagedType.I1)] bool bReturnMetadata); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerUGC_SetReturnChildren(UGCQueryHandle_t handle, [MarshalAs(UnmanagedType.I1)] bool bReturnChildren); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerUGC_SetReturnAdditionalPreviews(UGCQueryHandle_t handle, [MarshalAs(UnmanagedType.I1)] bool bReturnAdditionalPreviews); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerUGC_SetReturnTotalOnly(UGCQueryHandle_t handle, [MarshalAs(UnmanagedType.I1)] bool bReturnTotalOnly); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerUGC_SetLanguage(UGCQueryHandle_t handle, InteropHelp.UTF8StringHandle pchLanguage); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerUGC_SetAllowCachedResponse(UGCQueryHandle_t handle, uint unMaxAgeSeconds); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerUGC_SetCloudFileNameFilter(UGCQueryHandle_t handle, InteropHelp.UTF8StringHandle pMatchCloudFileName); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerUGC_SetMatchAnyTag(UGCQueryHandle_t handle, [MarshalAs(UnmanagedType.I1)] bool bMatchAnyTag); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerUGC_SetSearchText(UGCQueryHandle_t handle, InteropHelp.UTF8StringHandle pSearchText); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerUGC_SetRankedByTrendDays(UGCQueryHandle_t handle, uint unDays); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerUGC_AddRequiredKeyValueTag(UGCQueryHandle_t handle, InteropHelp.UTF8StringHandle pKey, InteropHelp.UTF8StringHandle pValue); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamGameServerUGC_RequestUGCDetails(PublishedFileId_t nPublishedFileID, uint unMaxAgeSeconds); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamGameServerUGC_CreateItem(AppId_t nConsumerAppId, EWorkshopFileType eFileType); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamGameServerUGC_StartItemUpdate(AppId_t nConsumerAppId, PublishedFileId_t nPublishedFileID); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerUGC_SetItemTitle(UGCUpdateHandle_t handle, InteropHelp.UTF8StringHandle pchTitle); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerUGC_SetItemDescription(UGCUpdateHandle_t handle, InteropHelp.UTF8StringHandle pchDescription); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerUGC_SetItemUpdateLanguage(UGCUpdateHandle_t handle, InteropHelp.UTF8StringHandle pchLanguage); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerUGC_SetItemMetadata(UGCUpdateHandle_t handle, InteropHelp.UTF8StringHandle pchMetaData); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerUGC_SetItemVisibility(UGCUpdateHandle_t handle, ERemoteStoragePublishedFileVisibility eVisibility); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerUGC_SetItemTags(UGCUpdateHandle_t updateHandle, IntPtr pTags); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerUGC_SetItemContent(UGCUpdateHandle_t handle, InteropHelp.UTF8StringHandle pszContentFolder); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerUGC_SetItemPreview(UGCUpdateHandle_t handle, InteropHelp.UTF8StringHandle pszPreviewFile); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerUGC_RemoveItemKeyValueTags(UGCUpdateHandle_t handle, InteropHelp.UTF8StringHandle pchKey); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerUGC_AddItemKeyValueTag(UGCUpdateHandle_t handle, InteropHelp.UTF8StringHandle pchKey, InteropHelp.UTF8StringHandle pchValue); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamGameServerUGC_SubmitItemUpdate(UGCUpdateHandle_t handle, InteropHelp.UTF8StringHandle pchChangeNote); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern EItemUpdateStatus ISteamGameServerUGC_GetItemUpdateProgress(UGCUpdateHandle_t handle, out ulong punBytesProcessed, out ulong punBytesTotal); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamGameServerUGC_SetUserItemVote(PublishedFileId_t nPublishedFileID, [MarshalAs(UnmanagedType.I1)] bool bVoteUp); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamGameServerUGC_GetUserItemVote(PublishedFileId_t nPublishedFileID); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamGameServerUGC_AddItemToFavorites(AppId_t nAppId, PublishedFileId_t nPublishedFileID); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamGameServerUGC_RemoveItemFromFavorites(AppId_t nAppId, PublishedFileId_t nPublishedFileID); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamGameServerUGC_SubscribeItem(PublishedFileId_t nPublishedFileID); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamGameServerUGC_UnsubscribeItem(PublishedFileId_t nPublishedFileID); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamGameServerUGC_GetNumSubscribedItems(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamGameServerUGC_GetSubscribedItems([In, Out] PublishedFileId_t[] pvecPublishedFileID, uint cMaxEntries); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamGameServerUGC_GetItemState(PublishedFileId_t nPublishedFileID); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerUGC_GetItemInstallInfo(PublishedFileId_t nPublishedFileID, out ulong punSizeOnDisk, IntPtr pchFolder, uint cchFolderSize, out uint punTimeStamp); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerUGC_GetItemDownloadInfo(PublishedFileId_t nPublishedFileID, out ulong punBytesDownloaded, out ulong punBytesTotal); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerUGC_DownloadItem(PublishedFileId_t nPublishedFileID, [MarshalAs(UnmanagedType.I1)] bool bHighPriority); -#endregion -#region SteamGameServerUtils - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamGameServerUtils_GetSecondsSinceAppActive(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamGameServerUtils_GetSecondsSinceComputerActive(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern EUniverse ISteamGameServerUtils_GetConnectedUniverse(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamGameServerUtils_GetServerRealTime(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamGameServerUtils_GetIPCountry(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerUtils_GetImageSize(int iImage, out uint pnWidth, out uint pnHeight); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerUtils_GetImageRGBA(int iImage, [In, Out] byte[] pubDest, int nDestBufferSize); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerUtils_GetCSERIPPort(out uint unIP, out ushort usPort); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern byte ISteamGameServerUtils_GetCurrentBatteryPower(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamGameServerUtils_GetAppID(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamGameServerUtils_SetOverlayNotificationPosition(ENotificationPosition eNotificationPosition); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerUtils_IsAPICallCompleted(SteamAPICall_t hSteamAPICall, out bool pbFailed); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ESteamAPICallFailure ISteamGameServerUtils_GetAPICallFailureReason(SteamAPICall_t hSteamAPICall); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerUtils_GetAPICallResult(SteamAPICall_t hSteamAPICall, IntPtr pCallback, int cubCallback, int iCallbackExpected, out bool pbFailed); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamGameServerUtils_RunFrame(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamGameServerUtils_GetIPCCallCount(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamGameServerUtils_SetWarningMessageHook(SteamAPIWarningMessageHook_t pFunction); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerUtils_IsOverlayEnabled(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerUtils_BOverlayNeedsPresent(); -#if !_PS3 - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern ulong ISteamGameServerUtils_CheckFileSignature(InteropHelp.UTF8StringHandle szFileName); -#endif -#if _PS3 - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamGameServerUtils_PostPS3SysutilCallback(ulong status, ulong param, IntPtr userdata); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerUtils_BIsReadyToShutdown(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerUtils_BIsPSNOnline(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamGameServerUtils_SetPSNGameBootInviteStrings(InteropHelp.UTF8StringHandle pchSubject, InteropHelp.UTF8StringHandle pchBody); -#endif - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerUtils_ShowGamepadTextInput(EGamepadTextInputMode eInputMode, EGamepadTextInputLineMode eLineInputMode, InteropHelp.UTF8StringHandle pchDescription, uint unCharMax, InteropHelp.UTF8StringHandle pchExistingText); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern uint ISteamGameServerUtils_GetEnteredGamepadTextLength(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerUtils_GetEnteredGamepadTextInput(IntPtr pchText, uint cchText); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern IntPtr ISteamGameServerUtils_GetSteamUILanguage(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool ISteamGameServerUtils_IsSteamRunningInVR(); - - [DllImport(NativeLibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void ISteamGameServerUtils_SetOverlayNotificationInset(int nHorizontalInset, int nVerticalInset); -#endregion - } -} diff --git a/Assets/Plugins/Steamworks.NET/autogen/NativeMethods.cs.meta b/Assets/Plugins/Steamworks.NET/autogen/NativeMethods.cs.meta deleted file mode 100644 index 084ba46..0000000 --- a/Assets/Plugins/Steamworks.NET/autogen/NativeMethods.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 1ecfbea26a0109e49aaba81f9f8150c6 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/Plugins/Steamworks.NET/autogen/SteamCallbacks.cs b/Assets/Plugins/Steamworks.NET/autogen/SteamCallbacks.cs deleted file mode 100644 index 83696a1..0000000 --- a/Assets/Plugins/Steamworks.NET/autogen/SteamCallbacks.cs +++ /dev/null @@ -1,2088 +0,0 @@ -// This file is provided under The MIT License as part of Steamworks.NET. -// Copyright (c) 2013-2015 Riley Labrecque -// Please see the included LICENSE.txt for additional information. - -// This file is automatically generated. -// Changes to this file will be reverted when you update Steamworks.NET - -using System; -using System.Runtime.InteropServices; - -namespace Steamworks { - // callbacks - //--------------------------------------------------------------------------------- - // Purpose: Sent when a new app is installed - //--------------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamAppListCallbacks + 1)] - public struct SteamAppInstalled_t { - public const int k_iCallback = Constants.k_iSteamAppListCallbacks + 1; - public AppId_t m_nAppID; // ID of the app that installs - } - - //--------------------------------------------------------------------------------- - // Purpose: Sent when an app is uninstalled - //--------------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamAppListCallbacks + 2)] - public struct SteamAppUninstalled_t { - public const int k_iCallback = Constants.k_iSteamAppListCallbacks + 2; - public AppId_t m_nAppID; // ID of the app that installs - } - - // callbacks - //----------------------------------------------------------------------------- - // Purpose: posted after the user gains ownership of DLC & that DLC is installed - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamAppsCallbacks + 5)] - public struct DlcInstalled_t { - public const int k_iCallback = Constants.k_iSteamAppsCallbacks + 5; - public AppId_t m_nAppID; // AppID of the DLC - } - - //----------------------------------------------------------------------------- - // Purpose: response to RegisterActivationCode() - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamAppsCallbacks + 8)] - public struct RegisterActivationCodeResponse_t { - public const int k_iCallback = Constants.k_iSteamAppsCallbacks + 8; - public ERegisterActivationCodeResult m_eResult; - public uint m_unPackageRegistered; // package that was registered. Only set on success - } - - //----------------------------------------------------------------------------- - // Purpose: response to RegisterActivationCode() - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamAppsCallbacks + 13)] - public struct AppProofOfPurchaseKeyResponse_t { - public const int k_iCallback = Constants.k_iSteamAppsCallbacks + 13; - public EResult m_eResult; - public uint m_nAppID; - [MarshalAs(UnmanagedType.ByValTStr, SizeConst = Constants.k_cubAppProofOfPurchaseKeyMax)] - public string m_rgchKey; - } - - //--------------------------------------------------------------------------------- - // Purpose: posted after the user gains executes a steam url with query parameters - // such as steam://run///?param1=value1;param2=value2;param3=value3; etc - // while the game is already running. The new params can be queried - // with GetLaunchQueryParam. - //--------------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value, Size = 1)] - [CallbackIdentity(Constants.k_iSteamAppsCallbacks + 14)] - public struct NewLaunchQueryParameters_t { - public const int k_iCallback = Constants.k_iSteamAppsCallbacks + 14; - } - - // callbacks - //----------------------------------------------------------------------------- - // Purpose: called when a friends' status changes - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamFriendsCallbacks + 4)] - public struct PersonaStateChange_t { - public const int k_iCallback = Constants.k_iSteamFriendsCallbacks + 4; - - public ulong m_ulSteamID; // steamID of the friend who changed - public EPersonaChange m_nChangeFlags; // what's changed - } - - //----------------------------------------------------------------------------- - // Purpose: posted when game overlay activates or deactivates - // the game can use this to be pause or resume single player games - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamFriendsCallbacks + 31)] - public struct GameOverlayActivated_t { - public const int k_iCallback = Constants.k_iSteamFriendsCallbacks + 31; - public byte m_bActive; // true if it's just been activated, false otherwise - } - - //----------------------------------------------------------------------------- - // Purpose: called when the user tries to join a different game server from their friends list - // game client should attempt to connect to specified server when this is received - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamFriendsCallbacks + 32)] - public struct GameServerChangeRequested_t { - public const int k_iCallback = Constants.k_iSteamFriendsCallbacks + 32; - [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 64)] - public string m_rgchServer; // server address ("127.0.0.1:27015", "tf2.valvesoftware.com") - [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 64)] - public string m_rgchPassword; // server password, if any - } - - //----------------------------------------------------------------------------- - // Purpose: called when the user tries to join a lobby from their friends list - // game client should attempt to connect to specified lobby when this is received - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamFriendsCallbacks + 33)] - public struct GameLobbyJoinRequested_t { - public const int k_iCallback = Constants.k_iSteamFriendsCallbacks + 33; - public CSteamID m_steamIDLobby; - - // The friend they did the join via (will be invalid if not directly via a friend) - // - // On PS3, the friend will be invalid if this was triggered by a PSN invite via the XMB, but - // the account type will be console user so you can tell at least that this was from a PSN friend - // rather than a Steam friend. - public CSteamID m_steamIDFriend; - } - - //----------------------------------------------------------------------------- - // Purpose: called when an avatar is loaded in from a previous GetLargeFriendAvatar() call - // if the image wasn't already available - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = 4)] - [CallbackIdentity(Constants.k_iSteamFriendsCallbacks + 34)] - public struct AvatarImageLoaded_t { - public const int k_iCallback = Constants.k_iSteamFriendsCallbacks + 34; - public CSteamID m_steamID; // steamid the avatar has been loaded for - public int m_iImage; // the image index of the now loaded image - public int m_iWide; // width of the loaded image - public int m_iTall; // height of the loaded image - } - - //----------------------------------------------------------------------------- - // Purpose: marks the return of a request officer list call - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamFriendsCallbacks + 35)] - public struct ClanOfficerListResponse_t { - public const int k_iCallback = Constants.k_iSteamFriendsCallbacks + 35; - public CSteamID m_steamIDClan; - public int m_cOfficers; - public byte m_bSuccess; - } - - //----------------------------------------------------------------------------- - // Purpose: callback indicating updated data about friends rich presence information - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = 4)] - [CallbackIdentity(Constants.k_iSteamFriendsCallbacks + 36)] - public struct FriendRichPresenceUpdate_t { - public const int k_iCallback = Constants.k_iSteamFriendsCallbacks + 36; - public CSteamID m_steamIDFriend; // friend who's rich presence has changed - public AppId_t m_nAppID; // the appID of the game (should always be the current game) - } - - //----------------------------------------------------------------------------- - // Purpose: called when the user tries to join a game from their friends list - // rich presence will have been set with the "connect" key which is set here - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamFriendsCallbacks + 37)] - public struct GameRichPresenceJoinRequested_t { - public const int k_iCallback = Constants.k_iSteamFriendsCallbacks + 37; - public CSteamID m_steamIDFriend; // the friend they did the join via (will be invalid if not directly via a friend) - [MarshalAs(UnmanagedType.ByValTStr, SizeConst = Constants.k_cchMaxRichPresenceValueLength)] - public string m_rgchConnect; - } - - //----------------------------------------------------------------------------- - // Purpose: a chat message has been received for a clan chat the game has joined - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = 4)] - [CallbackIdentity(Constants.k_iSteamFriendsCallbacks + 38)] - public struct GameConnectedClanChatMsg_t { - public const int k_iCallback = Constants.k_iSteamFriendsCallbacks + 38; - public CSteamID m_steamIDClanChat; - public CSteamID m_steamIDUser; - public int m_iMessageID; - } - - //----------------------------------------------------------------------------- - // Purpose: a user has joined a clan chat - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamFriendsCallbacks + 39)] - public struct GameConnectedChatJoin_t { - public const int k_iCallback = Constants.k_iSteamFriendsCallbacks + 39; - public CSteamID m_steamIDClanChat; - public CSteamID m_steamIDUser; - } - - //----------------------------------------------------------------------------- - // Purpose: a user has left the chat we're in - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = 1)] - [CallbackIdentity(Constants.k_iSteamFriendsCallbacks + 40)] - public struct GameConnectedChatLeave_t { - public const int k_iCallback = Constants.k_iSteamFriendsCallbacks + 40; - public CSteamID m_steamIDClanChat; - public CSteamID m_steamIDUser; - [MarshalAs(UnmanagedType.I1)] - public bool m_bKicked; // true if admin kicked - [MarshalAs(UnmanagedType.I1)] - public bool m_bDropped; // true if Steam connection dropped - } - - //----------------------------------------------------------------------------- - // Purpose: a DownloadClanActivityCounts() call has finished - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamFriendsCallbacks + 41)] - public struct DownloadClanActivityCountsResult_t { - public const int k_iCallback = Constants.k_iSteamFriendsCallbacks + 41; - [MarshalAs(UnmanagedType.I1)] - public bool m_bSuccess; - } - - //----------------------------------------------------------------------------- - // Purpose: a JoinClanChatRoom() call has finished - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = 4)] - [CallbackIdentity(Constants.k_iSteamFriendsCallbacks + 42)] - public struct JoinClanChatRoomCompletionResult_t { - public const int k_iCallback = Constants.k_iSteamFriendsCallbacks + 42; - public CSteamID m_steamIDClanChat; - public EChatRoomEnterResponse m_eChatRoomEnterResponse; - } - - //----------------------------------------------------------------------------- - // Purpose: a chat message has been received from a user - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = 4)] - [CallbackIdentity(Constants.k_iSteamFriendsCallbacks + 43)] - public struct GameConnectedFriendChatMsg_t { - public const int k_iCallback = Constants.k_iSteamFriendsCallbacks + 43; - public CSteamID m_steamIDUser; - public int m_iMessageID; - } - - [StructLayout(LayoutKind.Sequential, Pack = 4)] - [CallbackIdentity(Constants.k_iSteamFriendsCallbacks + 44)] - public struct FriendsGetFollowerCount_t { - public const int k_iCallback = Constants.k_iSteamFriendsCallbacks + 44; - public EResult m_eResult; - public CSteamID m_steamID; - public int m_nCount; - } - - [StructLayout(LayoutKind.Sequential, Pack = 4)] - [CallbackIdentity(Constants.k_iSteamFriendsCallbacks + 45)] - public struct FriendsIsFollowing_t { - public const int k_iCallback = Constants.k_iSteamFriendsCallbacks + 45; - public EResult m_eResult; - public CSteamID m_steamID; - [MarshalAs(UnmanagedType.I1)] - public bool m_bIsFollowing; - } - - [StructLayout(LayoutKind.Sequential, Pack = 4)] - [CallbackIdentity(Constants.k_iSteamFriendsCallbacks + 46)] - public struct FriendsEnumerateFollowingList_t { - public const int k_iCallback = Constants.k_iSteamFriendsCallbacks + 46; - public EResult m_eResult; - [MarshalAs(UnmanagedType.ByValArray, SizeConst = Constants.k_cEnumerateFollowersMax)] - public CSteamID[] m_rgSteamID; - public int m_nResultsReturned; - public int m_nTotalResultCount; - } - - //----------------------------------------------------------------------------- - // Purpose: reports the result of an attempt to change the user's persona name - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamFriendsCallbacks + 47)] - public struct SetPersonaNameResponse_t { - public const int k_iCallback = Constants.k_iSteamFriendsCallbacks + 47; - - [MarshalAs(UnmanagedType.I1)] - public bool m_bSuccess; // true if name change succeeded completely. - [MarshalAs(UnmanagedType.I1)] - public bool m_bLocalSuccess; // true if name change was retained locally. (We might not have been able to communicate with Steam) - public EResult m_result; // detailed result code - } - - // callbacks - // callback notification - A new message is available for reading from the message queue - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamGameCoordinatorCallbacks + 1)] - public struct GCMessageAvailable_t { - public const int k_iCallback = Constants.k_iSteamGameCoordinatorCallbacks + 1; - public uint m_nMessageSize; - } - - // callback notification - A message failed to make it to the GC. It may be down temporarily - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value, Size = 1)] - [CallbackIdentity(Constants.k_iSteamGameCoordinatorCallbacks + 2)] - public struct GCMessageFailed_t { - public const int k_iCallback = Constants.k_iSteamGameCoordinatorCallbacks + 2; - } - - // won't enforce authentication of users that connect to the server. - // Useful when you run a server where the clients may not - // be connected to the internet but you want them to play (i.e LANs) - // callbacks - // client has been approved to connect to this game server - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamGameServerCallbacks + 1)] - public struct GSClientApprove_t { - public const int k_iCallback = Constants.k_iSteamGameServerCallbacks + 1; - public CSteamID m_SteamID; // SteamID of approved player - public CSteamID m_OwnerSteamID; // SteamID of original owner for game license - } - - // client has been denied to connection to this game server - [StructLayout(LayoutKind.Sequential, Pack = 4)] - [CallbackIdentity(Constants.k_iSteamGameServerCallbacks + 2)] - public struct GSClientDeny_t { - public const int k_iCallback = Constants.k_iSteamGameServerCallbacks + 2; - public CSteamID m_SteamID; - public EDenyReason m_eDenyReason; - [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 128)] - public string m_rgchOptionalText; - } - - // request the game server should kick the user - [StructLayout(LayoutKind.Sequential, Pack = 4)] - [CallbackIdentity(Constants.k_iSteamGameServerCallbacks + 3)] - public struct GSClientKick_t { - public const int k_iCallback = Constants.k_iSteamGameServerCallbacks + 3; - public CSteamID m_SteamID; - public EDenyReason m_eDenyReason; - } - - // NOTE: callback values 4 and 5 are skipped because they are used for old deprecated callbacks, - // do not reuse them here. - // client achievement info - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamGameServerCallbacks + 6)] - public struct GSClientAchievementStatus_t { - public const int k_iCallback = Constants.k_iSteamGameServerCallbacks + 6; - public ulong m_SteamID; - [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 128)] - public string m_pchAchievement; - [MarshalAs(UnmanagedType.I1)] - public bool m_bUnlocked; - } - - // received when the game server requests to be displayed as secure (VAC protected) - // m_bSecure is true if the game server should display itself as secure to users, false otherwise - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamUserCallbacks + 15)] - public struct GSPolicyResponse_t { - public const int k_iCallback = Constants.k_iSteamUserCallbacks + 15; - public byte m_bSecure; - } - - // GS gameplay stats info - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamGameServerCallbacks + 7)] - public struct GSGameplayStats_t { - public const int k_iCallback = Constants.k_iSteamGameServerCallbacks + 7; - public EResult m_eResult; // Result of the call - public int m_nRank; // Overall rank of the server (0-based) - public uint m_unTotalConnects; // Total number of clients who have ever connected to the server - public uint m_unTotalMinutesPlayed; // Total number of minutes ever played on the server - } - - // send as a reply to RequestUserGroupStatus() - [StructLayout(LayoutKind.Sequential, Pack = 1)] - [CallbackIdentity(Constants.k_iSteamGameServerCallbacks + 8)] - public struct GSClientGroupStatus_t { - public const int k_iCallback = Constants.k_iSteamGameServerCallbacks + 8; - public CSteamID m_SteamIDUser; - public CSteamID m_SteamIDGroup; - [MarshalAs(UnmanagedType.I1)] - public bool m_bMember; - [MarshalAs(UnmanagedType.I1)] - public bool m_bOfficer; - } - - // Sent as a reply to GetServerReputation() - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamGameServerCallbacks + 9)] - public struct GSReputation_t { - public const int k_iCallback = Constants.k_iSteamGameServerCallbacks + 9; - public EResult m_eResult; // Result of the call; - public uint m_unReputationScore; // The reputation score for the game server - [MarshalAs(UnmanagedType.I1)] - public bool m_bBanned; // True if the server is banned from the Steam - // master servers - - // The following members are only filled out if m_bBanned is true. They will all - // be set to zero otherwise. Master server bans are by IP so it is possible to be - // banned even when the score is good high if there is a bad server on another port. - // This information can be used to determine which server is bad. - - public uint m_unBannedIP; // The IP of the banned server - public ushort m_usBannedPort; // The port of the banned server - public ulong m_ulBannedGameID; // The game ID the banned server is serving - public uint m_unBanExpires; // Time the ban expires, expressed in the Unix epoch (seconds since 1/1/1970) - } - - // Sent as a reply to AssociateWithClan() - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamGameServerCallbacks + 10)] - public struct AssociateWithClanResult_t { - public const int k_iCallback = Constants.k_iSteamGameServerCallbacks + 10; - public EResult m_eResult; // Result of the call; - } - - // Sent as a reply to ComputeNewPlayerCompatibility() - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamGameServerCallbacks + 11)] - public struct ComputeNewPlayerCompatibilityResult_t { - public const int k_iCallback = Constants.k_iSteamGameServerCallbacks + 11; - public EResult m_eResult; // Result of the call; - public int m_cPlayersThatDontLikeCandidate; - public int m_cPlayersThatCandidateDoesntLike; - public int m_cClanPlayersThatDontLikeCandidate; - public CSteamID m_SteamIDCandidate; - } - - // callbacks - //----------------------------------------------------------------------------- - // Purpose: called when the latests stats and achievements have been received - // from the server - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = 4)] - [CallbackIdentity(Constants.k_iSteamGameServerStatsCallbacks)] - public struct GSStatsReceived_t { - public const int k_iCallback = Constants.k_iSteamGameServerStatsCallbacks; - public EResult m_eResult; // Success / error fetching the stats - public CSteamID m_steamIDUser; // The user for whom the stats are retrieved for - } - - //----------------------------------------------------------------------------- - // Purpose: result of a request to store the user stats for a game - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = 4)] - [CallbackIdentity(Constants.k_iSteamGameServerStatsCallbacks + 1)] - public struct GSStatsStored_t { - public const int k_iCallback = Constants.k_iSteamGameServerStatsCallbacks + 1; - public EResult m_eResult; // success / error - public CSteamID m_steamIDUser; // The user for whom the stats were stored - } - - //----------------------------------------------------------------------------- - // Purpose: Callback indicating that a user's stats have been unloaded. - // Call RequestUserStats again to access stats for this user - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamUserStatsCallbacks + 8)] - public struct GSStatsUnloaded_t { - public const int k_iCallback = Constants.k_iSteamUserStatsCallbacks + 8; - public CSteamID m_steamIDUser; // User whose stats have been unloaded - } - - // callbacks - //----------------------------------------------------------------------------- - // Purpose: The browser is ready for use - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamHTMLSurfaceCallbacks + 1)] - public struct HTML_BrowserReady_t { - public const int k_iCallback = Constants.k_iSteamHTMLSurfaceCallbacks + 1; - public HHTMLBrowser unBrowserHandle; // this browser is now fully created and ready to navigate to pages - } - - //----------------------------------------------------------------------------- - // Purpose: the browser has a pending paint - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamHTMLSurfaceCallbacks + 2)] - public struct HTML_NeedsPaint_t { - public const int k_iCallback = Constants.k_iSteamHTMLSurfaceCallbacks + 2; - public HHTMLBrowser unBrowserHandle; // the browser that needs the paint - public IntPtr pBGRA; // a pointer to the B8G8R8A8 data for this surface, valid until SteamAPI_RunCallbacks is next called - public uint unWide; // the total width of the pBGRA texture - public uint unTall; // the total height of the pBGRA texture - public uint unUpdateX; // the offset in X for the damage rect for this update - public uint unUpdateY; // the offset in Y for the damage rect for this update - public uint unUpdateWide; // the width of the damage rect for this update - public uint unUpdateTall; // the height of the damage rect for this update - public uint unScrollX; // the page scroll the browser was at when this texture was rendered - public uint unScrollY; // the page scroll the browser was at when this texture was rendered - public float flPageScale; // the page scale factor on this page when rendered - public uint unPageSerial; // incremented on each new page load, you can use this to reject draws while navigating to new pages - } - - //----------------------------------------------------------------------------- - // Purpose: The browser wanted to navigate to a new page - // NOTE - you MUST call AllowStartRequest in response to this callback - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamHTMLSurfaceCallbacks + 3)] - public struct HTML_StartRequest_t { - public const int k_iCallback = Constants.k_iSteamHTMLSurfaceCallbacks + 3; - public HHTMLBrowser unBrowserHandle; // the handle of the surface navigating - public string pchURL; // the url they wish to navigate to - public string pchTarget; // the html link target type (i.e _blank, _self, _parent, _top ) - public string pchPostData; // any posted data for the request - [MarshalAs(UnmanagedType.I1)] - public bool bIsRedirect; // true if this was a http/html redirect from the last load request - } - - //----------------------------------------------------------------------------- - // Purpose: The browser has been requested to close due to user interaction (usually from a javascript window.close() call) - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamHTMLSurfaceCallbacks + 4)] - public struct HTML_CloseBrowser_t { - public const int k_iCallback = Constants.k_iSteamHTMLSurfaceCallbacks + 4; - public HHTMLBrowser unBrowserHandle; // the handle of the surface - } - - //----------------------------------------------------------------------------- - // Purpose: the browser is navigating to a new url - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamHTMLSurfaceCallbacks + 5)] - public struct HTML_URLChanged_t { - public const int k_iCallback = Constants.k_iSteamHTMLSurfaceCallbacks + 5; - public HHTMLBrowser unBrowserHandle; // the handle of the surface navigating - public string pchURL; // the url they wish to navigate to - public string pchPostData; // any posted data for the request - [MarshalAs(UnmanagedType.I1)] - public bool bIsRedirect; // true if this was a http/html redirect from the last load request - public string pchPageTitle; // the title of the page - [MarshalAs(UnmanagedType.I1)] - public bool bNewNavigation; // true if this was from a fresh tab and not a click on an existing page - } - - //----------------------------------------------------------------------------- - // Purpose: A page is finished loading - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamHTMLSurfaceCallbacks + 6)] - public struct HTML_FinishedRequest_t { - public const int k_iCallback = Constants.k_iSteamHTMLSurfaceCallbacks + 6; - public HHTMLBrowser unBrowserHandle; // the handle of the surface - public string pchURL; // - public string pchPageTitle; // - } - - //----------------------------------------------------------------------------- - // Purpose: a request to load this url in a new tab - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamHTMLSurfaceCallbacks + 7)] - public struct HTML_OpenLinkInNewTab_t { - public const int k_iCallback = Constants.k_iSteamHTMLSurfaceCallbacks + 7; - public HHTMLBrowser unBrowserHandle; // the handle of the surface - public string pchURL; // - } - - //----------------------------------------------------------------------------- - // Purpose: the page has a new title now - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamHTMLSurfaceCallbacks + 8)] - public struct HTML_ChangedTitle_t { - public const int k_iCallback = Constants.k_iSteamHTMLSurfaceCallbacks + 8; - public HHTMLBrowser unBrowserHandle; // the handle of the surface - public string pchTitle; // - } - - //----------------------------------------------------------------------------- - // Purpose: results from a search - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamHTMLSurfaceCallbacks + 9)] - public struct HTML_SearchResults_t { - public const int k_iCallback = Constants.k_iSteamHTMLSurfaceCallbacks + 9; - public HHTMLBrowser unBrowserHandle; // the handle of the surface - public uint unResults; // - public uint unCurrentMatch; // - } - - //----------------------------------------------------------------------------- - // Purpose: page history status changed on the ability to go backwards and forward - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamHTMLSurfaceCallbacks + 10)] - public struct HTML_CanGoBackAndForward_t { - public const int k_iCallback = Constants.k_iSteamHTMLSurfaceCallbacks + 10; - public HHTMLBrowser unBrowserHandle; // the handle of the surface - [MarshalAs(UnmanagedType.I1)] - public bool bCanGoBack; // - [MarshalAs(UnmanagedType.I1)] - public bool bCanGoForward; // - } - - //----------------------------------------------------------------------------- - // Purpose: details on the visibility and size of the horizontal scrollbar - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamHTMLSurfaceCallbacks + 11)] - public struct HTML_HorizontalScroll_t { - public const int k_iCallback = Constants.k_iSteamHTMLSurfaceCallbacks + 11; - public HHTMLBrowser unBrowserHandle; // the handle of the surface - public uint unScrollMax; // - public uint unScrollCurrent; // - public float flPageScale; // - [MarshalAs(UnmanagedType.I1)] - public bool bVisible; // - public uint unPageSize; // - } - - //----------------------------------------------------------------------------- - // Purpose: details on the visibility and size of the vertical scrollbar - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamHTMLSurfaceCallbacks + 12)] - public struct HTML_VerticalScroll_t { - public const int k_iCallback = Constants.k_iSteamHTMLSurfaceCallbacks + 12; - public HHTMLBrowser unBrowserHandle; // the handle of the surface - public uint unScrollMax; // - public uint unScrollCurrent; // - public float flPageScale; // - [MarshalAs(UnmanagedType.I1)] - public bool bVisible; // - public uint unPageSize; // - } - - //----------------------------------------------------------------------------- - // Purpose: response to GetLinkAtPosition call - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamHTMLSurfaceCallbacks + 13)] - public struct HTML_LinkAtPosition_t { - public const int k_iCallback = Constants.k_iSteamHTMLSurfaceCallbacks + 13; - public HHTMLBrowser unBrowserHandle; // the handle of the surface - public uint x; // NOTE - Not currently set - public uint y; // NOTE - Not currently set - public string pchURL; // - [MarshalAs(UnmanagedType.I1)] - public bool bInput; // - [MarshalAs(UnmanagedType.I1)] - public bool bLiveLink; // - } - - //----------------------------------------------------------------------------- - // Purpose: show a Javascript alert dialog, call JSDialogResponse - // when the user dismisses this dialog (or right away to ignore it) - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamHTMLSurfaceCallbacks + 14)] - public struct HTML_JSAlert_t { - public const int k_iCallback = Constants.k_iSteamHTMLSurfaceCallbacks + 14; - public HHTMLBrowser unBrowserHandle; // the handle of the surface - public string pchMessage; // - } - - //----------------------------------------------------------------------------- - // Purpose: show a Javascript confirmation dialog, call JSDialogResponse - // when the user dismisses this dialog (or right away to ignore it) - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamHTMLSurfaceCallbacks + 15)] - public struct HTML_JSConfirm_t { - public const int k_iCallback = Constants.k_iSteamHTMLSurfaceCallbacks + 15; - public HHTMLBrowser unBrowserHandle; // the handle of the surface - public string pchMessage; // - } - - //----------------------------------------------------------------------------- - // Purpose: when received show a file open dialog - // then call FileLoadDialogResponse with the file(s) the user selected. - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamHTMLSurfaceCallbacks + 16)] - public struct HTML_FileOpenDialog_t { - public const int k_iCallback = Constants.k_iSteamHTMLSurfaceCallbacks + 16; - public HHTMLBrowser unBrowserHandle; // the handle of the surface - public string pchTitle; // - public string pchInitialFile; // - } - - //----------------------------------------------------------------------------- - // Purpose: a new html window has been created - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamHTMLSurfaceCallbacks + 21)] - public struct HTML_NewWindow_t { - public const int k_iCallback = Constants.k_iSteamHTMLSurfaceCallbacks + 21; - public HHTMLBrowser unBrowserHandle; // the handle of the current surface - public string pchURL; // the page to load - public uint unX; // the x pos into the page to display the popup - public uint unY; // the y pos into the page to display the popup - public uint unWide; // the total width of the pBGRA texture - public uint unTall; // the total height of the pBGRA texture - public HHTMLBrowser unNewWindow_BrowserHandle; // the handle of the new window surface - } - - //----------------------------------------------------------------------------- - // Purpose: change the cursor to display - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamHTMLSurfaceCallbacks + 22)] - public struct HTML_SetCursor_t { - public const int k_iCallback = Constants.k_iSteamHTMLSurfaceCallbacks + 22; - public HHTMLBrowser unBrowserHandle; // the handle of the surface - public uint eMouseCursor; // the EMouseCursor to display - } - - //----------------------------------------------------------------------------- - // Purpose: informational message from the browser - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamHTMLSurfaceCallbacks + 23)] - public struct HTML_StatusText_t { - public const int k_iCallback = Constants.k_iSteamHTMLSurfaceCallbacks + 23; - public HHTMLBrowser unBrowserHandle; // the handle of the surface - public string pchMsg; // the EMouseCursor to display - } - - //----------------------------------------------------------------------------- - // Purpose: show a tooltip - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamHTMLSurfaceCallbacks + 24)] - public struct HTML_ShowToolTip_t { - public const int k_iCallback = Constants.k_iSteamHTMLSurfaceCallbacks + 24; - public HHTMLBrowser unBrowserHandle; // the handle of the surface - public string pchMsg; // the EMouseCursor to display - } - - //----------------------------------------------------------------------------- - // Purpose: update the text of an existing tooltip - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamHTMLSurfaceCallbacks + 25)] - public struct HTML_UpdateToolTip_t { - public const int k_iCallback = Constants.k_iSteamHTMLSurfaceCallbacks + 25; - public HHTMLBrowser unBrowserHandle; // the handle of the surface - public string pchMsg; // the EMouseCursor to display - } - - //----------------------------------------------------------------------------- - // Purpose: hide the tooltip you are showing - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamHTMLSurfaceCallbacks + 26)] - public struct HTML_HideToolTip_t { - public const int k_iCallback = Constants.k_iSteamHTMLSurfaceCallbacks + 26; - public HHTMLBrowser unBrowserHandle; // the handle of the surface - } - - // callbacks - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iClientHTTPCallbacks + 1)] - public struct HTTPRequestCompleted_t { - public const int k_iCallback = Constants.k_iClientHTTPCallbacks + 1; - - // Handle value for the request that has completed. - public HTTPRequestHandle m_hRequest; - - // Context value that the user defined on the request that this callback is associated with, 0 if - // no context value was set. - public ulong m_ulContextValue; - - // This will be true if we actually got any sort of response from the server (even an error). - // It will be false if we failed due to an internal error or client side network failure. - [MarshalAs(UnmanagedType.I1)] - public bool m_bRequestSuccessful; - - // Will be the HTTP status code value returned by the server, k_EHTTPStatusCode200OK is the normal - // OK response, if you get something else you probably need to treat it as a failure. - public EHTTPStatusCode m_eStatusCode; - - public uint m_unBodySize; // Same as GetHTTPResponseBodySize() - } - - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iClientHTTPCallbacks + 2)] - public struct HTTPRequestHeadersReceived_t { - public const int k_iCallback = Constants.k_iClientHTTPCallbacks + 2; - - // Handle value for the request that has received headers. - public HTTPRequestHandle m_hRequest; - - // Context value that the user defined on the request that this callback is associated with, 0 if - // no context value was set. - public ulong m_ulContextValue; - } - - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iClientHTTPCallbacks + 3)] - public struct HTTPRequestDataReceived_t { - public const int k_iCallback = Constants.k_iClientHTTPCallbacks + 3; - - // Handle value for the request that has received data. - public HTTPRequestHandle m_hRequest; - - // Context value that the user defined on the request that this callback is associated with, 0 if - // no context value was set. - public ulong m_ulContextValue; - - - // Offset to provide to GetHTTPStreamingResponseBodyData to get this chunk of data - public uint m_cOffset; - - // Size to provide to GetHTTPStreamingResponseBodyData to get this chunk of data - public uint m_cBytesReceived; - } - - // SteamInventoryResultReady_t callbacks are fired whenever asynchronous - // results transition from "Pending" to "OK" or an error state. There will - // always be exactly one callback per handle. - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iClientInventoryCallbacks + 0)] - public struct SteamInventoryResultReady_t { - public const int k_iCallback = Constants.k_iClientInventoryCallbacks + 0; - public SteamInventoryResult_t m_handle; - public EResult m_result; - } - - // SteamInventoryFullUpdate_t callbacks are triggered when GetAllItems - // successfully returns a result which is newer / fresher than the last - // known result. (It will not trigger if the inventory hasn't changed, - // or if results from two overlapping calls are reversed in flight and - // the earlier result is already known to be stale/out-of-date.) - // The normal ResultReady callback will still be triggered immediately - // afterwards; this is an additional notification for your convenience. - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iClientInventoryCallbacks + 1)] - public struct SteamInventoryFullUpdate_t { - public const int k_iCallback = Constants.k_iClientInventoryCallbacks + 1; - public SteamInventoryResult_t m_handle; - } - - // A SteamInventoryDefinitionUpdate_t callback is triggered whenever - // item definitions have been updated, which could be in response to - // LoadItemDefinitions() or any other async request which required - // a definition update in order to process results from the server. - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value, Size = 1)] - [CallbackIdentity(Constants.k_iClientInventoryCallbacks + 2)] - public struct SteamInventoryDefinitionUpdate_t { - public const int k_iCallback = Constants.k_iClientInventoryCallbacks + 2; - } - - //----------------------------------------------------------------------------- - // Callbacks for ISteamMatchmaking (which go through the regular Steam callback registration system) - //----------------------------------------------------------------------------- - // Purpose: a server was added/removed from the favorites list, you should refresh now - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamMatchmakingCallbacks + 2)] - public struct FavoritesListChanged_t { - public const int k_iCallback = Constants.k_iSteamMatchmakingCallbacks + 2; - public uint m_nIP; // an IP of 0 means reload the whole list, any other value means just one server - public uint m_nQueryPort; - public uint m_nConnPort; - public uint m_nAppID; - public uint m_nFlags; - [MarshalAs(UnmanagedType.I1)] - public bool m_bAdd; // true if this is adding the entry, otherwise it is a remove - public AccountID_t m_unAccountId; - } - - //----------------------------------------------------------------------------- - // Purpose: Someone has invited you to join a Lobby - // normally you don't need to do anything with this, since - // the Steam UI will also display a ' has invited you to the lobby, join?' dialog - // - // if the user outside a game chooses to join, your game will be launched with the parameter "+connect_lobby <64-bit lobby id>", - // or with the callback GameLobbyJoinRequested_t if they're already in-game - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamMatchmakingCallbacks + 3)] - public struct LobbyInvite_t { - public const int k_iCallback = Constants.k_iSteamMatchmakingCallbacks + 3; - - public ulong m_ulSteamIDUser; // Steam ID of the person making the invite - public ulong m_ulSteamIDLobby; // Steam ID of the Lobby - public ulong m_ulGameID; // GameID of the Lobby - } - - //----------------------------------------------------------------------------- - // Purpose: Sent on entering a lobby, or on failing to enter - // m_EChatRoomEnterResponse will be set to k_EChatRoomEnterResponseSuccess on success, - // or a higher value on failure (see enum EChatRoomEnterResponse) - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamMatchmakingCallbacks + 4)] - public struct LobbyEnter_t { - public const int k_iCallback = Constants.k_iSteamMatchmakingCallbacks + 4; - - public ulong m_ulSteamIDLobby; // SteamID of the Lobby you have entered - public uint m_rgfChatPermissions; // Permissions of the current user - [MarshalAs(UnmanagedType.I1)] - public bool m_bLocked; // If true, then only invited users may join - public uint m_EChatRoomEnterResponse; // EChatRoomEnterResponse - } - - //----------------------------------------------------------------------------- - // Purpose: The lobby metadata has changed - // if m_ulSteamIDMember is the steamID of a lobby member, use GetLobbyMemberData() to access per-user details - // if m_ulSteamIDMember == m_ulSteamIDLobby, use GetLobbyData() to access lobby metadata - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamMatchmakingCallbacks + 5)] - public struct LobbyDataUpdate_t { - public const int k_iCallback = Constants.k_iSteamMatchmakingCallbacks + 5; - - public ulong m_ulSteamIDLobby; // steamID of the Lobby - public ulong m_ulSteamIDMember; // steamID of the member whose data changed, or the room itself - public byte m_bSuccess; // true if we lobby data was successfully changed; - // will only be false if RequestLobbyData() was called on a lobby that no longer exists - } - - //----------------------------------------------------------------------------- - // Purpose: The lobby chat room state has changed - // this is usually sent when a user has joined or left the lobby - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamMatchmakingCallbacks + 6)] - public struct LobbyChatUpdate_t { - public const int k_iCallback = Constants.k_iSteamMatchmakingCallbacks + 6; - - public ulong m_ulSteamIDLobby; // Lobby ID - public ulong m_ulSteamIDUserChanged; // user who's status in the lobby just changed - can be recipient - public ulong m_ulSteamIDMakingChange; // Chat member who made the change (different from SteamIDUserChange if kicking, muting, etc.) - // for example, if one user kicks another from the lobby, this will be set to the id of the user who initiated the kick - public uint m_rgfChatMemberStateChange; // bitfield of EChatMemberStateChange values - } - - //----------------------------------------------------------------------------- - // Purpose: A chat message for this lobby has been sent - // use GetLobbyChatEntry( m_iChatID ) to retrieve the contents of this message - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamMatchmakingCallbacks + 7)] - public struct LobbyChatMsg_t { - public const int k_iCallback = Constants.k_iSteamMatchmakingCallbacks + 7; - - public ulong m_ulSteamIDLobby; // the lobby id this is in - public ulong m_ulSteamIDUser; // steamID of the user who has sent this message - public byte m_eChatEntryType; // type of message - public uint m_iChatID; // index of the chat entry to lookup - } - - //----------------------------------------------------------------------------- - // Purpose: A game created a game for all the members of the lobby to join, - // as triggered by a SetLobbyGameServer() - // it's up to the individual clients to take action on this; the usual - // game behavior is to leave the lobby and connect to the specified game server - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamMatchmakingCallbacks + 9)] - public struct LobbyGameCreated_t { - public const int k_iCallback = Constants.k_iSteamMatchmakingCallbacks + 9; - - public ulong m_ulSteamIDLobby; // the lobby we were in - public ulong m_ulSteamIDGameServer; // the new game server that has been created or found for the lobby members - public uint m_unIP; // IP & Port of the game server (if any) - public ushort m_usPort; - } - - //----------------------------------------------------------------------------- - // Purpose: Number of matching lobbies found - // iterate the returned lobbies with GetLobbyByIndex(), from values 0 to m_nLobbiesMatching-1 - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamMatchmakingCallbacks + 10)] - public struct LobbyMatchList_t { - public const int k_iCallback = Constants.k_iSteamMatchmakingCallbacks + 10; - public uint m_nLobbiesMatching; // Number of lobbies that matched search criteria and we have SteamIDs for - } - - //----------------------------------------------------------------------------- - // Purpose: posted if a user is forcefully removed from a lobby - // can occur if a user loses connection to Steam - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamMatchmakingCallbacks + 12)] - public struct LobbyKicked_t { - public const int k_iCallback = Constants.k_iSteamMatchmakingCallbacks + 12; - public ulong m_ulSteamIDLobby; // Lobby - public ulong m_ulSteamIDAdmin; // User who kicked you - possibly the ID of the lobby itself - public byte m_bKickedDueToDisconnect; // true if you were kicked from the lobby due to the user losing connection to Steam (currently always true) - } - - //----------------------------------------------------------------------------- - // Purpose: Result of our request to create a Lobby - // m_eResult == k_EResultOK on success - // at this point, the lobby has been joined and is ready for use - // a LobbyEnter_t callback will also be received (since the local user is joining their own lobby) - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamMatchmakingCallbacks + 13)] - public struct LobbyCreated_t { - public const int k_iCallback = Constants.k_iSteamMatchmakingCallbacks + 13; - - public EResult m_eResult; // k_EResultOK - the lobby was successfully created - // k_EResultNoConnection - your Steam client doesn't have a connection to the back-end - // k_EResultTimeout - you the message to the Steam servers, but it didn't respond - // k_EResultFail - the server responded, but with an unknown internal error - // k_EResultAccessDenied - your game isn't set to allow lobbies, or your client does haven't rights to play the game - // k_EResultLimitExceeded - your game client has created too many lobbies - - public ulong m_ulSteamIDLobby; // chat room, zero if failed - } - - //----------------------------------------------------------------------------- - // Purpose: Result of our request to create a Lobby - // m_eResult == k_EResultOK on success - // at this point, the lobby has been joined and is ready for use - // a LobbyEnter_t callback will also be received (since the local user is joining their own lobby) - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamMatchmakingCallbacks + 16)] - public struct FavoritesListAccountsUpdated_t { - public const int k_iCallback = Constants.k_iSteamMatchmakingCallbacks + 16; - - public EResult m_eResult; - } - - // callbacks - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value, Size = 1)] - [CallbackIdentity(Constants.k_iSteamMusicCallbacks + 1)] - public struct PlaybackStatusHasChanged_t { - public const int k_iCallback = Constants.k_iSteamMusicCallbacks + 1; - } - - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamMusicCallbacks + 2)] - public struct VolumeHasChanged_t { - public const int k_iCallback = Constants.k_iSteamMusicCallbacks + 2; - public float m_flNewVolume; - } - - // callbacks - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value, Size = 1)] - [CallbackIdentity(Constants.k_iSteamMusicRemoteCallbacks + 1)] - public struct MusicPlayerRemoteWillActivate_t { - public const int k_iCallback = Constants.k_iSteamMusicRemoteCallbacks + 1; - } - - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value, Size = 1)] - [CallbackIdentity(Constants.k_iSteamMusicRemoteCallbacks + 2)] - public struct MusicPlayerRemoteWillDeactivate_t { - public const int k_iCallback = Constants.k_iSteamMusicRemoteCallbacks + 2; - } - - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value, Size = 1)] - [CallbackIdentity(Constants.k_iSteamMusicRemoteCallbacks + 3)] - public struct MusicPlayerRemoteToFront_t { - public const int k_iCallback = Constants.k_iSteamMusicRemoteCallbacks + 3; - } - - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value, Size = 1)] - [CallbackIdentity(Constants.k_iSteamMusicRemoteCallbacks + 4)] - public struct MusicPlayerWillQuit_t { - public const int k_iCallback = Constants.k_iSteamMusicRemoteCallbacks + 4; - } - - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value, Size = 1)] - [CallbackIdentity(Constants.k_iSteamMusicRemoteCallbacks + 5)] - public struct MusicPlayerWantsPlay_t { - public const int k_iCallback = Constants.k_iSteamMusicRemoteCallbacks + 5; - } - - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value, Size = 1)] - [CallbackIdentity(Constants.k_iSteamMusicRemoteCallbacks + 6)] - public struct MusicPlayerWantsPause_t { - public const int k_iCallback = Constants.k_iSteamMusicRemoteCallbacks + 6; - } - - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value, Size = 1)] - [CallbackIdentity(Constants.k_iSteamMusicRemoteCallbacks + 7)] - public struct MusicPlayerWantsPlayPrevious_t { - public const int k_iCallback = Constants.k_iSteamMusicRemoteCallbacks + 7; - } - - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value, Size = 1)] - [CallbackIdentity(Constants.k_iSteamMusicRemoteCallbacks + 8)] - public struct MusicPlayerWantsPlayNext_t { - public const int k_iCallback = Constants.k_iSteamMusicRemoteCallbacks + 8; - } - - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamMusicRemoteCallbacks + 9)] - public struct MusicPlayerWantsShuffled_t { - public const int k_iCallback = Constants.k_iSteamMusicRemoteCallbacks + 9; - [MarshalAs(UnmanagedType.I1)] - public bool m_bShuffled; - } - - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamMusicRemoteCallbacks + 10)] - public struct MusicPlayerWantsLooped_t { - public const int k_iCallback = Constants.k_iSteamMusicRemoteCallbacks + 10; - [MarshalAs(UnmanagedType.I1)] - public bool m_bLooped; - } - - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamMusicCallbacks + 11)] - public struct MusicPlayerWantsVolume_t { - public const int k_iCallback = Constants.k_iSteamMusicCallbacks + 11; - public float m_flNewVolume; - } - - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamMusicCallbacks + 12)] - public struct MusicPlayerSelectsQueueEntry_t { - public const int k_iCallback = Constants.k_iSteamMusicCallbacks + 12; - public int nID; - } - - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamMusicCallbacks + 13)] - public struct MusicPlayerSelectsPlaylistEntry_t { - public const int k_iCallback = Constants.k_iSteamMusicCallbacks + 13; - public int nID; - } - - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamMusicRemoteCallbacks + 14)] - public struct MusicPlayerWantsPlayingRepeatStatus_t { - public const int k_iCallback = Constants.k_iSteamMusicRemoteCallbacks + 14; - public int m_nPlayingRepeatStatus; - } - - // callbacks - // callback notification - a user wants to talk to us over the P2P channel via the SendP2PPacket() API - // in response, a call to AcceptP2PPacketsFromUser() needs to be made, if you want to talk with them - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamNetworkingCallbacks + 2)] - public struct P2PSessionRequest_t { - public const int k_iCallback = Constants.k_iSteamNetworkingCallbacks + 2; - public CSteamID m_steamIDRemote; // user who wants to talk to us - } - - // callback notification - packets can't get through to the specified user via the SendP2PPacket() API - // all packets queued packets unsent at this point will be dropped - // further attempts to send will retry making the connection (but will be dropped if we fail again) - [StructLayout(LayoutKind.Sequential, Pack = 1)] - [CallbackIdentity(Constants.k_iSteamNetworkingCallbacks + 3)] - public struct P2PSessionConnectFail_t { - public const int k_iCallback = Constants.k_iSteamNetworkingCallbacks + 3; - public CSteamID m_steamIDRemote; // user we were sending packets to - public byte m_eP2PSessionError; // EP2PSessionError indicating why we're having trouble - } - - // callback notification - status of a socket has changed - // used as part of the CreateListenSocket() / CreateP2PConnectionSocket() - [StructLayout(LayoutKind.Sequential, Pack = 4)] - [CallbackIdentity(Constants.k_iSteamNetworkingCallbacks + 1)] - public struct SocketStatusCallback_t { - public const int k_iCallback = Constants.k_iSteamNetworkingCallbacks + 1; - public SNetSocket_t m_hSocket; // the socket used to send/receive data to the remote host - public SNetListenSocket_t m_hListenSocket; // this is the server socket that we were listening on; NULL if this was an outgoing connection - public CSteamID m_steamIDRemote; // remote steamID we have connected to, if it has one - public int m_eSNetSocketState; // socket state, ESNetSocketState - } - - // callbacks - //----------------------------------------------------------------------------- - // Purpose: sent when the local file cache is fully synced with the server for an app - // That means that an application can be started and has all latest files - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iClientRemoteStorageCallbacks + 1)] - public struct RemoteStorageAppSyncedClient_t { - public const int k_iCallback = Constants.k_iClientRemoteStorageCallbacks + 1; - public AppId_t m_nAppID; - public EResult m_eResult; - public int m_unNumDownloads; - } - - //----------------------------------------------------------------------------- - // Purpose: sent when the server is fully synced with the local file cache for an app - // That means that we can shutdown Steam and our data is stored on the server - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iClientRemoteStorageCallbacks + 2)] - public struct RemoteStorageAppSyncedServer_t { - public const int k_iCallback = Constants.k_iClientRemoteStorageCallbacks + 2; - public AppId_t m_nAppID; - public EResult m_eResult; - public int m_unNumUploads; - } - - //----------------------------------------------------------------------------- - // Purpose: Status of up and downloads during a sync session - // - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iClientRemoteStorageCallbacks + 3)] - public struct RemoteStorageAppSyncProgress_t { - public const int k_iCallback = Constants.k_iClientRemoteStorageCallbacks + 3; - [MarshalAs(UnmanagedType.ByValTStr, SizeConst = Constants.k_cchFilenameMax)] - public string m_rgchCurrentFile; // Current file being transferred - public AppId_t m_nAppID; // App this info relates to - public uint m_uBytesTransferredThisChunk; // Bytes transferred this chunk - public double m_dAppPercentComplete; // Percent complete that this app's transfers are - [MarshalAs(UnmanagedType.I1)] - public bool m_bUploading; // if false, downloading - } - - // - // IMPORTANT! k_iClientRemoteStorageCallbacks + 4 is used, see iclientremotestorage.h - // - //----------------------------------------------------------------------------- - // Purpose: Sent after we've determined the list of files that are out of sync - // with the server. - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iClientRemoteStorageCallbacks + 5)] - public struct RemoteStorageAppSyncStatusCheck_t { - public const int k_iCallback = Constants.k_iClientRemoteStorageCallbacks + 5; - public AppId_t m_nAppID; - public EResult m_eResult; - } - - //----------------------------------------------------------------------------- - // Purpose: Sent after a conflict resolution attempt. - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iClientRemoteStorageCallbacks + 6)] - public struct RemoteStorageConflictResolution_t { - public const int k_iCallback = Constants.k_iClientRemoteStorageCallbacks + 6; - public AppId_t m_nAppID; - public EResult m_eResult; - } - - //----------------------------------------------------------------------------- - // Purpose: The result of a call to FileShare() - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iClientRemoteStorageCallbacks + 7)] - public struct RemoteStorageFileShareResult_t { - public const int k_iCallback = Constants.k_iClientRemoteStorageCallbacks + 7; - public EResult m_eResult; // The result of the operation - public UGCHandle_t m_hFile; // The handle that can be shared with users and features - [MarshalAs(UnmanagedType.ByValTStr, SizeConst = Constants.k_cchFilenameMax)] - public string m_rgchFilename; // The name of the file that was shared - } - - // k_iClientRemoteStorageCallbacks + 8 is deprecated! Do not reuse - //----------------------------------------------------------------------------- - // Purpose: The result of a call to PublishFile() - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iClientRemoteStorageCallbacks + 9)] - public struct RemoteStoragePublishFileResult_t { - public const int k_iCallback = Constants.k_iClientRemoteStorageCallbacks + 9; - public EResult m_eResult; // The result of the operation. - public PublishedFileId_t m_nPublishedFileId; - [MarshalAs(UnmanagedType.I1)] - public bool m_bUserNeedsToAcceptWorkshopLegalAgreement; - } - - //----------------------------------------------------------------------------- - // Purpose: The result of a call to DeletePublishedFile() - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iClientRemoteStorageCallbacks + 11)] - public struct RemoteStorageDeletePublishedFileResult_t { - public const int k_iCallback = Constants.k_iClientRemoteStorageCallbacks + 11; - public EResult m_eResult; // The result of the operation. - public PublishedFileId_t m_nPublishedFileId; - } - - //----------------------------------------------------------------------------- - // Purpose: The result of a call to EnumerateUserPublishedFiles() - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iClientRemoteStorageCallbacks + 12)] - public struct RemoteStorageEnumerateUserPublishedFilesResult_t { - public const int k_iCallback = Constants.k_iClientRemoteStorageCallbacks + 12; - public EResult m_eResult; // The result of the operation. - public int m_nResultsReturned; - public int m_nTotalResultCount; - [MarshalAs(UnmanagedType.ByValArray, SizeConst = Constants.k_unEnumeratePublishedFilesMaxResults)] - public PublishedFileId_t[] m_rgPublishedFileId; - } - - //----------------------------------------------------------------------------- - // Purpose: The result of a call to SubscribePublishedFile() - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iClientRemoteStorageCallbacks + 13)] - public struct RemoteStorageSubscribePublishedFileResult_t { - public const int k_iCallback = Constants.k_iClientRemoteStorageCallbacks + 13; - public EResult m_eResult; // The result of the operation. - public PublishedFileId_t m_nPublishedFileId; - } - - //----------------------------------------------------------------------------- - // Purpose: The result of a call to EnumerateSubscribePublishedFiles() - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iClientRemoteStorageCallbacks + 14)] - public struct RemoteStorageEnumerateUserSubscribedFilesResult_t { - public const int k_iCallback = Constants.k_iClientRemoteStorageCallbacks + 14; - public EResult m_eResult; // The result of the operation. - public int m_nResultsReturned; - public int m_nTotalResultCount; - [MarshalAs(UnmanagedType.ByValArray, SizeConst = Constants.k_unEnumeratePublishedFilesMaxResults)] - public PublishedFileId_t[] m_rgPublishedFileId; - [MarshalAs(UnmanagedType.ByValArray, SizeConst = Constants.k_unEnumeratePublishedFilesMaxResults)] - public uint[] m_rgRTimeSubscribed; - } - - //----------------------------------------------------------------------------- - // Purpose: The result of a call to UnsubscribePublishedFile() - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iClientRemoteStorageCallbacks + 15)] - public struct RemoteStorageUnsubscribePublishedFileResult_t { - public const int k_iCallback = Constants.k_iClientRemoteStorageCallbacks + 15; - public EResult m_eResult; // The result of the operation. - public PublishedFileId_t m_nPublishedFileId; - } - - //----------------------------------------------------------------------------- - // Purpose: The result of a call to CommitPublishedFileUpdate() - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iClientRemoteStorageCallbacks + 16)] - public struct RemoteStorageUpdatePublishedFileResult_t { - public const int k_iCallback = Constants.k_iClientRemoteStorageCallbacks + 16; - public EResult m_eResult; // The result of the operation. - public PublishedFileId_t m_nPublishedFileId; - [MarshalAs(UnmanagedType.I1)] - public bool m_bUserNeedsToAcceptWorkshopLegalAgreement; - } - - //----------------------------------------------------------------------------- - // Purpose: The result of a call to UGCDownload() - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iClientRemoteStorageCallbacks + 17)] - public struct RemoteStorageDownloadUGCResult_t { - public const int k_iCallback = Constants.k_iClientRemoteStorageCallbacks + 17; - public EResult m_eResult; // The result of the operation. - public UGCHandle_t m_hFile; // The handle to the file that was attempted to be downloaded. - public AppId_t m_nAppID; // ID of the app that created this file. - public int m_nSizeInBytes; // The size of the file that was downloaded, in bytes. - [MarshalAs(UnmanagedType.ByValTStr, SizeConst = Constants.k_cchFilenameMax)] - public string m_pchFileName; // The name of the file that was downloaded. - public ulong m_ulSteamIDOwner; // Steam ID of the user who created this content. - } - - //----------------------------------------------------------------------------- - // Purpose: The result of a call to GetPublishedFileDetails() - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iClientRemoteStorageCallbacks + 18)] - public struct RemoteStorageGetPublishedFileDetailsResult_t { - public const int k_iCallback = Constants.k_iClientRemoteStorageCallbacks + 18; - public EResult m_eResult; // The result of the operation. - public PublishedFileId_t m_nPublishedFileId; - public AppId_t m_nCreatorAppID; // ID of the app that created this file. - public AppId_t m_nConsumerAppID; // ID of the app that will consume this file. - [MarshalAs(UnmanagedType.ByValTStr, SizeConst = Constants.k_cchPublishedDocumentTitleMax)] - public string m_rgchTitle; // title of document - [MarshalAs(UnmanagedType.ByValTStr, SizeConst = Constants.k_cchPublishedDocumentDescriptionMax)] - public string m_rgchDescription; // description of document - public UGCHandle_t m_hFile; // The handle of the primary file - public UGCHandle_t m_hPreviewFile; // The handle of the preview file - public ulong m_ulSteamIDOwner; // Steam ID of the user who created this content. - public uint m_rtimeCreated; // time when the published file was created - public uint m_rtimeUpdated; // time when the published file was last updated - public ERemoteStoragePublishedFileVisibility m_eVisibility; - [MarshalAs(UnmanagedType.I1)] - public bool m_bBanned; - [MarshalAs(UnmanagedType.ByValTStr, SizeConst = Constants.k_cchTagListMax)] - public string m_rgchTags; // comma separated list of all tags associated with this file - [MarshalAs(UnmanagedType.I1)] - public bool m_bTagsTruncated; // whether the list of tags was too long to be returned in the provided buffer - [MarshalAs(UnmanagedType.ByValTStr, SizeConst = Constants.k_cchFilenameMax)] - public string m_pchFileName; // The name of the primary file - public int m_nFileSize; // Size of the primary file - public int m_nPreviewFileSize; // Size of the preview file - [MarshalAs(UnmanagedType.ByValTStr, SizeConst = Constants.k_cchPublishedFileURLMax)] - public string m_rgchURL; // URL (for a video or a website) - public EWorkshopFileType m_eFileType; // Type of the file - [MarshalAs(UnmanagedType.I1)] - public bool m_bAcceptedForUse; // developer has specifically flagged this item as accepted in the Workshop - } - - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iClientRemoteStorageCallbacks + 19)] - public struct RemoteStorageEnumerateWorkshopFilesResult_t { - public const int k_iCallback = Constants.k_iClientRemoteStorageCallbacks + 19; - public EResult m_eResult; - public int m_nResultsReturned; - public int m_nTotalResultCount; - [MarshalAs(UnmanagedType.ByValArray, SizeConst = Constants.k_unEnumeratePublishedFilesMaxResults)] - public PublishedFileId_t[] m_rgPublishedFileId; - [MarshalAs(UnmanagedType.ByValArray, SizeConst = Constants.k_unEnumeratePublishedFilesMaxResults)] - public float[] m_rgScore; - public AppId_t m_nAppId; - public uint m_unStartIndex; - } - - //----------------------------------------------------------------------------- - // Purpose: The result of GetPublishedItemVoteDetails - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iClientRemoteStorageCallbacks + 20)] - public struct RemoteStorageGetPublishedItemVoteDetailsResult_t { - public const int k_iCallback = Constants.k_iClientRemoteStorageCallbacks + 20; - public EResult m_eResult; - public PublishedFileId_t m_unPublishedFileId; - public int m_nVotesFor; - public int m_nVotesAgainst; - public int m_nReports; - public float m_fScore; - } - - //----------------------------------------------------------------------------- - // Purpose: User subscribed to a file for the app (from within the app or on the web) - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iClientRemoteStorageCallbacks + 21)] - public struct RemoteStoragePublishedFileSubscribed_t { - public const int k_iCallback = Constants.k_iClientRemoteStorageCallbacks + 21; - public PublishedFileId_t m_nPublishedFileId; // The published file id - public AppId_t m_nAppID; // ID of the app that will consume this file. - } - - //----------------------------------------------------------------------------- - // Purpose: User unsubscribed from a file for the app (from within the app or on the web) - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iClientRemoteStorageCallbacks + 22)] - public struct RemoteStoragePublishedFileUnsubscribed_t { - public const int k_iCallback = Constants.k_iClientRemoteStorageCallbacks + 22; - public PublishedFileId_t m_nPublishedFileId; // The published file id - public AppId_t m_nAppID; // ID of the app that will consume this file. - } - - //----------------------------------------------------------------------------- - // Purpose: Published file that a user owns was deleted (from within the app or the web) - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iClientRemoteStorageCallbacks + 23)] - public struct RemoteStoragePublishedFileDeleted_t { - public const int k_iCallback = Constants.k_iClientRemoteStorageCallbacks + 23; - public PublishedFileId_t m_nPublishedFileId; // The published file id - public AppId_t m_nAppID; // ID of the app that will consume this file. - } - - //----------------------------------------------------------------------------- - // Purpose: The result of a call to UpdateUserPublishedItemVote() - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iClientRemoteStorageCallbacks + 24)] - public struct RemoteStorageUpdateUserPublishedItemVoteResult_t { - public const int k_iCallback = Constants.k_iClientRemoteStorageCallbacks + 24; - public EResult m_eResult; // The result of the operation. - public PublishedFileId_t m_nPublishedFileId; // The published file id - } - - //----------------------------------------------------------------------------- - // Purpose: The result of a call to GetUserPublishedItemVoteDetails() - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iClientRemoteStorageCallbacks + 25)] - public struct RemoteStorageUserVoteDetails_t { - public const int k_iCallback = Constants.k_iClientRemoteStorageCallbacks + 25; - public EResult m_eResult; // The result of the operation. - public PublishedFileId_t m_nPublishedFileId; // The published file id - public EWorkshopVote m_eVote; // what the user voted - } - - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iClientRemoteStorageCallbacks + 26)] - public struct RemoteStorageEnumerateUserSharedWorkshopFilesResult_t { - public const int k_iCallback = Constants.k_iClientRemoteStorageCallbacks + 26; - public EResult m_eResult; // The result of the operation. - public int m_nResultsReturned; - public int m_nTotalResultCount; - [MarshalAs(UnmanagedType.ByValArray, SizeConst = Constants.k_unEnumeratePublishedFilesMaxResults)] - public PublishedFileId_t[] m_rgPublishedFileId; - } - - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iClientRemoteStorageCallbacks + 27)] - public struct RemoteStorageSetUserPublishedFileActionResult_t { - public const int k_iCallback = Constants.k_iClientRemoteStorageCallbacks + 27; - public EResult m_eResult; // The result of the operation. - public PublishedFileId_t m_nPublishedFileId; // The published file id - public EWorkshopFileAction m_eAction; // the action that was attempted - } - - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iClientRemoteStorageCallbacks + 28)] - public struct RemoteStorageEnumeratePublishedFilesByUserActionResult_t { - public const int k_iCallback = Constants.k_iClientRemoteStorageCallbacks + 28; - public EResult m_eResult; // The result of the operation. - public EWorkshopFileAction m_eAction; // the action that was filtered on - public int m_nResultsReturned; - public int m_nTotalResultCount; - [MarshalAs(UnmanagedType.ByValArray, SizeConst = Constants.k_unEnumeratePublishedFilesMaxResults)] - public PublishedFileId_t[] m_rgPublishedFileId; - [MarshalAs(UnmanagedType.ByValArray, SizeConst = Constants.k_unEnumeratePublishedFilesMaxResults)] - public uint[] m_rgRTimeUpdated; - } - - //----------------------------------------------------------------------------- - // Purpose: Called periodically while a PublishWorkshopFile is in progress - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iClientRemoteStorageCallbacks + 29)] - public struct RemoteStoragePublishFileProgress_t { - public const int k_iCallback = Constants.k_iClientRemoteStorageCallbacks + 29; - public double m_dPercentFile; - [MarshalAs(UnmanagedType.I1)] - public bool m_bPreview; - } - - //----------------------------------------------------------------------------- - // Purpose: Called when the content for a published file is updated - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iClientRemoteStorageCallbacks + 30)] - public struct RemoteStoragePublishedFileUpdated_t { - public const int k_iCallback = Constants.k_iClientRemoteStorageCallbacks + 30; - public PublishedFileId_t m_nPublishedFileId; // The published file id - public AppId_t m_nAppID; // ID of the app that will consume this file. - public UGCHandle_t m_hFile; // The new content - } - - // callbacks - //----------------------------------------------------------------------------- - // Purpose: Screenshot successfully written or otherwise added to the library - // and can now be tagged - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamScreenshotsCallbacks + 1)] - public struct ScreenshotReady_t { - public const int k_iCallback = Constants.k_iSteamScreenshotsCallbacks + 1; - public ScreenshotHandle m_hLocal; - public EResult m_eResult; - } - - //----------------------------------------------------------------------------- - // Purpose: Screenshot has been requested by the user. Only sent if - // HookScreenshots() has been called, in which case Steam will not take - // the screenshot itself. - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value, Size = 1)] - [CallbackIdentity(Constants.k_iSteamScreenshotsCallbacks + 2)] - public struct ScreenshotRequested_t { - public const int k_iCallback = Constants.k_iSteamScreenshotsCallbacks + 2; - } - - //----------------------------------------------------------------------------- - // Purpose: Callback for querying UGC - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iClientUGCCallbacks + 1)] - public struct SteamUGCQueryCompleted_t { - public const int k_iCallback = Constants.k_iClientUGCCallbacks + 1; - public UGCQueryHandle_t m_handle; - public EResult m_eResult; - public uint m_unNumResultsReturned; - public uint m_unTotalMatchingResults; - [MarshalAs(UnmanagedType.I1)] - public bool m_bCachedData; // indicates whether this data was retrieved from the local on-disk cache - } - - //----------------------------------------------------------------------------- - // Purpose: Callback for requesting details on one piece of UGC - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iClientUGCCallbacks + 2)] - public struct SteamUGCRequestUGCDetailsResult_t { - public const int k_iCallback = Constants.k_iClientUGCCallbacks + 2; - public SteamUGCDetails_t m_details; - [MarshalAs(UnmanagedType.I1)] - public bool m_bCachedData; // indicates whether this data was retrieved from the local on-disk cache - } - - //----------------------------------------------------------------------------- - // Purpose: result for ISteamUGC::CreateItem() - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iClientUGCCallbacks + 3)] - public struct CreateItemResult_t { - public const int k_iCallback = Constants.k_iClientUGCCallbacks + 3; - public EResult m_eResult; - public PublishedFileId_t m_nPublishedFileId; // new item got this UGC PublishFileID - [MarshalAs(UnmanagedType.I1)] - public bool m_bUserNeedsToAcceptWorkshopLegalAgreement; - } - - //----------------------------------------------------------------------------- - // Purpose: result for ISteamUGC::SubmitItemUpdate() - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iClientUGCCallbacks + 4)] - public struct SubmitItemUpdateResult_t { - public const int k_iCallback = Constants.k_iClientUGCCallbacks + 4; - public EResult m_eResult; - [MarshalAs(UnmanagedType.I1)] - public bool m_bUserNeedsToAcceptWorkshopLegalAgreement; - } - - //----------------------------------------------------------------------------- - // Purpose: a Workshop item has been installed or updated - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iClientUGCCallbacks + 5)] - public struct ItemInstalled_t { - public const int k_iCallback = Constants.k_iClientUGCCallbacks + 5; - public AppId_t m_unAppID; - public PublishedFileId_t m_nPublishedFileId; - } - - //----------------------------------------------------------------------------- - // Purpose: result of DownloadItem(), existing item files can be accessed again - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iClientUGCCallbacks + 6)] - public struct DownloadItemResult_t { - public const int k_iCallback = Constants.k_iClientUGCCallbacks + 6; - public AppId_t m_unAppID; - public PublishedFileId_t m_nPublishedFileId; - public EResult m_eResult; - } - - //----------------------------------------------------------------------------- - // Purpose: result of AddItemToFavorites() or RemoveItemFromFavorites() - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iClientUGCCallbacks + 7)] - public struct UserFavoriteItemsListChanged_t { - public const int k_iCallback = Constants.k_iClientUGCCallbacks + 7; - public PublishedFileId_t m_nPublishedFileId; - public EResult m_eResult; - [MarshalAs(UnmanagedType.I1)] - public bool m_bWasAddRequest; - } - - //----------------------------------------------------------------------------- - // Purpose: The result of a call to SetUserItemVote() - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iClientUGCCallbacks + 8)] - public struct SetUserItemVoteResult_t { - public const int k_iCallback = Constants.k_iClientUGCCallbacks + 8; - public PublishedFileId_t m_nPublishedFileId; - public EResult m_eResult; - [MarshalAs(UnmanagedType.I1)] - public bool m_bVoteUp; - } - - //----------------------------------------------------------------------------- - // Purpose: The result of a call to GetUserItemVote() - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iClientUGCCallbacks + 9)] - public struct GetUserItemVoteResult_t { - public const int k_iCallback = Constants.k_iClientUGCCallbacks + 9; - public PublishedFileId_t m_nPublishedFileId; - public EResult m_eResult; - [MarshalAs(UnmanagedType.I1)] - public bool m_bVotedUp; - [MarshalAs(UnmanagedType.I1)] - public bool m_bVotedDown; - [MarshalAs(UnmanagedType.I1)] - public bool m_bVoteSkipped; - } - - // callbacks - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iClientUnifiedMessagesCallbacks + 1)] - public struct SteamUnifiedMessagesSendMethodResult_t { - public const int k_iCallback = Constants.k_iClientUnifiedMessagesCallbacks + 1; - public ClientUnifiedMessageHandle m_hHandle; // The handle returned by SendMethod(). - public ulong m_unContext; // Context provided when calling SendMethod(). - public EResult m_eResult; // The result of the method call. - public uint m_unResponseSize; // The size of the response. - } - - // callbacks - //----------------------------------------------------------------------------- - // Purpose: called when a connections to the Steam back-end has been established - // this means the Steam client now has a working connection to the Steam servers - // usually this will have occurred before the game has launched, and should - // only be seen if the user has dropped connection due to a networking issue - // or a Steam server update - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value, Size = 1)] - [CallbackIdentity(Constants.k_iSteamUserCallbacks + 1)] - public struct SteamServersConnected_t { - public const int k_iCallback = Constants.k_iSteamUserCallbacks + 1; - } - - //----------------------------------------------------------------------------- - // Purpose: called when a connection attempt has failed - // this will occur periodically if the Steam client is not connected, - // and has failed in it's retry to establish a connection - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamUserCallbacks + 2)] - public struct SteamServerConnectFailure_t { - public const int k_iCallback = Constants.k_iSteamUserCallbacks + 2; - public EResult m_eResult; - } - - //----------------------------------------------------------------------------- - // Purpose: called if the client has lost connection to the Steam servers - // real-time services will be disabled until a matching SteamServersConnected_t has been posted - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamUserCallbacks + 3)] - public struct SteamServersDisconnected_t { - public const int k_iCallback = Constants.k_iSteamUserCallbacks + 3; - public EResult m_eResult; - } - - //----------------------------------------------------------------------------- - // Purpose: Sent by the Steam server to the client telling it to disconnect from the specified game server, - // which it may be in the process of or already connected to. - // The game client should immediately disconnect upon receiving this message. - // This can usually occur if the user doesn't have rights to play on the game server. - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamUserCallbacks + 13)] - public struct ClientGameServerDeny_t { - public const int k_iCallback = Constants.k_iSteamUserCallbacks + 13; - - public uint m_uAppID; - public uint m_unGameServerIP; - public ushort m_usGameServerPort; - public ushort m_bSecure; - public uint m_uReason; - } - - //----------------------------------------------------------------------------- - // Purpose: called when the callback system for this client is in an error state (and has flushed pending callbacks) - // When getting this message the client should disconnect from Steam, reset any stored Steam state and reconnect. - // This usually occurs in the rare event the Steam client has some kind of fatal error. - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamUserCallbacks + 17)] - public struct IPCFailure_t { - public const int k_iCallback = Constants.k_iSteamUserCallbacks + 17; - public byte m_eFailureType; - } - - //----------------------------------------------------------------------------- - // Purpose: Signaled whenever licenses change - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value, Size = 1)] - [CallbackIdentity(Constants.k_iSteamUserCallbacks + 25)] - public struct LicensesUpdated_t { - public const int k_iCallback = Constants.k_iSteamUserCallbacks + 25; - } - - //----------------------------------------------------------------------------- - // callback for BeginAuthSession - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = 4)] - [CallbackIdentity(Constants.k_iSteamUserCallbacks + 43)] - public struct ValidateAuthTicketResponse_t { - public const int k_iCallback = Constants.k_iSteamUserCallbacks + 43; - public CSteamID m_SteamID; - public EAuthSessionResponse m_eAuthSessionResponse; - public CSteamID m_OwnerSteamID; // different from m_SteamID if borrowed - } - - //----------------------------------------------------------------------------- - // Purpose: called when a user has responded to a microtransaction authorization request - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamUserCallbacks + 52)] - public struct MicroTxnAuthorizationResponse_t { - public const int k_iCallback = Constants.k_iSteamUserCallbacks + 52; - - public uint m_unAppID; // AppID for this microtransaction - public ulong m_ulOrderID; // OrderID provided for the microtransaction - public byte m_bAuthorized; // if user authorized transaction - } - - //----------------------------------------------------------------------------- - // Purpose: Result from RequestEncryptedAppTicket - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamUserCallbacks + 54)] - public struct EncryptedAppTicketResponse_t { - public const int k_iCallback = Constants.k_iSteamUserCallbacks + 54; - - public EResult m_eResult; - } - - //----------------------------------------------------------------------------- - // callback for GetAuthSessionTicket - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamUserCallbacks + 63)] - public struct GetAuthSessionTicketResponse_t { - public const int k_iCallback = Constants.k_iSteamUserCallbacks + 63; - public HAuthTicket m_hAuthTicket; - public EResult m_eResult; - } - - //----------------------------------------------------------------------------- - // Purpose: sent to your game in response to a steam://gamewebcallback/ command - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamUserCallbacks + 64)] - public struct GameWebCallback_t { - public const int k_iCallback = Constants.k_iSteamUserCallbacks + 64; - [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 256)] - public string m_szURL; - } - - //----------------------------------------------------------------------------- - // Purpose: sent to your game in response to ISteamUser::RequestStoreAuthURL - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamUserCallbacks + 65)] - public struct StoreAuthURLResponse_t { - public const int k_iCallback = Constants.k_iSteamUserCallbacks + 65; - [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 512)] - public string m_szURL; - } - - // callbacks - //----------------------------------------------------------------------------- - // Purpose: called when the latests stats and achievements have been received - // from the server - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Explicit, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamUserStatsCallbacks + 1)] - public struct UserStatsReceived_t { - public const int k_iCallback = Constants.k_iSteamUserStatsCallbacks + 1; - [FieldOffset(0)] - public ulong m_nGameID; // Game these stats are for - [FieldOffset(8)] - public EResult m_eResult; // Success / error fetching the stats - [FieldOffset(12)] - public CSteamID m_steamIDUser; // The user for whom the stats are retrieved for - } - - //----------------------------------------------------------------------------- - // Purpose: result of a request to store the user stats for a game - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamUserStatsCallbacks + 2)] - public struct UserStatsStored_t { - public const int k_iCallback = Constants.k_iSteamUserStatsCallbacks + 2; - public ulong m_nGameID; // Game these stats are for - public EResult m_eResult; // success / error - } - - //----------------------------------------------------------------------------- - // Purpose: result of a request to store the achievements for a game, or an - // "indicate progress" call. If both m_nCurProgress and m_nMaxProgress - // are zero, that means the achievement has been fully unlocked. - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamUserStatsCallbacks + 3)] - public struct UserAchievementStored_t { - public const int k_iCallback = Constants.k_iSteamUserStatsCallbacks + 3; - - public ulong m_nGameID; // Game this is for - [MarshalAs(UnmanagedType.I1)] - public bool m_bGroupAchievement; // if this is a "group" achievement - [MarshalAs(UnmanagedType.ByValTStr, SizeConst = Constants.k_cchStatNameMax)] - public string m_rgchAchievementName; // name of the achievement - public uint m_nCurProgress; // current progress towards the achievement - public uint m_nMaxProgress; // "out of" this many - } - - //----------------------------------------------------------------------------- - // Purpose: call result for finding a leaderboard, returned as a result of FindOrCreateLeaderboard() or FindLeaderboard() - // use CCallResult<> to map this async result to a member function - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamUserStatsCallbacks + 4)] - public struct LeaderboardFindResult_t { - public const int k_iCallback = Constants.k_iSteamUserStatsCallbacks + 4; - public SteamLeaderboard_t m_hSteamLeaderboard; // handle to the leaderboard serarched for, 0 if no leaderboard found - public byte m_bLeaderboardFound; // 0 if no leaderboard found - } - - //----------------------------------------------------------------------------- - // Purpose: call result indicating scores for a leaderboard have been downloaded and are ready to be retrieved, returned as a result of DownloadLeaderboardEntries() - // use CCallResult<> to map this async result to a member function - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamUserStatsCallbacks + 5)] - public struct LeaderboardScoresDownloaded_t { - public const int k_iCallback = Constants.k_iSteamUserStatsCallbacks + 5; - public SteamLeaderboard_t m_hSteamLeaderboard; - public SteamLeaderboardEntries_t m_hSteamLeaderboardEntries; // the handle to pass into GetDownloadedLeaderboardEntries() - public int m_cEntryCount; // the number of entries downloaded - } - - //----------------------------------------------------------------------------- - // Purpose: call result indicating scores has been uploaded, returned as a result of UploadLeaderboardScore() - // use CCallResult<> to map this async result to a member function - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamUserStatsCallbacks + 6)] - public struct LeaderboardScoreUploaded_t { - public const int k_iCallback = Constants.k_iSteamUserStatsCallbacks + 6; - public byte m_bSuccess; // 1 if the call was successful - public SteamLeaderboard_t m_hSteamLeaderboard; // the leaderboard handle that was - public int m_nScore; // the score that was attempted to set - public byte m_bScoreChanged; // true if the score in the leaderboard change, false if the existing score was better - public int m_nGlobalRankNew; // the new global rank of the user in this leaderboard - public int m_nGlobalRankPrevious; // the previous global rank of the user in this leaderboard; 0 if the user had no existing entry in the leaderboard - } - - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamUserStatsCallbacks + 7)] - public struct NumberOfCurrentPlayers_t { - public const int k_iCallback = Constants.k_iSteamUserStatsCallbacks + 7; - public byte m_bSuccess; // 1 if the call was successful - public int m_cPlayers; // Number of players currently playing - } - - //----------------------------------------------------------------------------- - // Purpose: Callback indicating that a user's stats have been unloaded. - // Call RequestUserStats again to access stats for this user - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamUserStatsCallbacks + 8)] - public struct UserStatsUnloaded_t { - public const int k_iCallback = Constants.k_iSteamUserStatsCallbacks + 8; - public CSteamID m_steamIDUser; // User whose stats have been unloaded - } - - //----------------------------------------------------------------------------- - // Purpose: Callback indicating that an achievement icon has been fetched - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamUserStatsCallbacks + 9)] - public struct UserAchievementIconFetched_t { - public const int k_iCallback = Constants.k_iSteamUserStatsCallbacks + 9; - - public CGameID m_nGameID; // Game this is for - [MarshalAs(UnmanagedType.ByValTStr, SizeConst = Constants.k_cchStatNameMax)] - public string m_rgchAchievementName; // name of the achievement - [MarshalAs(UnmanagedType.I1)] - public bool m_bAchieved; // Is the icon for the achieved or not achieved version? - public int m_nIconHandle; // Handle to the image, which can be used in SteamUtils()->GetImageRGBA(), 0 means no image is set for the achievement - } - - //----------------------------------------------------------------------------- - // Purpose: Callback indicating that global achievement percentages are fetched - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamUserStatsCallbacks + 10)] - public struct GlobalAchievementPercentagesReady_t { - public const int k_iCallback = Constants.k_iSteamUserStatsCallbacks + 10; - - public ulong m_nGameID; // Game this is for - public EResult m_eResult; // Result of the operation - } - - //----------------------------------------------------------------------------- - // Purpose: call result indicating UGC has been uploaded, returned as a result of SetLeaderboardUGC() - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamUserStatsCallbacks + 11)] - public struct LeaderboardUGCSet_t { - public const int k_iCallback = Constants.k_iSteamUserStatsCallbacks + 11; - public EResult m_eResult; // The result of the operation - public SteamLeaderboard_t m_hSteamLeaderboard; // the leaderboard handle that was - } - - //----------------------------------------------------------------------------- - // Purpose: callback indicating global stats have been received. - // Returned as a result of RequestGlobalStats() - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamUserStatsCallbacks + 12)] - public struct GlobalStatsReceived_t { - public const int k_iCallback = Constants.k_iSteamUserStatsCallbacks + 12; - public ulong m_nGameID; // Game global stats were requested for - public EResult m_eResult; // The result of the request - } - - // callbacks - //----------------------------------------------------------------------------- - // Purpose: The country of the user changed - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value, Size = 1)] - [CallbackIdentity(Constants.k_iSteamUtilsCallbacks + 1)] - public struct IPCountry_t { - public const int k_iCallback = Constants.k_iSteamUtilsCallbacks + 1; - } - - //----------------------------------------------------------------------------- - // Purpose: Fired when running on a laptop and less than 10 minutes of battery is left, fires then every minute - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamUtilsCallbacks + 2)] - public struct LowBatteryPower_t { - public const int k_iCallback = Constants.k_iSteamUtilsCallbacks + 2; - public byte m_nMinutesBatteryLeft; - } - - //----------------------------------------------------------------------------- - // Purpose: called when a SteamAsyncCall_t has completed (or failed) - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamUtilsCallbacks + 3)] - public struct SteamAPICallCompleted_t { - public const int k_iCallback = Constants.k_iSteamUtilsCallbacks + 3; - public SteamAPICall_t m_hAsyncCall; - } - - //----------------------------------------------------------------------------- - // called when Steam wants to shutdown - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value, Size = 1)] - [CallbackIdentity(Constants.k_iSteamUtilsCallbacks + 4)] - public struct SteamShutdown_t { - public const int k_iCallback = Constants.k_iSteamUtilsCallbacks + 4; - } - - //----------------------------------------------------------------------------- - // callback for CheckFileSignature - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamUtilsCallbacks + 5)] - public struct CheckFileSignature_t { - public const int k_iCallback = Constants.k_iSteamUtilsCallbacks + 5; - public ECheckFileSignature m_eCheckFileSignature; - } - - // k_iSteamUtilsCallbacks + 13 is taken - //----------------------------------------------------------------------------- - // Big Picture gamepad text input has been closed - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iSteamUtilsCallbacks + 14)] - public struct GamepadTextInputDismissed_t { - public const int k_iCallback = Constants.k_iSteamUtilsCallbacks + 14; - [MarshalAs(UnmanagedType.I1)] - public bool m_bSubmitted; // true if user entered & accepted text (Call ISteamUtils::GetEnteredGamepadTextInput() for text), false if canceled input - public uint m_unSubmittedText; - } - - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value, Size = 1)] - [CallbackIdentity(Constants.k_iClientVideoCallbacks + 4)] - public struct BroadcastUploadStart_t { - public const int k_iCallback = Constants.k_iClientVideoCallbacks + 4; - } - - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iClientVideoCallbacks + 5)] - public struct BroadcastUploadStop_t { - public const int k_iCallback = Constants.k_iClientVideoCallbacks + 5; - public EBroadcastUploadResult m_eResult; - } - - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - [CallbackIdentity(Constants.k_iClientVideoCallbacks + 11)] - public struct GetVideoURLResult_t { - public const int k_iCallback = Constants.k_iClientVideoCallbacks + 11; - public EResult m_eResult; - public AppId_t m_unVideoAppID; - [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 256)] - public string m_rgchURL; - } - -} diff --git a/Assets/Plugins/Steamworks.NET/autogen/SteamCallbacks.cs.meta b/Assets/Plugins/Steamworks.NET/autogen/SteamCallbacks.cs.meta deleted file mode 100644 index 92ae77d..0000000 --- a/Assets/Plugins/Steamworks.NET/autogen/SteamCallbacks.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: bb0c129f6c80a984f9e57c4e3ba5c0f2 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/Plugins/Steamworks.NET/autogen/SteamConstants.cs b/Assets/Plugins/Steamworks.NET/autogen/SteamConstants.cs deleted file mode 100644 index 4de4a60..0000000 --- a/Assets/Plugins/Steamworks.NET/autogen/SteamConstants.cs +++ /dev/null @@ -1,209 +0,0 @@ -// This file is provided under The MIT License as part of Steamworks.NET. -// Copyright (c) 2013-2015 Riley Labrecque -// Please see the included LICENSE.txt for additional information. - -// This file is automatically generated. -// Changes to this file will be reverted when you update Steamworks.NET - -using System; -using System.Runtime.InteropServices; - -namespace Steamworks { - public static class Constants { - public const string STEAMAPPLIST_INTERFACE_VERSION = "STEAMAPPLIST_INTERFACE_VERSION001"; - public const string STEAMAPPS_INTERFACE_VERSION = "STEAMAPPS_INTERFACE_VERSION007"; - public const string STEAMAPPTICKET_INTERFACE_VERSION = "STEAMAPPTICKET_INTERFACE_VERSION001"; - public const string STEAMCLIENT_INTERFACE_VERSION = "SteamClient017"; - public const string STEAMCONTROLLER_INTERFACE_VERSION = "STEAMCONTROLLER_INTERFACE_VERSION"; - public const string STEAMFRIENDS_INTERFACE_VERSION = "SteamFriends015"; - public const string STEAMGAMECOORDINATOR_INTERFACE_VERSION = "SteamGameCoordinator001"; - public const string STEAMGAMESERVER_INTERFACE_VERSION = "SteamGameServer012"; - public const string STEAMGAMESERVERSTATS_INTERFACE_VERSION = "SteamGameServerStats001"; - public const string STEAMHTMLSURFACE_INTERFACE_VERSION = "STEAMHTMLSURFACE_INTERFACE_VERSION_003"; - public const string STEAMHTTP_INTERFACE_VERSION = "STEAMHTTP_INTERFACE_VERSION002"; - public const string STEAMINVENTORY_INTERFACE_VERSION = "STEAMINVENTORY_INTERFACE_V001"; - public const string STEAMMATCHMAKING_INTERFACE_VERSION = "SteamMatchMaking009"; - public const string STEAMMATCHMAKINGSERVERS_INTERFACE_VERSION = "SteamMatchMakingServers002"; - public const string STEAMMUSIC_INTERFACE_VERSION = "STEAMMUSIC_INTERFACE_VERSION001"; - public const string STEAMMUSICREMOTE_INTERFACE_VERSION = "STEAMMUSICREMOTE_INTERFACE_VERSION001"; - public const string STEAMNETWORKING_INTERFACE_VERSION = "SteamNetworking005"; - public const string STEAMREMOTESTORAGE_INTERFACE_VERSION = "STEAMREMOTESTORAGE_INTERFACE_VERSION012"; - public const string STEAMSCREENSHOTS_INTERFACE_VERSION = "STEAMSCREENSHOTS_INTERFACE_VERSION002"; - public const string STEAMUGC_INTERFACE_VERSION = "STEAMUGC_INTERFACE_VERSION007"; - public const string STEAMUNIFIEDMESSAGES_INTERFACE_VERSION = "STEAMUNIFIEDMESSAGES_INTERFACE_VERSION001"; - public const string STEAMUSER_INTERFACE_VERSION = "SteamUser018"; - public const string STEAMUSERSTATS_INTERFACE_VERSION = "STEAMUSERSTATS_INTERFACE_VERSION011"; - public const string STEAMUTILS_INTERFACE_VERSION = "SteamUtils007"; - public const string STEAMVIDEO_INTERFACE_VERSION = "STEAMVIDEO_INTERFACE_V001"; - public const int k_cubAppProofOfPurchaseKeyMax = 64; // max bytes of a legacy cd key we support - //----------------------------------------------------------------------------- - // Purpose: Base values for callback identifiers, each callback must - // have a unique ID. - //----------------------------------------------------------------------------- - public const int k_iSteamUserCallbacks = 100; - public const int k_iSteamGameServerCallbacks = 200; - public const int k_iSteamFriendsCallbacks = 300; - public const int k_iSteamBillingCallbacks = 400; - public const int k_iSteamMatchmakingCallbacks = 500; - public const int k_iSteamContentServerCallbacks = 600; - public const int k_iSteamUtilsCallbacks = 700; - public const int k_iClientFriendsCallbacks = 800; - public const int k_iClientUserCallbacks = 900; - public const int k_iSteamAppsCallbacks = 1000; - public const int k_iSteamUserStatsCallbacks = 1100; - public const int k_iSteamNetworkingCallbacks = 1200; - public const int k_iClientRemoteStorageCallbacks = 1300; - public const int k_iClientDepotBuilderCallbacks = 1400; - public const int k_iSteamGameServerItemsCallbacks = 1500; - public const int k_iClientUtilsCallbacks = 1600; - public const int k_iSteamGameCoordinatorCallbacks = 1700; - public const int k_iSteamGameServerStatsCallbacks = 1800; - public const int k_iSteam2AsyncCallbacks = 1900; - public const int k_iSteamGameStatsCallbacks = 2000; - public const int k_iClientHTTPCallbacks = 2100; - public const int k_iClientScreenshotsCallbacks = 2200; - public const int k_iSteamScreenshotsCallbacks = 2300; - public const int k_iClientAudioCallbacks = 2400; - public const int k_iClientUnifiedMessagesCallbacks = 2500; - public const int k_iSteamStreamLauncherCallbacks = 2600; - public const int k_iClientControllerCallbacks = 2700; - public const int k_iSteamControllerCallbacks = 2800; - public const int k_iClientParentalSettingsCallbacks = 2900; - public const int k_iClientDeviceAuthCallbacks = 3000; - public const int k_iClientNetworkDeviceManagerCallbacks = 3100; - public const int k_iClientMusicCallbacks = 3200; - public const int k_iClientRemoteClientManagerCallbacks = 3300; - public const int k_iClientUGCCallbacks = 3400; - public const int k_iSteamStreamClientCallbacks = 3500; - public const int k_IClientProductBuilderCallbacks = 3600; - public const int k_iClientShortcutsCallbacks = 3700; - public const int k_iClientRemoteControlManagerCallbacks = 3800; - public const int k_iSteamAppListCallbacks = 3900; - public const int k_iSteamMusicCallbacks = 4000; - public const int k_iSteamMusicRemoteCallbacks = 4100; - public const int k_iClientVRCallbacks = 4200; - public const int k_iClientReservedCallbacks = 4300; - public const int k_iSteamReservedCallbacks = 4400; - public const int k_iSteamHTMLSurfaceCallbacks = 4500; - public const int k_iClientVideoCallbacks = 4600; - public const int k_iClientInventoryCallbacks = 4700; - // maximum length of friend group name (not including terminating nul!) - public const int k_cchMaxFriendsGroupName = 64; - // maximum number of groups a single user is allowed - public const int k_cFriendsGroupLimit = 100; - public const int k_cEnumerateFollowersMax = 50; - // maximum number of characters in a user's name. Two flavors; one for UTF-8 and one for UTF-16. - // The UTF-8 version has to be very generous to accomodate characters that get large when encoded - // in UTF-8. - public const int k_cchPersonaNameMax = 128; - public const int k_cwchPersonaNameMax = 32; - // size limit on chat room or member metadata - public const int k_cubChatMetadataMax = 8192; - // size limits on Rich Presence data - public const int k_cchMaxRichPresenceKeys = 20; - public const int k_cchMaxRichPresenceKeyLength = 64; - public const int k_cchMaxRichPresenceValueLength = 256; - // game server flags - public const int k_unServerFlagNone = 0x00; - public const int k_unServerFlagActive = 0x01; // server has users playing - public const int k_unServerFlagSecure = 0x02; // server wants to be secure - public const int k_unServerFlagDedicated = 0x04; // server is dedicated - public const int k_unServerFlagLinux = 0x08; // linux build - public const int k_unServerFlagPassworded = 0x10; // password protected - public const int k_unServerFlagPrivate = 0x20; // server shouldn't list on master server and - // game server flags - public const int k_unFavoriteFlagNone = 0x00; - public const int k_unFavoriteFlagFavorite = 0x01; // this game favorite entry is for the favorites list - public const int k_unFavoriteFlagHistory = 0x02; // this game favorite entry is for the history list - //----------------------------------------------------------------------------- - // Purpose: Defines the largest allowed file size. Cloud files cannot be written - // in a single chunk over 100MB (and cannot be over 200MB total.) - //----------------------------------------------------------------------------- - public const int k_unMaxCloudFileChunkSize = 100 * 1024 * 1024; - public const int k_cchPublishedDocumentTitleMax = 128 + 1; - public const int k_cchPublishedDocumentDescriptionMax = 8000; - public const int k_cchPublishedDocumentChangeDescriptionMax = 8000; - public const int k_unEnumeratePublishedFilesMaxResults = 50; - public const int k_cchTagListMax = 1024 + 1; - public const int k_cchFilenameMax = 260; - public const int k_cchPublishedFileURLMax = 256; - public const int k_nScreenshotMaxTaggedUsers = 32; - public const int k_nScreenshotMaxTaggedPublishedFiles = 32; - public const int k_cubUFSTagTypeMax = 255; - public const int k_cubUFSTagValueMax = 255; - // Required with of a thumbnail provided to AddScreenshotToLibrary. If you do not provide a thumbnail - // one will be generated. - public const int k_ScreenshotThumbWidth = 200; - public const int kNumUGCResultsPerPage = 50; - public const int k_cchDeveloperMetadataMax = 5000; - // size limit on stat or achievement name (UTF-8 encoded) - public const int k_cchStatNameMax = 128; - // maximum number of bytes for a leaderboard name (UTF-8 encoded) - public const int k_cchLeaderboardNameMax = 128; - // maximum number of details int32's storable for a single leaderboard entry - public const int k_cLeaderboardDetailsMax = 64; - // - // Max size (in bytes of UTF-8 data, not in characters) of server fields, including null terminator. - // WARNING: These cannot be changed easily, without breaking clients using old interfaces. - // - public const int k_cbMaxGameServerGameDir = 32; - public const int k_cbMaxGameServerMapName = 32; - public const int k_cbMaxGameServerGameDescription = 64; - public const int k_cbMaxGameServerName = 64; - public const int k_cbMaxGameServerTags = 128; - public const int k_cbMaxGameServerGameData = 2048; - public const int k_unSteamAccountIDMask = -1; - public const int k_unSteamAccountInstanceMask = 0x000FFFFF; - // we allow 3 simultaneous user account instances right now, 1= desktop, 2 = console, 4 = web, 0 = all - public const int k_unSteamUserDesktopInstance = 1; - public const int k_unSteamUserConsoleInstance = 2; - public const int k_unSteamUserWebInstance = 4; - public const int k_cchGameExtraInfoMax = 64; - public const int k_nSteamEncryptedAppTicketSymmetricKeyLen = 32; - public const int k_cubSaltSize = 8; - public const ulong k_GIDNil = 0xffffffffffffffff; - public const ulong k_TxnIDNil = k_GIDNil; - public const ulong k_TxnIDUnknown = 0; - public const int k_uPackageIdFreeSub = 0x0; - public const int k_uPackageIdInvalid = -1; - public const ulong k_ulAssetClassIdInvalid = 0x0; - public const int k_uPhysicalItemIdInvalid = 0x0; - public const int k_uCellIDInvalid = -1; - public const int k_uPartnerIdInvalid = 0; - // callbacks - public const int MAX_STEAM_CONTROLLERS = 16; - public const int STEAM_RIGHT_TRIGGER_MASK = 0x0000001; - public const int STEAM_LEFT_TRIGGER_MASK = 0x0000002; - public const int STEAM_RIGHT_BUMPER_MASK = 0x0000004; - public const int STEAM_LEFT_BUMPER_MASK = 0x0000008; - public const int STEAM_BUTTON_0_MASK = 0x0000010; - public const int STEAM_BUTTON_1_MASK = 0x0000020; - public const int STEAM_BUTTON_2_MASK = 0x0000040; - public const int STEAM_BUTTON_3_MASK = 0x0000080; - public const int STEAM_TOUCH_0_MASK = 0x0000100; - public const int STEAM_TOUCH_1_MASK = 0x0000200; - public const int STEAM_TOUCH_2_MASK = 0x0000400; - public const int STEAM_TOUCH_3_MASK = 0x0000800; - public const int STEAM_BUTTON_MENU_MASK = 0x0001000; - public const int STEAM_BUTTON_STEAM_MASK = 0x0002000; - public const int STEAM_BUTTON_ESCAPE_MASK = 0x0004000; - public const int STEAM_BUTTON_BACK_LEFT_MASK = 0x0008000; - public const int STEAM_BUTTON_BACK_RIGHT_MASK = 0x0010000; - public const int STEAM_BUTTON_LEFTPAD_CLICKED_MASK = 0x0020000; - public const int STEAM_BUTTON_RIGHTPAD_CLICKED_MASK = 0x0040000; - public const int STEAM_LEFTPAD_FINGERDOWN_MASK = 0x0080000; - public const int STEAM_RIGHTPAD_FINGERDOWN_MASK = 0x0100000; - public const int STEAM_JOYSTICK_BUTTON_MASK = 0x0400000; - public const short MASTERSERVERUPDATERPORT_USEGAMESOCKETSHARE = -1; - public const int INVALID_HTTPREQUEST_HANDLE = 0; - // maximum number of characters a lobby metadata key can be - public const byte k_nMaxLobbyKeyLength = 255; - public const int k_SteamMusicNameMaxLength = 255; - public const int k_SteamMusicPNGMaxLength = 65535; - //----------------------------------------------------------------------------- - // Constants used for query ports. - //----------------------------------------------------------------------------- - public const int QUERY_PORT_NOT_INITIALIZED = 0xFFFF; // We haven't asked the GS for this query port's actual value yet. - public const int QUERY_PORT_ERROR = 0xFFFE; // We were unable to get the query port for this server. - } -} diff --git a/Assets/Plugins/Steamworks.NET/autogen/SteamConstants.cs.meta b/Assets/Plugins/Steamworks.NET/autogen/SteamConstants.cs.meta deleted file mode 100644 index 7415230..0000000 --- a/Assets/Plugins/Steamworks.NET/autogen/SteamConstants.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 1af651dd81aa1ed449181e6ac6e14a71 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/Plugins/Steamworks.NET/autogen/SteamEnums.cs b/Assets/Plugins/Steamworks.NET/autogen/SteamEnums.cs deleted file mode 100644 index d3c8943..0000000 --- a/Assets/Plugins/Steamworks.NET/autogen/SteamEnums.cs +++ /dev/null @@ -1,1044 +0,0 @@ -// This file is provided under The MIT License as part of Steamworks.NET. -// Copyright (c) 2013-2015 Riley Labrecque -// Please see the included LICENSE.txt for additional information. - -// This file is automatically generated. -// Changes to this file will be reverted when you update Steamworks.NET - -using System; -using System.Runtime.InteropServices; - -namespace Steamworks { - //----------------------------------------------------------------------------- - // Purpose: possible results when registering an activation code - //----------------------------------------------------------------------------- - public enum ERegisterActivationCodeResult : int { - k_ERegisterActivationCodeResultOK = 0, - k_ERegisterActivationCodeResultFail = 1, - k_ERegisterActivationCodeResultAlreadyRegistered = 2, - k_ERegisterActivationCodeResultTimeout = 3, - k_ERegisterActivationCodeAlreadyOwned = 4, - } - - public enum ESteamControllerPad : int { - k_ESteamControllerPad_Left, - k_ESteamControllerPad_Right - } - - //----------------------------------------------------------------------------- - // Purpose: set of relationships to other users - //----------------------------------------------------------------------------- - public enum EFriendRelationship : int { - k_EFriendRelationshipNone = 0, - k_EFriendRelationshipBlocked = 1, // this doesn't get stored; the user has just done an Ignore on an friendship invite - k_EFriendRelationshipRequestRecipient = 2, - k_EFriendRelationshipFriend = 3, - k_EFriendRelationshipRequestInitiator = 4, - k_EFriendRelationshipIgnored = 5, // this is stored; the user has explicit blocked this other user from comments/chat/etc - k_EFriendRelationshipIgnoredFriend = 6, - k_EFriendRelationshipSuggested = 7, - - // keep this updated - k_EFriendRelationshipMax = 8, - } - - //----------------------------------------------------------------------------- - // Purpose: list of states a friend can be in - //----------------------------------------------------------------------------- - public enum EPersonaState : int { - k_EPersonaStateOffline = 0, // friend is not currently logged on - k_EPersonaStateOnline = 1, // friend is logged on - k_EPersonaStateBusy = 2, // user is on, but busy - k_EPersonaStateAway = 3, // auto-away feature - k_EPersonaStateSnooze = 4, // auto-away for a long time - k_EPersonaStateLookingToTrade = 5, // Online, trading - k_EPersonaStateLookingToPlay = 6, // Online, wanting to play - k_EPersonaStateMax, - } - - //----------------------------------------------------------------------------- - // Purpose: flags for enumerating friends list, or quickly checking a the relationship between users - //----------------------------------------------------------------------------- - [Flags] - public enum EFriendFlags : int { - k_EFriendFlagNone = 0x00, - k_EFriendFlagBlocked = 0x01, - k_EFriendFlagFriendshipRequested = 0x02, - k_EFriendFlagImmediate = 0x04, // "regular" friend - k_EFriendFlagClanMember = 0x08, - k_EFriendFlagOnGameServer = 0x10, - // k_EFriendFlagHasPlayedWith = 0x20, // not currently used - // k_EFriendFlagFriendOfFriend = 0x40, // not currently used - k_EFriendFlagRequestingFriendship = 0x80, - k_EFriendFlagRequestingInfo = 0x100, - k_EFriendFlagIgnored = 0x200, - k_EFriendFlagIgnoredFriend = 0x400, - k_EFriendFlagSuggested = 0x800, - k_EFriendFlagAll = 0xFFFF, - } - - //----------------------------------------------------------------------------- - // Purpose: user restriction flags - //----------------------------------------------------------------------------- - public enum EUserRestriction : int { - k_nUserRestrictionNone = 0, // no known chat/content restriction - k_nUserRestrictionUnknown = 1, // we don't know yet (user offline) - k_nUserRestrictionAnyChat = 2, // user is not allowed to (or can't) send/recv any chat - k_nUserRestrictionVoiceChat = 4, // user is not allowed to (or can't) send/recv voice chat - k_nUserRestrictionGroupChat = 8, // user is not allowed to (or can't) send/recv group chat - k_nUserRestrictionRating = 16, // user is too young according to rating in current region - k_nUserRestrictionGameInvites = 32, // user cannot send or recv game invites (e.g. mobile) - k_nUserRestrictionTrading = 64, // user cannot participate in trading (console, mobile) - } - - // These values are passed as parameters to the store - public enum EOverlayToStoreFlag : int { - k_EOverlayToStoreFlag_None = 0, - k_EOverlayToStoreFlag_AddToCart = 1, - k_EOverlayToStoreFlag_AddToCartAndShow = 2, - } - - // used in PersonaStateChange_t::m_nChangeFlags to describe what's changed about a user - // these flags describe what the client has learned has changed recently, so on startup you'll see a name, avatar & relationship change for every friend - [Flags] - public enum EPersonaChange : int { - k_EPersonaChangeName = 0x0001, - k_EPersonaChangeStatus = 0x0002, - k_EPersonaChangeComeOnline = 0x0004, - k_EPersonaChangeGoneOffline = 0x0008, - k_EPersonaChangeGamePlayed = 0x0010, - k_EPersonaChangeGameServer = 0x0020, - k_EPersonaChangeAvatar = 0x0040, - k_EPersonaChangeJoinedSource= 0x0080, - k_EPersonaChangeLeftSource = 0x0100, - k_EPersonaChangeRelationshipChanged = 0x0200, - k_EPersonaChangeNameFirstSet = 0x0400, - k_EPersonaChangeFacebookInfo = 0x0800, - k_EPersonaChangeNickname = 0x1000, - k_EPersonaChangeSteamLevel = 0x2000, - } - - // list of possible return values from the ISteamGameCoordinator API - public enum EGCResults : int { - k_EGCResultOK = 0, - k_EGCResultNoMessage = 1, // There is no message in the queue - k_EGCResultBufferTooSmall = 2, // The buffer is too small for the requested message - k_EGCResultNotLoggedOn = 3, // The client is not logged onto Steam - k_EGCResultInvalidMessage = 4, // Something was wrong with the message being sent with SendMessage - } - - public enum EHTMLMouseButton : int { - eHTMLMouseButton_Left = 0, - eHTMLMouseButton_Right = 1, - eHTMLMouseButton_Middle = 2, - } - - public enum EMouseCursor : int { - dc_user = 0, - dc_none, - dc_arrow, - dc_ibeam, - dc_hourglass, - dc_waitarrow, - dc_crosshair, - dc_up, - dc_sizenw, - dc_sizese, - dc_sizene, - dc_sizesw, - dc_sizew, - dc_sizee, - dc_sizen, - dc_sizes, - dc_sizewe, - dc_sizens, - dc_sizeall, - dc_no, - dc_hand, - dc_blank, // don't show any custom cursor, just use your default - dc_middle_pan, - dc_north_pan, - dc_north_east_pan, - dc_east_pan, - dc_south_east_pan, - dc_south_pan, - dc_south_west_pan, - dc_west_pan, - dc_north_west_pan, - dc_alias, - dc_cell, - dc_colresize, - dc_copycur, - dc_verticaltext, - dc_rowresize, - dc_zoomin, - dc_zoomout, - dc_help, - dc_custom, - - dc_last, // custom cursors start from this value and up - } - - [Flags] - public enum EHTMLKeyModifiers : int { - k_eHTMLKeyModifier_None = 0, - k_eHTMLKeyModifier_AltDown = 1 << 0, - k_eHTMLKeyModifier_CtrlDown = 1 << 1, - k_eHTMLKeyModifier_ShiftDown = 1 << 2, - } - - [Flags] - public enum ESteamItemFlags : int { - // Item status flags - these flags are permanently attached to specific item instances - k_ESteamItemNoTrade = 1 << 0, // This item is account-locked and cannot be traded or given away. - - // Action confirmation flags - these flags are set one time only, as part of a result set - k_ESteamItemRemoved = 1 << 8, // The item has been destroyed, traded away, expired, or otherwise invalidated - k_ESteamItemConsumed = 1 << 9, // The item quantity has been decreased by 1 via ConsumeItem API. - - // All other flag bits are currently reserved for internal Steam use at this time. - // Do not assume anything about the state of other flags which are not defined here. - } - - // lobby type description - public enum ELobbyType : int { - k_ELobbyTypePrivate = 0, // only way to join the lobby is to invite to someone else - k_ELobbyTypeFriendsOnly = 1, // shows for friends or invitees, but not in lobby list - k_ELobbyTypePublic = 2, // visible for friends and in lobby list - k_ELobbyTypeInvisible = 3, // returned by search, but not visible to other friends - // useful if you want a user in two lobbies, for example matching groups together - // a user can be in only one regular lobby, and up to two invisible lobbies - } - - // lobby search filter tools - public enum ELobbyComparison : int { - k_ELobbyComparisonEqualToOrLessThan = -2, - k_ELobbyComparisonLessThan = -1, - k_ELobbyComparisonEqual = 0, - k_ELobbyComparisonGreaterThan = 1, - k_ELobbyComparisonEqualToOrGreaterThan = 2, - k_ELobbyComparisonNotEqual = 3, - } - - // lobby search distance. Lobby results are sorted from closest to farthest. - public enum ELobbyDistanceFilter : int { - k_ELobbyDistanceFilterClose, // only lobbies in the same immediate region will be returned - k_ELobbyDistanceFilterDefault, // only lobbies in the same region or near by regions - k_ELobbyDistanceFilterFar, // for games that don't have many latency requirements, will return lobbies about half-way around the globe - k_ELobbyDistanceFilterWorldwide, // no filtering, will match lobbies as far as India to NY (not recommended, expect multiple seconds of latency between the clients) - } - - //----------------------------------------------------------------------------- - // Purpose: Used in ChatInfo messages - fields specific to a chat member - must fit in a uint32 - //----------------------------------------------------------------------------- - [Flags] - public enum EChatMemberStateChange : int { - // Specific to joining / leaving the chatroom - k_EChatMemberStateChangeEntered = 0x0001, // This user has joined or is joining the chat room - k_EChatMemberStateChangeLeft = 0x0002, // This user has left or is leaving the chat room - k_EChatMemberStateChangeDisconnected = 0x0004, // User disconnected without leaving the chat first - k_EChatMemberStateChangeKicked = 0x0008, // User kicked - k_EChatMemberStateChangeBanned = 0x0010, // User kicked and banned - } - - //----------------------------------------------------------------------------- - // Purpose: - //----------------------------------------------------------------------------- - public enum AudioPlayback_Status : int { - AudioPlayback_Undefined = 0, - AudioPlayback_Playing = 1, - AudioPlayback_Paused = 2, - AudioPlayback_Idle = 3 - } - - // list of possible errors returned by SendP2PPacket() API - // these will be posted in the P2PSessionConnectFail_t callback - public enum EP2PSessionError : int { - k_EP2PSessionErrorNone = 0, - k_EP2PSessionErrorNotRunningApp = 1, // target is not running the same game - k_EP2PSessionErrorNoRightsToApp = 2, // local user doesn't own the app that is running - k_EP2PSessionErrorDestinationNotLoggedIn = 3, // target user isn't connected to Steam - k_EP2PSessionErrorTimeout = 4, // target isn't responding, perhaps not calling AcceptP2PSessionWithUser() - // corporate firewalls can also block this (NAT traversal is not firewall traversal) - // make sure that UDP ports 3478, 4379, and 4380 are open in an outbound direction - k_EP2PSessionErrorMax = 5 - } - - // SendP2PPacket() send types - // Typically k_EP2PSendUnreliable is what you want for UDP-like packets, k_EP2PSendReliable for TCP-like packets - public enum EP2PSend : int { - // Basic UDP send. Packets can't be bigger than 1200 bytes (your typical MTU size). Can be lost, or arrive out of order (rare). - // The sending API does have some knowledge of the underlying connection, so if there is no NAT-traversal accomplished or - // there is a recognized adjustment happening on the connection, the packet will be batched until the connection is open again. - k_EP2PSendUnreliable = 0, - - // As above, but if the underlying p2p connection isn't yet established the packet will just be thrown away. Using this on the first - // packet sent to a remote host almost guarantees the packet will be dropped. - // This is only really useful for kinds of data that should never buffer up, i.e. voice payload packets - k_EP2PSendUnreliableNoDelay = 1, - - // Reliable message send. Can send up to 1MB of data in a single message. - // Does fragmentation/re-assembly of messages under the hood, as well as a sliding window for efficient sends of large chunks of data. - k_EP2PSendReliable = 2, - - // As above, but applies the Nagle algorithm to the send - sends will accumulate - // until the current MTU size (typically ~1200 bytes, but can change) or ~200ms has passed (Nagle algorithm). - // Useful if you want to send a set of smaller messages but have the coalesced into a single packet - // Since the reliable stream is all ordered, you can do several small message sends with k_EP2PSendReliableWithBuffering and then - // do a normal k_EP2PSendReliable to force all the buffered data to be sent. - k_EP2PSendReliableWithBuffering = 3, - - } - - // connection progress indicators, used by CreateP2PConnectionSocket() - public enum ESNetSocketState : int { - k_ESNetSocketStateInvalid = 0, - - // communication is valid - k_ESNetSocketStateConnected = 1, - - // states while establishing a connection - k_ESNetSocketStateInitiated = 10, // the connection state machine has started - - // p2p connections - k_ESNetSocketStateLocalCandidatesFound = 11, // we've found our local IP info - k_ESNetSocketStateReceivedRemoteCandidates = 12,// we've received information from the remote machine, via the Steam back-end, about their IP info - - // direct connections - k_ESNetSocketStateChallengeHandshake = 15, // we've received a challenge packet from the server - - // failure states - k_ESNetSocketStateDisconnecting = 21, // the API shut it down, and we're in the process of telling the other end - k_ESNetSocketStateLocalDisconnect = 22, // the API shut it down, and we've completed shutdown - k_ESNetSocketStateTimeoutDuringConnect = 23, // we timed out while trying to creating the connection - k_ESNetSocketStateRemoteEndDisconnected = 24, // the remote end has disconnected from us - k_ESNetSocketStateConnectionBroken = 25, // connection has been broken; either the other end has disappeared or our local network connection has broke - - } - - // describes how the socket is currently connected - public enum ESNetSocketConnectionType : int { - k_ESNetSocketConnectionTypeNotConnected = 0, - k_ESNetSocketConnectionTypeUDP = 1, - k_ESNetSocketConnectionTypeUDPRelay = 2, - } - - // Ways to handle a synchronization conflict - public enum EResolveConflict : int { - k_EResolveConflictKeepClient = 1, // The local version of each file will be used to overwrite the server version - k_EResolveConflictKeepServer = 2, // The server version of each file will be used to overwrite the local version - } - - [Flags] - public enum ERemoteStoragePlatform : int { - k_ERemoteStoragePlatformNone = 0, - k_ERemoteStoragePlatformWindows = (1 << 0), - k_ERemoteStoragePlatformOSX = (1 << 1), - k_ERemoteStoragePlatformPS3 = (1 << 2), - k_ERemoteStoragePlatformLinux = (1 << 3), - k_ERemoteStoragePlatformReserved2 = (1 << 4), - - k_ERemoteStoragePlatformAll = -1 - } - - public enum ERemoteStoragePublishedFileVisibility : int { - k_ERemoteStoragePublishedFileVisibilityPublic = 0, - k_ERemoteStoragePublishedFileVisibilityFriendsOnly = 1, - k_ERemoteStoragePublishedFileVisibilityPrivate = 2, - } - - public enum EWorkshopFileType : int { - k_EWorkshopFileTypeFirst = 0, - - k_EWorkshopFileTypeCommunity = 0, // normal Workshop item that can be subscribed to - k_EWorkshopFileTypeMicrotransaction = 1, // Workshop item that is meant to be voted on for the purpose of selling in-game - k_EWorkshopFileTypeCollection = 2, // a collection of Workshop or Greenlight items - k_EWorkshopFileTypeArt = 3, // artwork - k_EWorkshopFileTypeVideo = 4, // external video - k_EWorkshopFileTypeScreenshot = 5, // screenshot - k_EWorkshopFileTypeGame = 6, // Greenlight game entry - k_EWorkshopFileTypeSoftware = 7, // Greenlight software entry - k_EWorkshopFileTypeConcept = 8, // Greenlight concept - k_EWorkshopFileTypeWebGuide = 9, // Steam web guide - k_EWorkshopFileTypeIntegratedGuide = 10, // application integrated guide - k_EWorkshopFileTypeMerch = 11, // Workshop merchandise meant to be voted on for the purpose of being sold - k_EWorkshopFileTypeControllerBinding = 12, // Steam Controller bindings - k_EWorkshopFileTypeSteamworksAccessInvite = 13, // internal - k_EWorkshopFileTypeSteamVideo = 14, // Steam video - k_EWorkshopFileTypeGameManagedItem = 15, // managed completely by the game, not the user, and not shown on the web - - // Update k_EWorkshopFileTypeMax if you add values. - k_EWorkshopFileTypeMax = 16 - - } - - public enum EWorkshopVote : int { - k_EWorkshopVoteUnvoted = 0, - k_EWorkshopVoteFor = 1, - k_EWorkshopVoteAgainst = 2, - k_EWorkshopVoteLater = 3, - } - - public enum EWorkshopFileAction : int { - k_EWorkshopFileActionPlayed = 0, - k_EWorkshopFileActionCompleted = 1, - } - - public enum EWorkshopEnumerationType : int { - k_EWorkshopEnumerationTypeRankedByVote = 0, - k_EWorkshopEnumerationTypeRecent = 1, - k_EWorkshopEnumerationTypeTrending = 2, - k_EWorkshopEnumerationTypeFavoritesOfFriends = 3, - k_EWorkshopEnumerationTypeVotedByFriends = 4, - k_EWorkshopEnumerationTypeContentByFriends = 5, - k_EWorkshopEnumerationTypeRecentFromFollowedUsers = 6, - } - - public enum EWorkshopVideoProvider : int { - k_EWorkshopVideoProviderNone = 0, - k_EWorkshopVideoProviderYoutube = 1 - } - - public enum EUGCReadAction : int { - // Keeps the file handle open unless the last byte is read. You can use this when reading large files (over 100MB) in sequential chunks. - // If the last byte is read, this will behave the same as k_EUGCRead_Close. Otherwise, it behaves the same as k_EUGCRead_ContinueReading. - // This value maintains the same behavior as before the EUGCReadAction parameter was introduced. - k_EUGCRead_ContinueReadingUntilFinished = 0, - - // Keeps the file handle open. Use this when using UGCRead to seek to different parts of the file. - // When you are done seeking around the file, make a final call with k_EUGCRead_Close to close it. - k_EUGCRead_ContinueReading = 1, - - // Frees the file handle. Use this when you're done reading the content. - // To read the file from Steam again you will need to call UGCDownload again. - k_EUGCRead_Close = 2, - } - - // Matching UGC types for queries - public enum EUGCMatchingUGCType : int { - k_EUGCMatchingUGCType_Items = 0, // both mtx items and ready-to-use items - k_EUGCMatchingUGCType_Items_Mtx = 1, - k_EUGCMatchingUGCType_Items_ReadyToUse = 2, - k_EUGCMatchingUGCType_Collections = 3, - k_EUGCMatchingUGCType_Artwork = 4, - k_EUGCMatchingUGCType_Videos = 5, - k_EUGCMatchingUGCType_Screenshots = 6, - k_EUGCMatchingUGCType_AllGuides = 7, // both web guides and integrated guides - k_EUGCMatchingUGCType_WebGuides = 8, - k_EUGCMatchingUGCType_IntegratedGuides = 9, - k_EUGCMatchingUGCType_UsableInGame = 10, // ready-to-use items and integrated guides - k_EUGCMatchingUGCType_ControllerBindings = 11, - k_EUGCMatchingUGCType_GameManagedItems = 12, // game managed items (not managed by users) - } - - // Different lists of published UGC for a user. - // If the current logged in user is different than the specified user, then some options may not be allowed. - public enum EUserUGCList : int { - k_EUserUGCList_Published, - k_EUserUGCList_VotedOn, - k_EUserUGCList_VotedUp, - k_EUserUGCList_VotedDown, - k_EUserUGCList_WillVoteLater, - k_EUserUGCList_Favorited, - k_EUserUGCList_Subscribed, - k_EUserUGCList_UsedOrPlayed, - k_EUserUGCList_Followed, - } - - // Sort order for user published UGC lists (defaults to creation order descending) - public enum EUserUGCListSortOrder : int { - k_EUserUGCListSortOrder_CreationOrderDesc, - k_EUserUGCListSortOrder_CreationOrderAsc, - k_EUserUGCListSortOrder_TitleAsc, - k_EUserUGCListSortOrder_LastUpdatedDesc, - k_EUserUGCListSortOrder_SubscriptionDateDesc, - k_EUserUGCListSortOrder_VoteScoreDesc, - k_EUserUGCListSortOrder_ForModeration, - } - - // Combination of sorting and filtering for queries across all UGC - public enum EUGCQuery : int { - k_EUGCQuery_RankedByVote = 0, - k_EUGCQuery_RankedByPublicationDate = 1, - k_EUGCQuery_AcceptedForGameRankedByAcceptanceDate = 2, - k_EUGCQuery_RankedByTrend = 3, - k_EUGCQuery_FavoritedByFriendsRankedByPublicationDate = 4, - k_EUGCQuery_CreatedByFriendsRankedByPublicationDate = 5, - k_EUGCQuery_RankedByNumTimesReported = 6, - k_EUGCQuery_CreatedByFollowedUsersRankedByPublicationDate = 7, - k_EUGCQuery_NotYetRated = 8, - k_EUGCQuery_RankedByTotalVotesAsc = 9, - k_EUGCQuery_RankedByVotesUp = 10, - k_EUGCQuery_RankedByTextSearch = 11, - k_EUGCQuery_RankedByTotalUniqueSubscriptions = 12, - } - - public enum EItemUpdateStatus : int { - k_EItemUpdateStatusInvalid = 0, // The item update handle was invalid, job might be finished, listen too SubmitItemUpdateResult_t - k_EItemUpdateStatusPreparingConfig = 1, // The item update is processing configuration data - k_EItemUpdateStatusPreparingContent = 2, // The item update is reading and processing content files - k_EItemUpdateStatusUploadingContent = 3, // The item update is uploading content changes to Steam - k_EItemUpdateStatusUploadingPreviewFile = 4, // The item update is uploading new preview file image - k_EItemUpdateStatusCommittingChanges = 5 // The item update is committing all changes - } - - [Flags] - public enum EItemState : int { - k_EItemStateNone = 0, // item not tracked on client - k_EItemStateSubscribed = 1, // current user is subscribed to this item. Not just cached. - k_EItemStateLegacyItem = 2, // item was created with ISteamRemoteStorage - k_EItemStateInstalled = 4, // item is installed and usable (but maybe out of date) - k_EItemStateNeedsUpdate = 8, // items needs an update. Either because it's not installed yet or creator updated content - k_EItemStateDownloading = 16, // item update is currently downloading - k_EItemStateDownloadPending = 32, // DownloadItem() was called for this item, content isn't available until DownloadItemResult_t is fired - } - - public enum EItemStatistic : int { - k_EItemStatistic_NumSubscriptions = 0, - k_EItemStatistic_NumFavorites = 1, - k_EItemStatistic_NumFollowers = 2, - k_EItemStatistic_NumUniqueSubscriptions = 3, - k_EItemStatistic_NumUniqueFavorites = 4, - k_EItemStatistic_NumUniqueFollowers = 5, - k_EItemStatistic_NumUniqueWebsiteViews = 6, - k_EItemStatistic_ReportScore = 7, - } - - public enum EFailureType : int { - k_EFailureFlushedCallbackQueue, - k_EFailurePipeFail, - } - - // type of data request, when downloading leaderboard entries - public enum ELeaderboardDataRequest : int { - k_ELeaderboardDataRequestGlobal = 0, - k_ELeaderboardDataRequestGlobalAroundUser = 1, - k_ELeaderboardDataRequestFriends = 2, - k_ELeaderboardDataRequestUsers = 3 - } - - // the sort order of a leaderboard - public enum ELeaderboardSortMethod : int { - k_ELeaderboardSortMethodNone = 0, - k_ELeaderboardSortMethodAscending = 1, // top-score is lowest number - k_ELeaderboardSortMethodDescending = 2, // top-score is highest number - } - - // the display type (used by the Steam Community web site) for a leaderboard - public enum ELeaderboardDisplayType : int { - k_ELeaderboardDisplayTypeNone = 0, - k_ELeaderboardDisplayTypeNumeric = 1, // simple numerical score - k_ELeaderboardDisplayTypeTimeSeconds = 2, // the score represents a time, in seconds - k_ELeaderboardDisplayTypeTimeMilliSeconds = 3, // the score represents a time, in milliseconds - } - - public enum ELeaderboardUploadScoreMethod : int { - k_ELeaderboardUploadScoreMethodNone = 0, - k_ELeaderboardUploadScoreMethodKeepBest = 1, // Leaderboard will keep user's best score - k_ELeaderboardUploadScoreMethodForceUpdate = 2, // Leaderboard will always replace score with specified - } - - // Steam API call failure results - public enum ESteamAPICallFailure : int { - k_ESteamAPICallFailureNone = -1, // no failure - k_ESteamAPICallFailureSteamGone = 0, // the local Steam process has gone away - k_ESteamAPICallFailureNetworkFailure = 1, // the network connection to Steam has been broken, or was already broken - // SteamServersDisconnected_t callback will be sent around the same time - // SteamServersConnected_t will be sent when the client is able to talk to the Steam servers again - k_ESteamAPICallFailureInvalidHandle = 2, // the SteamAPICall_t handle passed in no longer exists - k_ESteamAPICallFailureMismatchedCallback = 3,// GetAPICallResult() was called with the wrong callback type for this API call - } - - // Input modes for the Big Picture gamepad text entry - public enum EGamepadTextInputMode : int { - k_EGamepadTextInputModeNormal = 0, - k_EGamepadTextInputModePassword = 1 - } - - // Controls number of allowed lines for the Big Picture gamepad text entry - public enum EGamepadTextInputLineMode : int { - k_EGamepadTextInputLineModeSingleLine = 0, - k_EGamepadTextInputLineModeMultipleLines = 1 - } - - //----------------------------------------------------------------------------- - // results for CheckFileSignature - //----------------------------------------------------------------------------- - public enum ECheckFileSignature : int { - k_ECheckFileSignatureInvalidSignature = 0, - k_ECheckFileSignatureValidSignature = 1, - k_ECheckFileSignatureFileNotFound = 2, - k_ECheckFileSignatureNoSignaturesFoundForThisApp = 3, - k_ECheckFileSignatureNoSignaturesFoundForThisFile = 4, - } - - public enum EMatchMakingServerResponse : int { - eServerResponded = 0, - eServerFailedToRespond, - eNoServersListedOnMasterServer // for the Internet query type, returned in response callback if no servers of this type match - } - - public enum EServerMode : int { - eServerModeInvalid = 0, // DO NOT USE - eServerModeNoAuthentication = 1, // Don't authenticate user logins and don't list on the server list - eServerModeAuthentication = 2, // Authenticate users, list on the server list, don't run VAC on clients that connect - eServerModeAuthenticationAndSecure = 3, // Authenticate users, list on the server list and VAC protect clients - } - - // General result codes - public enum EResult : int { - k_EResultOK = 1, // success - k_EResultFail = 2, // generic failure - k_EResultNoConnection = 3, // no/failed network connection - // k_EResultNoConnectionRetry = 4, // OBSOLETE - removed - k_EResultInvalidPassword = 5, // password/ticket is invalid - k_EResultLoggedInElsewhere = 6, // same user logged in elsewhere - k_EResultInvalidProtocolVer = 7, // protocol version is incorrect - k_EResultInvalidParam = 8, // a parameter is incorrect - k_EResultFileNotFound = 9, // file was not found - k_EResultBusy = 10, // called method busy - action not taken - k_EResultInvalidState = 11, // called object was in an invalid state - k_EResultInvalidName = 12, // name is invalid - k_EResultInvalidEmail = 13, // email is invalid - k_EResultDuplicateName = 14, // name is not unique - k_EResultAccessDenied = 15, // access is denied - k_EResultTimeout = 16, // operation timed out - k_EResultBanned = 17, // VAC2 banned - k_EResultAccountNotFound = 18, // account not found - k_EResultInvalidSteamID = 19, // steamID is invalid - k_EResultServiceUnavailable = 20, // The requested service is currently unavailable - k_EResultNotLoggedOn = 21, // The user is not logged on - k_EResultPending = 22, // Request is pending (may be in process, or waiting on third party) - k_EResultEncryptionFailure = 23, // Encryption or Decryption failed - k_EResultInsufficientPrivilege = 24, // Insufficient privilege - k_EResultLimitExceeded = 25, // Too much of a good thing - k_EResultRevoked = 26, // Access has been revoked (used for revoked guest passes) - k_EResultExpired = 27, // License/Guest pass the user is trying to access is expired - k_EResultAlreadyRedeemed = 28, // Guest pass has already been redeemed by account, cannot be acked again - k_EResultDuplicateRequest = 29, // The request is a duplicate and the action has already occurred in the past, ignored this time - k_EResultAlreadyOwned = 30, // All the games in this guest pass redemption request are already owned by the user - k_EResultIPNotFound = 31, // IP address not found - k_EResultPersistFailed = 32, // failed to write change to the data store - k_EResultLockingFailed = 33, // failed to acquire access lock for this operation - k_EResultLogonSessionReplaced = 34, - k_EResultConnectFailed = 35, - k_EResultHandshakeFailed = 36, - k_EResultIOFailure = 37, - k_EResultRemoteDisconnect = 38, - k_EResultShoppingCartNotFound = 39, // failed to find the shopping cart requested - k_EResultBlocked = 40, // a user didn't allow it - k_EResultIgnored = 41, // target is ignoring sender - k_EResultNoMatch = 42, // nothing matching the request found - k_EResultAccountDisabled = 43, - k_EResultServiceReadOnly = 44, // this service is not accepting content changes right now - k_EResultAccountNotFeatured = 45, // account doesn't have value, so this feature isn't available - k_EResultAdministratorOK = 46, // allowed to take this action, but only because requester is admin - k_EResultContentVersion = 47, // A Version mismatch in content transmitted within the Steam protocol. - k_EResultTryAnotherCM = 48, // The current CM can't service the user making a request, user should try another. - k_EResultPasswordRequiredToKickSession = 49,// You are already logged in elsewhere, this cached credential login has failed. - k_EResultAlreadyLoggedInElsewhere = 50, // You are already logged in elsewhere, you must wait - k_EResultSuspended = 51, // Long running operation (content download) suspended/paused - k_EResultCancelled = 52, // Operation canceled (typically by user: content download) - k_EResultDataCorruption = 53, // Operation canceled because data is ill formed or unrecoverable - k_EResultDiskFull = 54, // Operation canceled - not enough disk space. - k_EResultRemoteCallFailed = 55, // an remote call or IPC call failed - k_EResultPasswordUnset = 56, // Password could not be verified as it's unset server side - k_EResultExternalAccountUnlinked = 57, // External account (PSN, Facebook...) is not linked to a Steam account - k_EResultPSNTicketInvalid = 58, // PSN ticket was invalid - k_EResultExternalAccountAlreadyLinked = 59, // External account (PSN, Facebook...) is already linked to some other account, must explicitly request to replace/delete the link first - k_EResultRemoteFileConflict = 60, // The sync cannot resume due to a conflict between the local and remote files - k_EResultIllegalPassword = 61, // The requested new password is not legal - k_EResultSameAsPreviousValue = 62, // new value is the same as the old one ( secret question and answer ) - k_EResultAccountLogonDenied = 63, // account login denied due to 2nd factor authentication failure - k_EResultCannotUseOldPassword = 64, // The requested new password is not legal - k_EResultInvalidLoginAuthCode = 65, // account login denied due to auth code invalid - k_EResultAccountLogonDeniedNoMail = 66, // account login denied due to 2nd factor auth failure - and no mail has been sent - k_EResultHardwareNotCapableOfIPT = 67, // - k_EResultIPTInitError = 68, // - k_EResultParentalControlRestricted = 69, // operation failed due to parental control restrictions for current user - k_EResultFacebookQueryError = 70, // Facebook query returned an error - k_EResultExpiredLoginAuthCode = 71, // account login denied due to auth code expired - k_EResultIPLoginRestrictionFailed = 72, - k_EResultAccountLockedDown = 73, - k_EResultAccountLogonDeniedVerifiedEmailRequired = 74, - k_EResultNoMatchingURL = 75, - k_EResultBadResponse = 76, // parse failure, missing field, etc. - k_EResultRequirePasswordReEntry = 77, // The user cannot complete the action until they re-enter their password - k_EResultValueOutOfRange = 78, // the value entered is outside the acceptable range - k_EResultUnexpectedError = 79, // something happened that we didn't expect to ever happen - k_EResultDisabled = 80, // The requested service has been configured to be unavailable - k_EResultInvalidCEGSubmission = 81, // The set of files submitted to the CEG server are not valid ! - k_EResultRestrictedDevice = 82, // The device being used is not allowed to perform this action - k_EResultRegionLocked = 83, // The action could not be complete because it is region restricted - k_EResultRateLimitExceeded = 84, // Temporary rate limit exceeded, try again later, different from k_EResultLimitExceeded which may be permanent - k_EResultAccountLoginDeniedNeedTwoFactor = 85, // Need two-factor code to login - k_EResultItemDeleted = 86, // The thing we're trying to access has been deleted - k_EResultAccountLoginDeniedThrottle = 87, // login attempt failed, try to throttle response to possible attacker - k_EResultTwoFactorCodeMismatch = 88, // two factor code mismatch - k_EResultTwoFactorActivationCodeMismatch = 89, // activation code for two-factor didn't match - k_EResultAccountAssociatedToMultiplePartners = 90, // account has been associated with multiple partners - k_EResultNotModified = 91, // data not modified - k_EResultNoMobileDevice = 92, // the account does not have a mobile device associated with it - k_EResultTimeNotSynced = 93, // the time presented is out of range or tolerance - k_EResultSmsCodeFailed = 94, // SMS code failure (no match, none pending, etc.) - k_EResultAccountLimitExceeded = 95, // Too many accounts access this resource - k_EResultAccountActivityLimitExceeded = 96, // Too many changes to this account - k_EResultPhoneActivityLimitExceeded = 97, // Too many changes to this phone - k_EResultRefundToWallet = 98, // Cannot refund to payment method, must use wallet - k_EResultEmailSendFailure = 99, // Cannot send an email - k_EResultNotSettled = 100, // Can't perform operation till payment has settled - } - - // Error codes for use with the voice functions - public enum EVoiceResult : int { - k_EVoiceResultOK = 0, - k_EVoiceResultNotInitialized = 1, - k_EVoiceResultNotRecording = 2, - k_EVoiceResultNoData = 3, - k_EVoiceResultBufferTooSmall = 4, - k_EVoiceResultDataCorrupted = 5, - k_EVoiceResultRestricted = 6, - k_EVoiceResultUnsupportedCodec = 7, - k_EVoiceResultReceiverOutOfDate = 8, - k_EVoiceResultReceiverDidNotAnswer = 9, - - } - - // Result codes to GSHandleClientDeny/Kick - public enum EDenyReason : int { - k_EDenyInvalid = 0, - k_EDenyInvalidVersion = 1, - k_EDenyGeneric = 2, - k_EDenyNotLoggedOn = 3, - k_EDenyNoLicense = 4, - k_EDenyCheater = 5, - k_EDenyLoggedInElseWhere = 6, - k_EDenyUnknownText = 7, - k_EDenyIncompatibleAnticheat = 8, - k_EDenyMemoryCorruption = 9, - k_EDenyIncompatibleSoftware = 10, - k_EDenySteamConnectionLost = 11, - k_EDenySteamConnectionError = 12, - k_EDenySteamResponseTimedOut = 13, - k_EDenySteamValidationStalled = 14, - k_EDenySteamOwnerLeftGuestUser = 15, - } - - // results from BeginAuthSession - public enum EBeginAuthSessionResult : int { - k_EBeginAuthSessionResultOK = 0, // Ticket is valid for this game and this steamID. - k_EBeginAuthSessionResultInvalidTicket = 1, // Ticket is not valid. - k_EBeginAuthSessionResultDuplicateRequest = 2, // A ticket has already been submitted for this steamID - k_EBeginAuthSessionResultInvalidVersion = 3, // Ticket is from an incompatible interface version - k_EBeginAuthSessionResultGameMismatch = 4, // Ticket is not for this game - k_EBeginAuthSessionResultExpiredTicket = 5, // Ticket has expired - } - - // Callback values for callback ValidateAuthTicketResponse_t which is a response to BeginAuthSession - public enum EAuthSessionResponse : int { - k_EAuthSessionResponseOK = 0, // Steam has verified the user is online, the ticket is valid and ticket has not been reused. - k_EAuthSessionResponseUserNotConnectedToSteam = 1, // The user in question is not connected to steam - k_EAuthSessionResponseNoLicenseOrExpired = 2, // The license has expired. - k_EAuthSessionResponseVACBanned = 3, // The user is VAC banned for this game. - k_EAuthSessionResponseLoggedInElseWhere = 4, // The user account has logged in elsewhere and the session containing the game instance has been disconnected. - k_EAuthSessionResponseVACCheckTimedOut = 5, // VAC has been unable to perform anti-cheat checks on this user - k_EAuthSessionResponseAuthTicketCanceled = 6, // The ticket has been canceled by the issuer - k_EAuthSessionResponseAuthTicketInvalidAlreadyUsed = 7, // This ticket has already been used, it is not valid. - k_EAuthSessionResponseAuthTicketInvalid = 8, // This ticket is not from a user instance currently connected to steam. - k_EAuthSessionResponsePublisherIssuedBan = 9, // The user is banned for this game. The ban came via the web api and not VAC - } - - // results from UserHasLicenseForApp - public enum EUserHasLicenseForAppResult : int { - k_EUserHasLicenseResultHasLicense = 0, // User has a license for specified app - k_EUserHasLicenseResultDoesNotHaveLicense = 1, // User does not have a license for the specified app - k_EUserHasLicenseResultNoAuth = 2, // User has not been authenticated - } - - // Steam account types - public enum EAccountType : int { - k_EAccountTypeInvalid = 0, - k_EAccountTypeIndividual = 1, // single user account - k_EAccountTypeMultiseat = 2, // multiseat (e.g. cybercafe) account - k_EAccountTypeGameServer = 3, // game server account - k_EAccountTypeAnonGameServer = 4, // anonymous game server account - k_EAccountTypePending = 5, // pending - k_EAccountTypeContentServer = 6, // content server - k_EAccountTypeClan = 7, - k_EAccountTypeChat = 8, - k_EAccountTypeConsoleUser = 9, // Fake SteamID for local PSN account on PS3 or Live account on 360, etc. - k_EAccountTypeAnonUser = 10, - - // Max of 16 items in this field - k_EAccountTypeMax - } - - //----------------------------------------------------------------------------- - // Purpose: - //----------------------------------------------------------------------------- - public enum EAppReleaseState : int { - k_EAppReleaseState_Unknown = 0, // unknown, required appinfo or license info is missing - k_EAppReleaseState_Unavailable = 1, // even if user 'just' owns it, can see game at all - k_EAppReleaseState_Prerelease = 2, // can be purchased and is visible in games list, nothing else. Common appInfo section released - k_EAppReleaseState_PreloadOnly = 3, // owners can preload app, not play it. AppInfo fully released. - k_EAppReleaseState_Released = 4, // owners can download and play app. - } - - //----------------------------------------------------------------------------- - // Purpose: - //----------------------------------------------------------------------------- - [Flags] - public enum EAppOwnershipFlags : int { - k_EAppOwnershipFlags_None = 0x0000, // unknown - k_EAppOwnershipFlags_OwnsLicense = 0x0001, // owns license for this game - k_EAppOwnershipFlags_FreeLicense = 0x0002, // not paid for game - k_EAppOwnershipFlags_RegionRestricted = 0x0004, // owns app, but not allowed to play in current region - k_EAppOwnershipFlags_LowViolence = 0x0008, // only low violence version - k_EAppOwnershipFlags_InvalidPlatform = 0x0010, // app not supported on current platform - k_EAppOwnershipFlags_SharedLicense = 0x0020, // license was granted by authorized local device - k_EAppOwnershipFlags_FreeWeekend = 0x0040, // owned by a free weekend licenses - k_EAppOwnershipFlags_RetailLicense = 0x0080, // has a retail license for game, (CD-Key etc) - k_EAppOwnershipFlags_LicenseLocked = 0x0100, // shared license is locked (in use) by other user - k_EAppOwnershipFlags_LicensePending = 0x0200, // owns app, but transaction is still pending. Can't install or play - k_EAppOwnershipFlags_LicenseExpired = 0x0400, // doesn't own app anymore since license expired - k_EAppOwnershipFlags_LicensePermanent = 0x0800, // permanent license, not borrowed, or guest or freeweekend etc - k_EAppOwnershipFlags_LicenseRecurring = 0x1000, // Recurring license, user is charged periodically - k_EAppOwnershipFlags_LicenseCanceled = 0x2000, // Mark as canceled, but might be still active if recurring - k_EAppOwnershipFlags_AutoGrant = 0x4000, // Ownership is based on any kind of autogrant license - } - - //----------------------------------------------------------------------------- - // Purpose: designed as flags to allow filters masks - //----------------------------------------------------------------------------- - [Flags] - public enum EAppType : int { - k_EAppType_Invalid = 0x000, // unknown / invalid - k_EAppType_Game = 0x001, // playable game, default type - k_EAppType_Application = 0x002, // software application - k_EAppType_Tool = 0x004, // SDKs, editors & dedicated servers - k_EAppType_Demo = 0x008, // game demo - k_EAppType_Media_DEPRECATED = 0x010, // legacy - was used for game trailers, which are now just videos on the web - k_EAppType_DLC = 0x020, // down loadable content - k_EAppType_Guide = 0x040, // game guide, PDF etc - k_EAppType_Driver = 0x080, // hardware driver updater (ATI, Razor etc) - k_EAppType_Config = 0x100, // hidden app used to config Steam features (backpack, sales, etc) - k_EAppType_Hardware = 0x200, // a hardware device (Steam Machine, Steam Controller, Steam Link, etc.) - // 0x400 is up for grabs here - k_EAppType_Video = 0x800, // A video component of either a Film or TVSeries (may be the feature, an episode, preview, making-of, etc) - k_EAppType_Plugin = 0x1000, // Plug-in types for other Apps - k_EAppType_Music = 0x2000, // Music files - - k_EAppType_Shortcut = 0x40000000, // just a shortcut, client side only - k_EAppType_DepotOnly = -2147483647, // placeholder since depots and apps share the same namespace - } - - //----------------------------------------------------------------------------- - // types of user game stats fields - // WARNING: DO NOT RENUMBER EXISTING VALUES - STORED IN DATABASE - //----------------------------------------------------------------------------- - public enum ESteamUserStatType : int { - k_ESteamUserStatTypeINVALID = 0, - k_ESteamUserStatTypeINT = 1, - k_ESteamUserStatTypeFLOAT = 2, - // Read as FLOAT, set with count / session length - k_ESteamUserStatTypeAVGRATE = 3, - k_ESteamUserStatTypeACHIEVEMENTS = 4, - k_ESteamUserStatTypeGROUPACHIEVEMENTS = 5, - - // max, for sanity checks - k_ESteamUserStatTypeMAX - } - - //----------------------------------------------------------------------------- - // Purpose: Chat Entry Types (previously was only friend-to-friend message types) - //----------------------------------------------------------------------------- - public enum EChatEntryType : int { - k_EChatEntryTypeInvalid = 0, - k_EChatEntryTypeChatMsg = 1, // Normal text message from another user - k_EChatEntryTypeTyping = 2, // Another user is typing (not used in multi-user chat) - k_EChatEntryTypeInviteGame = 3, // Invite from other user into that users current game - k_EChatEntryTypeEmote = 4, // text emote message (deprecated, should be treated as ChatMsg) - //k_EChatEntryTypeLobbyGameStart = 5, // lobby game is starting (dead - listen for LobbyGameCreated_t callback instead) - k_EChatEntryTypeLeftConversation = 6, // user has left the conversation ( closed chat window ) - // Above are previous FriendMsgType entries, now merged into more generic chat entry types - k_EChatEntryTypeEntered = 7, // user has entered the conversation (used in multi-user chat and group chat) - k_EChatEntryTypeWasKicked = 8, // user was kicked (data: 64-bit steamid of actor performing the kick) - k_EChatEntryTypeWasBanned = 9, // user was banned (data: 64-bit steamid of actor performing the ban) - k_EChatEntryTypeDisconnected = 10, // user disconnected - k_EChatEntryTypeHistoricalChat = 11, // a chat message from user's chat history or offilne message - k_EChatEntryTypeReserved1 = 12, - k_EChatEntryTypeReserved2 = 13, - k_EChatEntryTypeLinkBlocked = 14, // a link was removed by the chat filter. - } - - //----------------------------------------------------------------------------- - // Purpose: Chat Room Enter Responses - //----------------------------------------------------------------------------- - public enum EChatRoomEnterResponse : int { - k_EChatRoomEnterResponseSuccess = 1, // Success - k_EChatRoomEnterResponseDoesntExist = 2, // Chat doesn't exist (probably closed) - k_EChatRoomEnterResponseNotAllowed = 3, // General Denied - You don't have the permissions needed to join the chat - k_EChatRoomEnterResponseFull = 4, // Chat room has reached its maximum size - k_EChatRoomEnterResponseError = 5, // Unexpected Error - k_EChatRoomEnterResponseBanned = 6, // You are banned from this chat room and may not join - k_EChatRoomEnterResponseLimited = 7, // Joining this chat is not allowed because you are a limited user (no value on account) - k_EChatRoomEnterResponseClanDisabled = 8, // Attempt to join a clan chat when the clan is locked or disabled - k_EChatRoomEnterResponseCommunityBan = 9, // Attempt to join a chat when the user has a community lock on their account - k_EChatRoomEnterResponseMemberBlockedYou = 10, // Join failed - some member in the chat has blocked you from joining - k_EChatRoomEnterResponseYouBlockedMember = 11, // Join failed - you have blocked some member already in the chat - // k_EChatRoomEnterResponseNoRankingDataLobby = 12, // No longer used - // k_EChatRoomEnterResponseNoRankingDataUser = 13, // No longer used - // k_EChatRoomEnterResponseRankOutOfRange = 14, // No longer used - } - - // Special flags for Chat accounts - they go in the top 8 bits - // of the steam ID's "instance", leaving 12 for the actual instances - [Flags] - public enum EChatSteamIDInstanceFlags : int { - k_EChatAccountInstanceMask = 0x00000FFF, // top 8 bits are flags - - k_EChatInstanceFlagClan = ( Constants.k_unSteamAccountInstanceMask + 1 ) >> 1, // top bit - k_EChatInstanceFlagLobby = ( Constants.k_unSteamAccountInstanceMask + 1 ) >> 2, // next one down, etc - k_EChatInstanceFlagMMSLobby = ( Constants.k_unSteamAccountInstanceMask + 1 ) >> 3, // next one down, etc - - // Max of 8 flags - } - - //----------------------------------------------------------------------------- - // Purpose: Marketing message flags that change how a client should handle them - //----------------------------------------------------------------------------- - [Flags] - public enum EMarketingMessageFlags : int { - k_EMarketingMessageFlagsNone = 0, - k_EMarketingMessageFlagsHighPriority = 1 << 0, - k_EMarketingMessageFlagsPlatformWindows = 1 << 1, - k_EMarketingMessageFlagsPlatformMac = 1 << 2, - k_EMarketingMessageFlagsPlatformLinux = 1 << 3, - - //aggregate flags - k_EMarketingMessageFlagsPlatformRestrictions = - k_EMarketingMessageFlagsPlatformWindows | - k_EMarketingMessageFlagsPlatformMac | - k_EMarketingMessageFlagsPlatformLinux, - } - - //----------------------------------------------------------------------------- - // Purpose: Possible positions to tell the overlay to show notifications in - //----------------------------------------------------------------------------- - public enum ENotificationPosition : int { - k_EPositionTopLeft = 0, - k_EPositionTopRight = 1, - k_EPositionBottomLeft = 2, - k_EPositionBottomRight = 3, - } - - //----------------------------------------------------------------------------- - // Purpose: Broadcast upload result details - //----------------------------------------------------------------------------- - public enum EBroadcastUploadResult : int { - k_EBroadcastUploadResultNone = 0, // broadcast state unknown - k_EBroadcastUploadResultOK = 1, // broadcast was good, no problems - k_EBroadcastUploadResultInitFailed = 2, // broadcast init failed - k_EBroadcastUploadResultFrameFailed = 3, // broadcast frame upload failed - k_EBroadcastUploadResultTimeout = 4, // broadcast upload timed out - k_EBroadcastUploadResultBandwidthExceeded = 5, // broadcast send too much data - k_EBroadcastUploadResultLowFPS = 6, // broadcast FPS too low - k_EBroadcastUploadResultMissingKeyFrames = 7, // broadcast sending not enough key frames - k_EBroadcastUploadResultNoConnection = 8, // broadcast client failed to connect to relay - k_EBroadcastUploadResultRelayFailed = 9, // relay dropped the upload - k_EBroadcastUploadResultSettingsChanged = 10, // the client changed broadcast settings - k_EBroadcastUploadResultMissingAudio = 11, // client failed to send audio data - k_EBroadcastUploadResultTooFarBehind = 12, // clients was too slow uploading - } - - // HTTP related types - // This enum is used in client API methods, do not re-number existing values. - public enum EHTTPMethod : int { - k_EHTTPMethodInvalid = 0, - k_EHTTPMethodGET, - k_EHTTPMethodHEAD, - k_EHTTPMethodPOST, - k_EHTTPMethodPUT, - k_EHTTPMethodDELETE, - k_EHTTPMethodOPTIONS, - - // The remaining HTTP methods are not yet supported, per rfc2616 section 5.1.1 only GET and HEAD are required for - // a compliant general purpose server. We'll likely add more as we find uses for them. - - // k_EHTTPMethodTRACE, - // k_EHTTPMethodCONNECT - } - - // HTTP Status codes that the server can send in response to a request, see rfc2616 section 10.3 for descriptions - // of each of these. - public enum EHTTPStatusCode : int { - // Invalid status code (this isn't defined in HTTP, used to indicate unset in our code) - k_EHTTPStatusCodeInvalid = 0, - - // Informational codes - k_EHTTPStatusCode100Continue = 100, - k_EHTTPStatusCode101SwitchingProtocols = 101, - - // Success codes - k_EHTTPStatusCode200OK = 200, - k_EHTTPStatusCode201Created = 201, - k_EHTTPStatusCode202Accepted = 202, - k_EHTTPStatusCode203NonAuthoritative = 203, - k_EHTTPStatusCode204NoContent = 204, - k_EHTTPStatusCode205ResetContent = 205, - k_EHTTPStatusCode206PartialContent = 206, - - // Redirection codes - k_EHTTPStatusCode300MultipleChoices = 300, - k_EHTTPStatusCode301MovedPermanently = 301, - k_EHTTPStatusCode302Found = 302, - k_EHTTPStatusCode303SeeOther = 303, - k_EHTTPStatusCode304NotModified = 304, - k_EHTTPStatusCode305UseProxy = 305, - //k_EHTTPStatusCode306Unused = 306, (used in old HTTP spec, now unused in 1.1) - k_EHTTPStatusCode307TemporaryRedirect = 307, - - // Error codes - k_EHTTPStatusCode400BadRequest = 400, - k_EHTTPStatusCode401Unauthorized = 401, // You probably want 403 or something else. 401 implies you're sending a WWW-Authenticate header and the client can sent an Authorization header in response. - k_EHTTPStatusCode402PaymentRequired = 402, // This is reserved for future HTTP specs, not really supported by clients - k_EHTTPStatusCode403Forbidden = 403, - k_EHTTPStatusCode404NotFound = 404, - k_EHTTPStatusCode405MethodNotAllowed = 405, - k_EHTTPStatusCode406NotAcceptable = 406, - k_EHTTPStatusCode407ProxyAuthRequired = 407, - k_EHTTPStatusCode408RequestTimeout = 408, - k_EHTTPStatusCode409Conflict = 409, - k_EHTTPStatusCode410Gone = 410, - k_EHTTPStatusCode411LengthRequired = 411, - k_EHTTPStatusCode412PreconditionFailed = 412, - k_EHTTPStatusCode413RequestEntityTooLarge = 413, - k_EHTTPStatusCode414RequestURITooLong = 414, - k_EHTTPStatusCode415UnsupportedMediaType = 415, - k_EHTTPStatusCode416RequestedRangeNotSatisfiable = 416, - k_EHTTPStatusCode417ExpectationFailed = 417, - k_EHTTPStatusCode4xxUnknown = 418, // 418 is reserved, so we'll use it to mean unknown - k_EHTTPStatusCode429TooManyRequests = 429, - - // Server error codes - k_EHTTPStatusCode500InternalServerError = 500, - k_EHTTPStatusCode501NotImplemented = 501, - k_EHTTPStatusCode502BadGateway = 502, - k_EHTTPStatusCode503ServiceUnavailable = 503, - k_EHTTPStatusCode504GatewayTimeout = 504, - k_EHTTPStatusCode505HTTPVersionNotSupported = 505, - k_EHTTPStatusCode5xxUnknown = 599, - } - - // Steam universes. Each universe is a self-contained Steam instance. - public enum EUniverse : int { - k_EUniverseInvalid = 0, - k_EUniversePublic = 1, - k_EUniverseBeta = 2, - k_EUniverseInternal = 3, - k_EUniverseDev = 4, - // k_EUniverseRC = 5, // no such universe anymore - k_EUniverseMax - } - -} diff --git a/Assets/Plugins/Steamworks.NET/autogen/SteamEnums.cs.meta b/Assets/Plugins/Steamworks.NET/autogen/SteamEnums.cs.meta deleted file mode 100644 index 5417d1a..0000000 --- a/Assets/Plugins/Steamworks.NET/autogen/SteamEnums.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: d358cb24c7839d24eb92f19e5ebe83da -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/Plugins/Steamworks.NET/autogen/SteamStructs.cs b/Assets/Plugins/Steamworks.NET/autogen/SteamStructs.cs deleted file mode 100644 index 4babad8..0000000 --- a/Assets/Plugins/Steamworks.NET/autogen/SteamStructs.cs +++ /dev/null @@ -1,159 +0,0 @@ -// This file is provided under The MIT License as part of Steamworks.NET. -// Copyright (c) 2013-2015 Riley Labrecque -// Please see the included LICENSE.txt for additional information. - -// This file is automatically generated. -// Changes to this file will be reverted when you update Steamworks.NET - -using System; -using System.Runtime.InteropServices; - -namespace Steamworks { - [StructLayout(LayoutKind.Sequential, Pack = 1)] - public struct SteamControllerState_t { - // If packet num matches that on your prior call, then the controller state hasn't been changed since - // your last call and there is no need to process it - public uint unPacketNum; - - // bit flags for each of the buttons - public ulong ulButtons; - - // Left pad coordinates - public short sLeftPadX; - public short sLeftPadY; - - // Right pad coordinates - public short sRightPadX; - public short sRightPadY; - - } - - // friend game played information - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - public struct FriendGameInfo_t { - public CGameID m_gameID; - public uint m_unGameIP; - public ushort m_usGamePort; - public ushort m_usQueryPort; - public CSteamID m_steamIDLobby; - } - - //----------------------------------------------------------------------------- - // Purpose: information about user sessions - //----------------------------------------------------------------------------- - public struct FriendSessionStateInfo_t { - public uint m_uiOnlineSessionInstances; - public byte m_uiPublishedToFriendsSessionInstance; - } - - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - public struct SteamItemDetails_t { - public SteamItemInstanceID_t m_itemId; - public SteamItemDef_t m_iDefinition; - public ushort m_unQuantity; - public ushort m_unFlags; // see ESteamItemFlags - } - - // connection state to a specified user, returned by GetP2PSessionState() - // this is under-the-hood info about what's going on with a SendP2PPacket(), shouldn't be needed except for debuggin - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - public struct P2PSessionState_t { - public byte m_bConnectionActive; // true if we've got an active open connection - public byte m_bConnecting; // true if we're currently trying to establish a connection - public byte m_eP2PSessionError; // last error recorded (see enum above) - public byte m_bUsingRelay; // true if it's going through a relay server (TURN) - public int m_nBytesQueuedForSend; - public int m_nPacketsQueuedForSend; - public uint m_nRemoteIP; // potential IP:Port of remote host. Could be TURN server. - public ushort m_nRemotePort; // Only exists for compatibility with older authentication api's - } - - //----------------------------------------------------------------------------- - // Purpose: Structure that contains an array of const char * strings and the number of those strings - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - public struct SteamParamStringArray_t { - public IntPtr m_ppStrings; - public int m_nNumStrings; - } - - // Details for a single published file/UGC - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - public struct SteamUGCDetails_t { - public PublishedFileId_t m_nPublishedFileId; - public EResult m_eResult; // The result of the operation. - public EWorkshopFileType m_eFileType; // Type of the file - public AppId_t m_nCreatorAppID; // ID of the app that created this file. - public AppId_t m_nConsumerAppID; // ID of the app that will consume this file. - [MarshalAs(UnmanagedType.ByValTStr, SizeConst = Constants.k_cchPublishedDocumentTitleMax)] - public string m_rgchTitle; // title of document - [MarshalAs(UnmanagedType.ByValTStr, SizeConst = Constants.k_cchPublishedDocumentDescriptionMax)] - public string m_rgchDescription; // description of document - public ulong m_ulSteamIDOwner; // Steam ID of the user who created this content. - public uint m_rtimeCreated; // time when the published file was created - public uint m_rtimeUpdated; // time when the published file was last updated - public uint m_rtimeAddedToUserList; // time when the user added the published file to their list (not always applicable) - public ERemoteStoragePublishedFileVisibility m_eVisibility; // visibility - [MarshalAs(UnmanagedType.I1)] - public bool m_bBanned; // whether the file was banned - [MarshalAs(UnmanagedType.I1)] - public bool m_bAcceptedForUse; // developer has specifically flagged this item as accepted in the Workshop - [MarshalAs(UnmanagedType.I1)] - public bool m_bTagsTruncated; // whether the list of tags was too long to be returned in the provided buffer - [MarshalAs(UnmanagedType.ByValTStr, SizeConst = Constants.k_cchTagListMax)] - public string m_rgchTags; // comma separated list of all tags associated with this file - // file/url information - public UGCHandle_t m_hFile; // The handle of the primary file - public UGCHandle_t m_hPreviewFile; // The handle of the preview file - [MarshalAs(UnmanagedType.ByValTStr, SizeConst = Constants.k_cchFilenameMax)] - public string m_pchFileName; // The cloud filename of the primary file - public int m_nFileSize; // Size of the primary file - public int m_nPreviewFileSize; // Size of the preview file - [MarshalAs(UnmanagedType.ByValTStr, SizeConst = Constants.k_cchPublishedFileURLMax)] - public string m_rgchURL; // URL (for a video or a website) - // voting information - public uint m_unVotesUp; // number of votes up - public uint m_unVotesDown; // number of votes down - public float m_flScore; // calculated score - // collection details - public uint m_unNumChildren; - } - - // structure that contains client callback data - // see callbacks documentation for more details - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - public struct CallbackMsg_t { - public int m_hSteamUser; - public int m_iCallback; - public IntPtr m_pubParam; - public int m_cubParam; - } - - // a single entry in a leaderboard, as returned by GetDownloadedLeaderboardEntry() - [StructLayout(LayoutKind.Sequential, Pack = Packsize.value)] - public struct LeaderboardEntry_t { - public CSteamID m_steamIDUser; // user with the entry - use SteamFriends()->GetFriendPersonaName() & SteamFriends()->GetFriendAvatar() to get more info - public int m_nGlobalRank; // [1..N], where N is the number of users with an entry in the leaderboard - public int m_nScore; // score as set in the leaderboard - public int m_cDetails; // number of int32 details available for this entry - public UGCHandle_t m_hUGC; // handle for UGC attached to the entry - } - - /// Store key/value pair used in matchmaking queries. - /// - /// Actually, the name Key/Value is a bit misleading. The "key" is better - /// understood as "filter operation code" and the "value" is the operand to this - /// filter operation. The meaning of the operand depends upon the filter. - [StructLayout(LayoutKind.Sequential)] - public struct MatchMakingKeyValuePair_t { - MatchMakingKeyValuePair_t(string strKey, string strValue) { - m_szKey = strKey; - m_szValue = strValue; - } - [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 256)] - public string m_szKey; - [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 256)] - public string m_szValue; - } - -} diff --git a/Assets/Plugins/Steamworks.NET/autogen/SteamStructs.cs.meta b/Assets/Plugins/Steamworks.NET/autogen/SteamStructs.cs.meta deleted file mode 100644 index 897113f..0000000 --- a/Assets/Plugins/Steamworks.NET/autogen/SteamStructs.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 444219f60dc8b8e49ad10abe3c7f0f4e -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/Plugins/Steamworks.NET/autogen/isteamapplist.cs b/Assets/Plugins/Steamworks.NET/autogen/isteamapplist.cs deleted file mode 100644 index a9a8abe..0000000 --- a/Assets/Plugins/Steamworks.NET/autogen/isteamapplist.cs +++ /dev/null @@ -1,55 +0,0 @@ -// This file is provided under The MIT License as part of Steamworks.NET. -// Copyright (c) 2013-2015 Riley Labrecque -// Please see the included LICENSE.txt for additional information. - -// This file is automatically generated. -// Changes to this file will be reverted when you update Steamworks.NET - -using System; -using System.Runtime.InteropServices; - -namespace Steamworks { - public static class SteamAppList { - public static uint GetNumInstalledApps() { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamAppList_GetNumInstalledApps(); - } - - public static uint GetInstalledApps(AppId_t[] pvecAppID, uint unMaxAppIDs) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamAppList_GetInstalledApps(pvecAppID, unMaxAppIDs); - } - - /// - /// returns -1 if no name was found - /// - public static int GetAppName(AppId_t nAppID, out string pchName, int cchNameMax) { - InteropHelp.TestIfAvailableClient(); - IntPtr pchName2 = Marshal.AllocHGlobal(cchNameMax); - int ret = NativeMethods.ISteamAppList_GetAppName(nAppID, pchName2, cchNameMax); - pchName = ret != -1 ? InteropHelp.PtrToStringUTF8(pchName2) : null; - Marshal.FreeHGlobal(pchName2); - return ret; - } - - /// - /// returns -1 if no dir was found - /// - public static int GetAppInstallDir(AppId_t nAppID, out string pchDirectory, int cchNameMax) { - InteropHelp.TestIfAvailableClient(); - IntPtr pchDirectory2 = Marshal.AllocHGlobal(cchNameMax); - int ret = NativeMethods.ISteamAppList_GetAppInstallDir(nAppID, pchDirectory2, cchNameMax); - pchDirectory = ret != -1 ? InteropHelp.PtrToStringUTF8(pchDirectory2) : null; - Marshal.FreeHGlobal(pchDirectory2); - return ret; - } - - /// - /// return the buildid of this app, may change at any time based on backend updates to the game - /// - public static int GetAppBuildId(AppId_t nAppID) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamAppList_GetAppBuildId(nAppID); - } - } -} \ No newline at end of file diff --git a/Assets/Plugins/Steamworks.NET/autogen/isteamapplist.cs.meta b/Assets/Plugins/Steamworks.NET/autogen/isteamapplist.cs.meta deleted file mode 100644 index 3100421..0000000 --- a/Assets/Plugins/Steamworks.NET/autogen/isteamapplist.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 58db1b59dabddf8428aecd47afa4b0e7 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/Plugins/Steamworks.NET/autogen/isteamapps.cs b/Assets/Plugins/Steamworks.NET/autogen/isteamapps.cs deleted file mode 100644 index f3a1371..0000000 --- a/Assets/Plugins/Steamworks.NET/autogen/isteamapps.cs +++ /dev/null @@ -1,218 +0,0 @@ -// This file is provided under The MIT License as part of Steamworks.NET. -// Copyright (c) 2013-2015 Riley Labrecque -// Please see the included LICENSE.txt for additional information. - -// This file is automatically generated. -// Changes to this file will be reverted when you update Steamworks.NET - -using System; -using System.Runtime.InteropServices; - -namespace Steamworks { - public static class SteamApps { - public static bool BIsSubscribed() { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamApps_BIsSubscribed(); - } - - public static bool BIsLowViolence() { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamApps_BIsLowViolence(); - } - - public static bool BIsCybercafe() { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamApps_BIsCybercafe(); - } - - public static bool BIsVACBanned() { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamApps_BIsVACBanned(); - } - - public static string GetCurrentGameLanguage() { - InteropHelp.TestIfAvailableClient(); - return InteropHelp.PtrToStringUTF8(NativeMethods.ISteamApps_GetCurrentGameLanguage()); - } - - public static string GetAvailableGameLanguages() { - InteropHelp.TestIfAvailableClient(); - return InteropHelp.PtrToStringUTF8(NativeMethods.ISteamApps_GetAvailableGameLanguages()); - } - - /// - /// only use this member if you need to check ownership of another game related to yours, a demo for example - /// - public static bool BIsSubscribedApp(AppId_t appID) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamApps_BIsSubscribedApp(appID); - } - - /// - /// Takes AppID of DLC and checks if the user owns the DLC & if the DLC is installed - /// - public static bool BIsDlcInstalled(AppId_t appID) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamApps_BIsDlcInstalled(appID); - } - - /// - /// returns the Unix time of the purchase of the app - /// - public static uint GetEarliestPurchaseUnixTime(AppId_t nAppID) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamApps_GetEarliestPurchaseUnixTime(nAppID); - } - - /// - /// Checks if the user is subscribed to the current app through a free weekend - /// This function will return false for users who have a retail or other type of license - /// Before using, please ask your Valve technical contact how to package and secure your free weekened - /// - public static bool BIsSubscribedFromFreeWeekend() { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamApps_BIsSubscribedFromFreeWeekend(); - } - - /// - /// Returns the number of DLC pieces for the running app - /// - public static int GetDLCCount() { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamApps_GetDLCCount(); - } - - /// - /// Returns metadata for DLC by index, of range [0, GetDLCCount()] - /// - public static bool BGetDLCDataByIndex(int iDLC, out AppId_t pAppID, out bool pbAvailable, out string pchName, int cchNameBufferSize) { - InteropHelp.TestIfAvailableClient(); - IntPtr pchName2 = Marshal.AllocHGlobal(cchNameBufferSize); - bool ret = NativeMethods.ISteamApps_BGetDLCDataByIndex(iDLC, out pAppID, out pbAvailable, pchName2, cchNameBufferSize); - pchName = ret ? InteropHelp.PtrToStringUTF8(pchName2) : null; - Marshal.FreeHGlobal(pchName2); - return ret; - } - - /// - /// Install/Uninstall control for optional DLC - /// - public static void InstallDLC(AppId_t nAppID) { - InteropHelp.TestIfAvailableClient(); - NativeMethods.ISteamApps_InstallDLC(nAppID); - } - - public static void UninstallDLC(AppId_t nAppID) { - InteropHelp.TestIfAvailableClient(); - NativeMethods.ISteamApps_UninstallDLC(nAppID); - } - - /// - /// Request cd-key for yourself or owned DLC. If you are interested in this - /// data then make sure you provide us with a list of valid keys to be distributed - /// to users when they purchase the game, before the game ships. - /// You'll receive an AppProofOfPurchaseKeyResponse_t callback when - /// the key is available (which may be immediately). - /// - public static void RequestAppProofOfPurchaseKey(AppId_t nAppID) { - InteropHelp.TestIfAvailableClient(); - NativeMethods.ISteamApps_RequestAppProofOfPurchaseKey(nAppID); - } - - /// - /// returns current beta branch name, 'public' is the default branch - /// - public static bool GetCurrentBetaName(out string pchName, int cchNameBufferSize) { - InteropHelp.TestIfAvailableClient(); - IntPtr pchName2 = Marshal.AllocHGlobal(cchNameBufferSize); - bool ret = NativeMethods.ISteamApps_GetCurrentBetaName(pchName2, cchNameBufferSize); - pchName = ret ? InteropHelp.PtrToStringUTF8(pchName2) : null; - Marshal.FreeHGlobal(pchName2); - return ret; - } - - /// - /// signal Steam that game files seems corrupt or missing - /// - public static bool MarkContentCorrupt(bool bMissingFilesOnly) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamApps_MarkContentCorrupt(bMissingFilesOnly); - } - - /// - /// return installed depots in mount order - /// - public static uint GetInstalledDepots(AppId_t appID, DepotId_t[] pvecDepots, uint cMaxDepots) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamApps_GetInstalledDepots(appID, pvecDepots, cMaxDepots); - } - - /// - /// returns current app install folder for AppID, returns folder name length - /// - public static uint GetAppInstallDir(AppId_t appID, out string pchFolder, uint cchFolderBufferSize) { - InteropHelp.TestIfAvailableClient(); - IntPtr pchFolder2 = Marshal.AllocHGlobal((int)cchFolderBufferSize); - uint ret = NativeMethods.ISteamApps_GetAppInstallDir(appID, pchFolder2, cchFolderBufferSize); - pchFolder = ret != 0 ? InteropHelp.PtrToStringUTF8(pchFolder2) : null; - Marshal.FreeHGlobal(pchFolder2); - return ret; - } - - /// - /// returns true if that app is installed (not necessarily owned) - /// - public static bool BIsAppInstalled(AppId_t appID) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamApps_BIsAppInstalled(appID); - } - - /// - /// returns the SteamID of the original owner. If different from current user, it's borrowed - /// - public static CSteamID GetAppOwner() { - InteropHelp.TestIfAvailableClient(); - return (CSteamID)NativeMethods.ISteamApps_GetAppOwner(); - } - - /// - /// Returns the associated launch param if the game is run via steam://run/<appid>//?param1=value1;param2=value2;param3=value3 etc. - /// Parameter names starting with the character '@' are reserved for internal use and will always return and empty string. - /// Parameter names starting with an underscore '_' are reserved for steam features -- they can be queried by the game, - /// but it is advised that you not param names beginning with an underscore for your own features. - /// - public static string GetLaunchQueryParam(string pchKey) { - InteropHelp.TestIfAvailableClient(); - using (var pchKey2 = new InteropHelp.UTF8StringHandle(pchKey)) { - return InteropHelp.PtrToStringUTF8(NativeMethods.ISteamApps_GetLaunchQueryParam(pchKey2)); - } - } - - /// - /// get download progress for optional DLC - /// - public static bool GetDlcDownloadProgress(AppId_t nAppID, out ulong punBytesDownloaded, out ulong punBytesTotal) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamApps_GetDlcDownloadProgress(nAppID, out punBytesDownloaded, out punBytesTotal); - } - - /// - /// return the buildid of this app, may change at any time based on backend updates to the game - /// - public static int GetAppBuildId() { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamApps_GetAppBuildId(); - } -#if _PS3 - /// - /// Result returned in a RegisterActivationCodeResponse_t callresult - /// - public static SteamAPICall_t RegisterActivationCode(string pchActivationCode) { - InteropHelp.TestIfAvailableClient(); - using (var pchActivationCode2 = new InteropHelp.UTF8StringHandle(pchActivationCode)) { - return (SteamAPICall_t)NativeMethods.ISteamApps_RegisterActivationCode(pchActivationCode2); - } - } -#endif - } -} \ No newline at end of file diff --git a/Assets/Plugins/Steamworks.NET/autogen/isteamapps.cs.meta b/Assets/Plugins/Steamworks.NET/autogen/isteamapps.cs.meta deleted file mode 100644 index 1f0fd9b..0000000 --- a/Assets/Plugins/Steamworks.NET/autogen/isteamapps.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: eaed8001c02299e44a461eb704bd8f38 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/Plugins/Steamworks.NET/autogen/isteamclient.cs b/Assets/Plugins/Steamworks.NET/autogen/isteamclient.cs deleted file mode 100644 index 9f816e8..0000000 --- a/Assets/Plugins/Steamworks.NET/autogen/isteamclient.cs +++ /dev/null @@ -1,355 +0,0 @@ -// This file is provided under The MIT License as part of Steamworks.NET. -// Copyright (c) 2013-2015 Riley Labrecque -// Please see the included LICENSE.txt for additional information. - -// This file is automatically generated. -// Changes to this file will be reverted when you update Steamworks.NET - -using System; -using System.Runtime.InteropServices; - -namespace Steamworks { - public static class SteamClient { - /// - /// Creates a communication pipe to the Steam client - /// - public static HSteamPipe CreateSteamPipe() { - InteropHelp.TestIfAvailableClient(); - return (HSteamPipe)NativeMethods.ISteamClient_CreateSteamPipe(); - } - - /// - /// Releases a previously created communications pipe - /// - public static bool BReleaseSteamPipe(HSteamPipe hSteamPipe) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamClient_BReleaseSteamPipe(hSteamPipe); - } - - /// - /// connects to an existing global user, failing if none exists - /// used by the game to coordinate with the steamUI - /// - public static HSteamUser ConnectToGlobalUser(HSteamPipe hSteamPipe) { - InteropHelp.TestIfAvailableClient(); - return (HSteamUser)NativeMethods.ISteamClient_ConnectToGlobalUser(hSteamPipe); - } - - /// - /// used by game servers, create a steam user that won't be shared with anyone else - /// - public static HSteamUser CreateLocalUser(out HSteamPipe phSteamPipe, EAccountType eAccountType) { - InteropHelp.TestIfAvailableClient(); - return (HSteamUser)NativeMethods.ISteamClient_CreateLocalUser(out phSteamPipe, eAccountType); - } - - /// - /// removes an allocated user - /// - public static void ReleaseUser(HSteamPipe hSteamPipe, HSteamUser hUser) { - InteropHelp.TestIfAvailableClient(); - NativeMethods.ISteamClient_ReleaseUser(hSteamPipe, hUser); - } - - /// - /// retrieves the ISteamUser interface associated with the handle - /// - public static IntPtr GetISteamUser(HSteamUser hSteamUser, HSteamPipe hSteamPipe, string pchVersion) { - InteropHelp.TestIfAvailableClient(); - using (var pchVersion2 = new InteropHelp.UTF8StringHandle(pchVersion)) { - return NativeMethods.ISteamClient_GetISteamUser(hSteamUser, hSteamPipe, pchVersion2); - } - } - - /// - /// retrieves the ISteamGameServer interface associated with the handle - /// - public static IntPtr GetISteamGameServer(HSteamUser hSteamUser, HSteamPipe hSteamPipe, string pchVersion) { - InteropHelp.TestIfAvailableClient(); - using (var pchVersion2 = new InteropHelp.UTF8StringHandle(pchVersion)) { - return NativeMethods.ISteamClient_GetISteamGameServer(hSteamUser, hSteamPipe, pchVersion2); - } - } - - /// - /// set the local IP and Port to bind to - /// this must be set before CreateLocalUser() - /// - public static void SetLocalIPBinding(uint unIP, ushort usPort) { - InteropHelp.TestIfAvailableClient(); - NativeMethods.ISteamClient_SetLocalIPBinding(unIP, usPort); - } - - /// - /// returns the ISteamFriends interface - /// - public static IntPtr GetISteamFriends(HSteamUser hSteamUser, HSteamPipe hSteamPipe, string pchVersion) { - InteropHelp.TestIfAvailableClient(); - using (var pchVersion2 = new InteropHelp.UTF8StringHandle(pchVersion)) { - return NativeMethods.ISteamClient_GetISteamFriends(hSteamUser, hSteamPipe, pchVersion2); - } - } - - /// - /// returns the ISteamUtils interface - /// - public static IntPtr GetISteamUtils(HSteamPipe hSteamPipe, string pchVersion) { - InteropHelp.TestIfAvailableClient(); - using (var pchVersion2 = new InteropHelp.UTF8StringHandle(pchVersion)) { - return NativeMethods.ISteamClient_GetISteamUtils(hSteamPipe, pchVersion2); - } - } - - /// - /// returns the ISteamMatchmaking interface - /// - public static IntPtr GetISteamMatchmaking(HSteamUser hSteamUser, HSteamPipe hSteamPipe, string pchVersion) { - InteropHelp.TestIfAvailableClient(); - using (var pchVersion2 = new InteropHelp.UTF8StringHandle(pchVersion)) { - return NativeMethods.ISteamClient_GetISteamMatchmaking(hSteamUser, hSteamPipe, pchVersion2); - } - } - - /// - /// returns the ISteamMatchmakingServers interface - /// - public static IntPtr GetISteamMatchmakingServers(HSteamUser hSteamUser, HSteamPipe hSteamPipe, string pchVersion) { - InteropHelp.TestIfAvailableClient(); - using (var pchVersion2 = new InteropHelp.UTF8StringHandle(pchVersion)) { - return NativeMethods.ISteamClient_GetISteamMatchmakingServers(hSteamUser, hSteamPipe, pchVersion2); - } - } - - /// - /// returns the a generic interface - /// - public static IntPtr GetISteamGenericInterface(HSteamUser hSteamUser, HSteamPipe hSteamPipe, string pchVersion) { - InteropHelp.TestIfAvailableClient(); - using (var pchVersion2 = new InteropHelp.UTF8StringHandle(pchVersion)) { - return NativeMethods.ISteamClient_GetISteamGenericInterface(hSteamUser, hSteamPipe, pchVersion2); - } - } - - /// - /// returns the ISteamUserStats interface - /// - public static IntPtr GetISteamUserStats(HSteamUser hSteamUser, HSteamPipe hSteamPipe, string pchVersion) { - InteropHelp.TestIfAvailableClient(); - using (var pchVersion2 = new InteropHelp.UTF8StringHandle(pchVersion)) { - return NativeMethods.ISteamClient_GetISteamUserStats(hSteamUser, hSteamPipe, pchVersion2); - } - } - - /// - /// returns the ISteamGameServerStats interface - /// - public static IntPtr GetISteamGameServerStats(HSteamUser hSteamuser, HSteamPipe hSteamPipe, string pchVersion) { - InteropHelp.TestIfAvailableClient(); - using (var pchVersion2 = new InteropHelp.UTF8StringHandle(pchVersion)) { - return NativeMethods.ISteamClient_GetISteamGameServerStats(hSteamuser, hSteamPipe, pchVersion2); - } - } - - /// - /// returns apps interface - /// - public static IntPtr GetISteamApps(HSteamUser hSteamUser, HSteamPipe hSteamPipe, string pchVersion) { - InteropHelp.TestIfAvailableClient(); - using (var pchVersion2 = new InteropHelp.UTF8StringHandle(pchVersion)) { - return NativeMethods.ISteamClient_GetISteamApps(hSteamUser, hSteamPipe, pchVersion2); - } - } - - /// - /// networking - /// - public static IntPtr GetISteamNetworking(HSteamUser hSteamUser, HSteamPipe hSteamPipe, string pchVersion) { - InteropHelp.TestIfAvailableClient(); - using (var pchVersion2 = new InteropHelp.UTF8StringHandle(pchVersion)) { - return NativeMethods.ISteamClient_GetISteamNetworking(hSteamUser, hSteamPipe, pchVersion2); - } - } - - /// - /// remote storage - /// - public static IntPtr GetISteamRemoteStorage(HSteamUser hSteamuser, HSteamPipe hSteamPipe, string pchVersion) { - InteropHelp.TestIfAvailableClient(); - using (var pchVersion2 = new InteropHelp.UTF8StringHandle(pchVersion)) { - return NativeMethods.ISteamClient_GetISteamRemoteStorage(hSteamuser, hSteamPipe, pchVersion2); - } - } - - /// - /// user screenshots - /// - public static IntPtr GetISteamScreenshots(HSteamUser hSteamuser, HSteamPipe hSteamPipe, string pchVersion) { - InteropHelp.TestIfAvailableClient(); - using (var pchVersion2 = new InteropHelp.UTF8StringHandle(pchVersion)) { - return NativeMethods.ISteamClient_GetISteamScreenshots(hSteamuser, hSteamPipe, pchVersion2); - } - } - - /// - /// this needs to be called every frame to process matchmaking results - /// redundant if you're already calling SteamAPI_RunCallbacks() - /// - public static void RunFrame() { - InteropHelp.TestIfAvailableClient(); - NativeMethods.ISteamClient_RunFrame(); - } - - /// - /// returns the number of IPC calls made since the last time this function was called - /// Used for perf debugging so you can understand how many IPC calls your game makes per frame - /// Every IPC call is at minimum a thread context switch if not a process one so you want to rate - /// control how often you do them. - /// - public static uint GetIPCCallCount() { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamClient_GetIPCCallCount(); - } - - /// - /// API warning handling - /// 'int' is the severity; 0 for msg, 1 for warning - /// 'const char *' is the text of the message - /// callbacks will occur directly after the API function is called that generated the warning or message - /// - public static void SetWarningMessageHook(SteamAPIWarningMessageHook_t pFunction) { - InteropHelp.TestIfAvailableClient(); - NativeMethods.ISteamClient_SetWarningMessageHook(pFunction); - } - - /// - /// Trigger global shutdown for the DLL - /// - public static bool BShutdownIfAllPipesClosed() { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamClient_BShutdownIfAllPipesClosed(); - } -#if _PS3 - public static IntPtr GetISteamPS3OverlayRender() { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamClient_GetISteamPS3OverlayRender(); - } -#endif - /// - /// Expose HTTP interface - /// - public static IntPtr GetISteamHTTP(HSteamUser hSteamuser, HSteamPipe hSteamPipe, string pchVersion) { - InteropHelp.TestIfAvailableClient(); - using (var pchVersion2 = new InteropHelp.UTF8StringHandle(pchVersion)) { - return NativeMethods.ISteamClient_GetISteamHTTP(hSteamuser, hSteamPipe, pchVersion2); - } - } - - /// - /// Exposes the ISteamUnifiedMessages interface - /// - public static IntPtr GetISteamUnifiedMessages(HSteamUser hSteamuser, HSteamPipe hSteamPipe, string pchVersion) { - InteropHelp.TestIfAvailableClient(); - using (var pchVersion2 = new InteropHelp.UTF8StringHandle(pchVersion)) { - return NativeMethods.ISteamClient_GetISteamUnifiedMessages(hSteamuser, hSteamPipe, pchVersion2); - } - } - - /// - /// Exposes the ISteamController interface - /// - public static IntPtr GetISteamController(HSteamUser hSteamUser, HSteamPipe hSteamPipe, string pchVersion) { - InteropHelp.TestIfAvailableClient(); - using (var pchVersion2 = new InteropHelp.UTF8StringHandle(pchVersion)) { - return NativeMethods.ISteamClient_GetISteamController(hSteamUser, hSteamPipe, pchVersion2); - } - } - - /// - /// Exposes the ISteamUGC interface - /// - public static IntPtr GetISteamUGC(HSteamUser hSteamUser, HSteamPipe hSteamPipe, string pchVersion) { - InteropHelp.TestIfAvailableClient(); - using (var pchVersion2 = new InteropHelp.UTF8StringHandle(pchVersion)) { - return NativeMethods.ISteamClient_GetISteamUGC(hSteamUser, hSteamPipe, pchVersion2); - } - } - - /// - /// returns app list interface, only available on specially registered apps - /// - public static IntPtr GetISteamAppList(HSteamUser hSteamUser, HSteamPipe hSteamPipe, string pchVersion) { - InteropHelp.TestIfAvailableClient(); - using (var pchVersion2 = new InteropHelp.UTF8StringHandle(pchVersion)) { - return NativeMethods.ISteamClient_GetISteamAppList(hSteamUser, hSteamPipe, pchVersion2); - } - } - - /// - /// Music Player - /// - public static IntPtr GetISteamMusic(HSteamUser hSteamuser, HSteamPipe hSteamPipe, string pchVersion) { - InteropHelp.TestIfAvailableClient(); - using (var pchVersion2 = new InteropHelp.UTF8StringHandle(pchVersion)) { - return NativeMethods.ISteamClient_GetISteamMusic(hSteamuser, hSteamPipe, pchVersion2); - } - } - - /// - /// Music Player Remote - /// - public static IntPtr GetISteamMusicRemote(HSteamUser hSteamuser, HSteamPipe hSteamPipe, string pchVersion) { - InteropHelp.TestIfAvailableClient(); - using (var pchVersion2 = new InteropHelp.UTF8StringHandle(pchVersion)) { - return NativeMethods.ISteamClient_GetISteamMusicRemote(hSteamuser, hSteamPipe, pchVersion2); - } - } - - /// - /// html page display - /// - public static IntPtr GetISteamHTMLSurface(HSteamUser hSteamuser, HSteamPipe hSteamPipe, string pchVersion) { - InteropHelp.TestIfAvailableClient(); - using (var pchVersion2 = new InteropHelp.UTF8StringHandle(pchVersion)) { - return NativeMethods.ISteamClient_GetISteamHTMLSurface(hSteamuser, hSteamPipe, pchVersion2); - } - } - - /// - /// Helper functions for internal Steam usage - /// - public static void Set_SteamAPI_CPostAPIResultInProcess(SteamAPI_PostAPIResultInProcess_t func) { - InteropHelp.TestIfAvailableClient(); - NativeMethods.ISteamClient_Set_SteamAPI_CPostAPIResultInProcess(func); - } - - public static void Remove_SteamAPI_CPostAPIResultInProcess(SteamAPI_PostAPIResultInProcess_t func) { - InteropHelp.TestIfAvailableClient(); - NativeMethods.ISteamClient_Remove_SteamAPI_CPostAPIResultInProcess(func); - } - - public static void Set_SteamAPI_CCheckCallbackRegisteredInProcess(SteamAPI_CheckCallbackRegistered_t func) { - InteropHelp.TestIfAvailableClient(); - NativeMethods.ISteamClient_Set_SteamAPI_CCheckCallbackRegisteredInProcess(func); - } - - /// - /// inventory - /// - public static IntPtr GetISteamInventory(HSteamUser hSteamuser, HSteamPipe hSteamPipe, string pchVersion) { - InteropHelp.TestIfAvailableClient(); - using (var pchVersion2 = new InteropHelp.UTF8StringHandle(pchVersion)) { - return NativeMethods.ISteamClient_GetISteamInventory(hSteamuser, hSteamPipe, pchVersion2); - } - } - - /// - /// Video - /// - public static IntPtr GetISteamVideo(HSteamUser hSteamuser, HSteamPipe hSteamPipe, string pchVersion) { - InteropHelp.TestIfAvailableClient(); - using (var pchVersion2 = new InteropHelp.UTF8StringHandle(pchVersion)) { - return NativeMethods.ISteamClient_GetISteamVideo(hSteamuser, hSteamPipe, pchVersion2); - } - } - } -} \ No newline at end of file diff --git a/Assets/Plugins/Steamworks.NET/autogen/isteamclient.cs.meta b/Assets/Plugins/Steamworks.NET/autogen/isteamclient.cs.meta deleted file mode 100644 index d1e2191..0000000 --- a/Assets/Plugins/Steamworks.NET/autogen/isteamclient.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 8ebddbe63eefa7f40ab9908dc5a5ace9 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/Plugins/Steamworks.NET/autogen/isteamcontroller.cs b/Assets/Plugins/Steamworks.NET/autogen/isteamcontroller.cs deleted file mode 100644 index f474f70..0000000 --- a/Assets/Plugins/Steamworks.NET/autogen/isteamcontroller.cs +++ /dev/null @@ -1,64 +0,0 @@ -// This file is provided under The MIT License as part of Steamworks.NET. -// Copyright (c) 2013-2015 Riley Labrecque -// Please see the included LICENSE.txt for additional information. - -// This file is automatically generated. -// Changes to this file will be reverted when you update Steamworks.NET - -using System; -using System.Runtime.InteropServices; - -namespace Steamworks { - public static class SteamController { - /// - /// Native controller support API - /// Must call init and shutdown when starting/ending use of the interface - /// - public static bool Init(string pchAbsolutePathToControllerConfigVDF) { - InteropHelp.TestIfAvailableClient(); - using (var pchAbsolutePathToControllerConfigVDF2 = new InteropHelp.UTF8StringHandle(pchAbsolutePathToControllerConfigVDF)) { - return NativeMethods.ISteamController_Init(pchAbsolutePathToControllerConfigVDF2); - } - } - - public static bool Shutdown() { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamController_Shutdown(); - } - - /// - /// Pump callback/callresult events, SteamAPI_RunCallbacks will do this for you, - /// normally never need to call directly. - /// - public static void RunFrame() { - InteropHelp.TestIfAvailableClient(); - NativeMethods.ISteamController_RunFrame(); - } - - /// - /// Get the state of the specified controller, returns false if that controller is not connected - /// - public static bool GetControllerState(uint unControllerIndex, out SteamControllerState_t pState) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamController_GetControllerState(unControllerIndex, out pState); - } - - /// - /// Trigger a haptic pulse on the controller - /// - public static void TriggerHapticPulse(uint unControllerIndex, ESteamControllerPad eTargetPad, ushort usDurationMicroSec) { - InteropHelp.TestIfAvailableClient(); - NativeMethods.ISteamController_TriggerHapticPulse(unControllerIndex, eTargetPad, usDurationMicroSec); - } - - /// - /// Set the override mode which is used to choose to use different base/legacy bindings from your config file - /// - public static void SetOverrideMode(string pchMode) { - InteropHelp.TestIfAvailableClient(); - using (var pchMode2 = new InteropHelp.UTF8StringHandle(pchMode)) { - NativeMethods.ISteamController_SetOverrideMode(pchMode2); - } - } - } -} \ No newline at end of file diff --git a/Assets/Plugins/Steamworks.NET/autogen/isteamcontroller.cs.meta b/Assets/Plugins/Steamworks.NET/autogen/isteamcontroller.cs.meta deleted file mode 100644 index 382938c..0000000 --- a/Assets/Plugins/Steamworks.NET/autogen/isteamcontroller.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: d4b5a08be9ef89f409199e1e35d837c2 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/Plugins/Steamworks.NET/autogen/isteamfriends.cs b/Assets/Plugins/Steamworks.NET/autogen/isteamfriends.cs deleted file mode 100644 index b01acb5..0000000 --- a/Assets/Plugins/Steamworks.NET/autogen/isteamfriends.cs +++ /dev/null @@ -1,596 +0,0 @@ -// This file is provided under The MIT License as part of Steamworks.NET. -// Copyright (c) 2013-2015 Riley Labrecque -// Please see the included LICENSE.txt for additional information. - -// This file is automatically generated. -// Changes to this file will be reverted when you update Steamworks.NET - -using System; -using System.Runtime.InteropServices; - -namespace Steamworks { - public static class SteamFriends { - /// - /// returns the local players name - guaranteed to not be NULL. - /// this is the same name as on the users community profile page - /// this is stored in UTF-8 format - /// like all the other interface functions that return a char *, it's important that this pointer is not saved - /// off; it will eventually be free'd or re-allocated - /// - public static string GetPersonaName() { - InteropHelp.TestIfAvailableClient(); - return InteropHelp.PtrToStringUTF8(NativeMethods.ISteamFriends_GetPersonaName()); - } - - /// - /// Sets the player name, stores it on the server and publishes the changes to all friends who are online. - /// Changes take place locally immediately, and a PersonaStateChange_t is posted, presuming success. - /// The final results are available through the return value SteamAPICall_t, using SetPersonaNameResponse_t. - /// If the name change fails to happen on the server, then an additional global PersonaStateChange_t will be posted - /// to change the name back, in addition to the SetPersonaNameResponse_t callback. - /// - public static SteamAPICall_t SetPersonaName(string pchPersonaName) { - InteropHelp.TestIfAvailableClient(); - using (var pchPersonaName2 = new InteropHelp.UTF8StringHandle(pchPersonaName)) { - return (SteamAPICall_t)NativeMethods.ISteamFriends_SetPersonaName(pchPersonaName2); - } - } - - /// - /// gets the status of the current user - /// - public static EPersonaState GetPersonaState() { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamFriends_GetPersonaState(); - } - - /// - /// friend iteration - /// takes a set of k_EFriendFlags, and returns the number of users the client knows about who meet that criteria - /// then GetFriendByIndex() can then be used to return the id's of each of those users - /// - public static int GetFriendCount(EFriendFlags iFriendFlags) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamFriends_GetFriendCount(iFriendFlags); - } - - /// - /// returns the steamID of a user - /// iFriend is a index of range [0, GetFriendCount()) - /// iFriendsFlags must be the same value as used in GetFriendCount() - /// the returned CSteamID can then be used by all the functions below to access details about the user - /// - public static CSteamID GetFriendByIndex(int iFriend, EFriendFlags iFriendFlags) { - InteropHelp.TestIfAvailableClient(); - return (CSteamID)NativeMethods.ISteamFriends_GetFriendByIndex(iFriend, iFriendFlags); - } - - /// - /// returns a relationship to a user - /// - public static EFriendRelationship GetFriendRelationship(CSteamID steamIDFriend) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamFriends_GetFriendRelationship(steamIDFriend); - } - - /// - /// returns the current status of the specified user - /// this will only be known by the local user if steamIDFriend is in their friends list; on the same game server; in a chat room or lobby; or in a small group with the local user - /// - public static EPersonaState GetFriendPersonaState(CSteamID steamIDFriend) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamFriends_GetFriendPersonaState(steamIDFriend); - } - - /// - /// returns the name another user - guaranteed to not be NULL. - /// same rules as GetFriendPersonaState() apply as to whether or not the user knowns the name of the other user - /// note that on first joining a lobby, chat room or game server the local user will not known the name of the other users automatically; that information will arrive asyncronously - /// - public static string GetFriendPersonaName(CSteamID steamIDFriend) { - InteropHelp.TestIfAvailableClient(); - return InteropHelp.PtrToStringUTF8(NativeMethods.ISteamFriends_GetFriendPersonaName(steamIDFriend)); - } - - /// - /// returns true if the friend is actually in a game, and fills in pFriendGameInfo with an extra details - /// - public static bool GetFriendGamePlayed(CSteamID steamIDFriend, out FriendGameInfo_t pFriendGameInfo) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamFriends_GetFriendGamePlayed(steamIDFriend, out pFriendGameInfo); - } - - /// - /// accesses old friends names - returns an empty string when their are no more items in the history - /// - public static string GetFriendPersonaNameHistory(CSteamID steamIDFriend, int iPersonaName) { - InteropHelp.TestIfAvailableClient(); - return InteropHelp.PtrToStringUTF8(NativeMethods.ISteamFriends_GetFriendPersonaNameHistory(steamIDFriend, iPersonaName)); - } - - /// - /// friends steam level - /// - public static int GetFriendSteamLevel(CSteamID steamIDFriend) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamFriends_GetFriendSteamLevel(steamIDFriend); - } - - /// - /// Returns nickname the current user has set for the specified player. Returns NULL if the no nickname has been set for that player. - /// - public static string GetPlayerNickname(CSteamID steamIDPlayer) { - InteropHelp.TestIfAvailableClient(); - return InteropHelp.PtrToStringUTF8(NativeMethods.ISteamFriends_GetPlayerNickname(steamIDPlayer)); - } - - /// - /// friend grouping (tag) apis - /// returns the number of friends groups - /// - public static int GetFriendsGroupCount() { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamFriends_GetFriendsGroupCount(); - } - - /// - /// returns the friends group ID for the given index (invalid indices return k_FriendsGroupID_Invalid) - /// - public static FriendsGroupID_t GetFriendsGroupIDByIndex(int iFG) { - InteropHelp.TestIfAvailableClient(); - return (FriendsGroupID_t)NativeMethods.ISteamFriends_GetFriendsGroupIDByIndex(iFG); - } - - /// - /// returns the name for the given friends group (NULL in the case of invalid friends group IDs) - /// - public static string GetFriendsGroupName(FriendsGroupID_t friendsGroupID) { - InteropHelp.TestIfAvailableClient(); - return InteropHelp.PtrToStringUTF8(NativeMethods.ISteamFriends_GetFriendsGroupName(friendsGroupID)); - } - - /// - /// returns the number of members in a given friends group - /// - public static int GetFriendsGroupMembersCount(FriendsGroupID_t friendsGroupID) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamFriends_GetFriendsGroupMembersCount(friendsGroupID); - } - - /// - /// gets up to nMembersCount members of the given friends group, if fewer exist than requested those positions' SteamIDs will be invalid - /// - public static void GetFriendsGroupMembersList(FriendsGroupID_t friendsGroupID, CSteamID[] pOutSteamIDMembers, int nMembersCount) { - InteropHelp.TestIfAvailableClient(); - NativeMethods.ISteamFriends_GetFriendsGroupMembersList(friendsGroupID, pOutSteamIDMembers, nMembersCount); - } - - /// - /// returns true if the specified user meets any of the criteria specified in iFriendFlags - /// iFriendFlags can be the union (binary or, |) of one or more k_EFriendFlags values - /// - public static bool HasFriend(CSteamID steamIDFriend, EFriendFlags iFriendFlags) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamFriends_HasFriend(steamIDFriend, iFriendFlags); - } - - /// - /// clan (group) iteration and access functions - /// - public static int GetClanCount() { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamFriends_GetClanCount(); - } - - public static CSteamID GetClanByIndex(int iClan) { - InteropHelp.TestIfAvailableClient(); - return (CSteamID)NativeMethods.ISteamFriends_GetClanByIndex(iClan); - } - - public static string GetClanName(CSteamID steamIDClan) { - InteropHelp.TestIfAvailableClient(); - return InteropHelp.PtrToStringUTF8(NativeMethods.ISteamFriends_GetClanName(steamIDClan)); - } - - public static string GetClanTag(CSteamID steamIDClan) { - InteropHelp.TestIfAvailableClient(); - return InteropHelp.PtrToStringUTF8(NativeMethods.ISteamFriends_GetClanTag(steamIDClan)); - } - - /// - /// returns the most recent information we have about what's happening in a clan - /// - public static bool GetClanActivityCounts(CSteamID steamIDClan, out int pnOnline, out int pnInGame, out int pnChatting) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamFriends_GetClanActivityCounts(steamIDClan, out pnOnline, out pnInGame, out pnChatting); - } - - /// - /// for clans a user is a member of, they will have reasonably up-to-date information, but for others you'll have to download the info to have the latest - /// - public static SteamAPICall_t DownloadClanActivityCounts(CSteamID[] psteamIDClans, int cClansToRequest) { - InteropHelp.TestIfAvailableClient(); - return (SteamAPICall_t)NativeMethods.ISteamFriends_DownloadClanActivityCounts(psteamIDClans, cClansToRequest); - } - - /// - /// iterators for getting users in a chat room, lobby, game server or clan - /// note that large clans that cannot be iterated by the local user - /// note that the current user must be in a lobby to retrieve CSteamIDs of other users in that lobby - /// steamIDSource can be the steamID of a group, game server, lobby or chat room - /// - public static int GetFriendCountFromSource(CSteamID steamIDSource) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamFriends_GetFriendCountFromSource(steamIDSource); - } - - public static CSteamID GetFriendFromSourceByIndex(CSteamID steamIDSource, int iFriend) { - InteropHelp.TestIfAvailableClient(); - return (CSteamID)NativeMethods.ISteamFriends_GetFriendFromSourceByIndex(steamIDSource, iFriend); - } - - /// - /// returns true if the local user can see that steamIDUser is a member or in steamIDSource - /// - public static bool IsUserInSource(CSteamID steamIDUser, CSteamID steamIDSource) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamFriends_IsUserInSource(steamIDUser, steamIDSource); - } - - /// - /// User is in a game pressing the talk button (will suppress the microphone for all voice comms from the Steam friends UI) - /// - public static void SetInGameVoiceSpeaking(CSteamID steamIDUser, bool bSpeaking) { - InteropHelp.TestIfAvailableClient(); - NativeMethods.ISteamFriends_SetInGameVoiceSpeaking(steamIDUser, bSpeaking); - } - - /// - /// activates the game overlay, with an optional dialog to open - /// valid options are "Friends", "Community", "Players", "Settings", "OfficialGameGroup", "Stats", "Achievements" - /// - public static void ActivateGameOverlay(string pchDialog) { - InteropHelp.TestIfAvailableClient(); - using (var pchDialog2 = new InteropHelp.UTF8StringHandle(pchDialog)) { - NativeMethods.ISteamFriends_ActivateGameOverlay(pchDialog2); - } - } - - /// - /// activates game overlay to a specific place - /// valid options are - /// "steamid" - opens the overlay web browser to the specified user or groups profile - /// "chat" - opens a chat window to the specified user, or joins the group chat - /// "jointrade" - opens a window to a Steam Trading session that was started with the ISteamEconomy/StartTrade Web API - /// "stats" - opens the overlay web browser to the specified user's stats - /// "achievements" - opens the overlay web browser to the specified user's achievements - /// "friendadd" - opens the overlay in minimal mode prompting the user to add the target user as a friend - /// "friendremove" - opens the overlay in minimal mode prompting the user to remove the target friend - /// "friendrequestaccept" - opens the overlay in minimal mode prompting the user to accept an incoming friend invite - /// "friendrequestignore" - opens the overlay in minimal mode prompting the user to ignore an incoming friend invite - /// - public static void ActivateGameOverlayToUser(string pchDialog, CSteamID steamID) { - InteropHelp.TestIfAvailableClient(); - using (var pchDialog2 = new InteropHelp.UTF8StringHandle(pchDialog)) { - NativeMethods.ISteamFriends_ActivateGameOverlayToUser(pchDialog2, steamID); - } - } - - /// - /// activates game overlay web browser directly to the specified URL - /// full address with protocol type is required, e.g. http://www.steamgames.com/ - /// - public static void ActivateGameOverlayToWebPage(string pchURL) { - InteropHelp.TestIfAvailableClient(); - using (var pchURL2 = new InteropHelp.UTF8StringHandle(pchURL)) { - NativeMethods.ISteamFriends_ActivateGameOverlayToWebPage(pchURL2); - } - } - - /// - /// activates game overlay to store page for app - /// - public static void ActivateGameOverlayToStore(AppId_t nAppID, EOverlayToStoreFlag eFlag) { - InteropHelp.TestIfAvailableClient(); - NativeMethods.ISteamFriends_ActivateGameOverlayToStore(nAppID, eFlag); - } - - /// - /// Mark a target user as 'played with'. This is a client-side only feature that requires that the calling user is - /// in game - /// - public static void SetPlayedWith(CSteamID steamIDUserPlayedWith) { - InteropHelp.TestIfAvailableClient(); - NativeMethods.ISteamFriends_SetPlayedWith(steamIDUserPlayedWith); - } - - /// - /// activates game overlay to open the invite dialog. Invitations will be sent for the provided lobby. - /// - public static void ActivateGameOverlayInviteDialog(CSteamID steamIDLobby) { - InteropHelp.TestIfAvailableClient(); - NativeMethods.ISteamFriends_ActivateGameOverlayInviteDialog(steamIDLobby); - } - - /// - /// gets the small (32x32) avatar of the current user, which is a handle to be used in IClientUtils::GetImageRGBA(), or 0 if none set - /// - public static int GetSmallFriendAvatar(CSteamID steamIDFriend) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamFriends_GetSmallFriendAvatar(steamIDFriend); - } - - /// - /// gets the medium (64x64) avatar of the current user, which is a handle to be used in IClientUtils::GetImageRGBA(), or 0 if none set - /// - public static int GetMediumFriendAvatar(CSteamID steamIDFriend) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamFriends_GetMediumFriendAvatar(steamIDFriend); - } - - /// - /// gets the large (184x184) avatar of the current user, which is a handle to be used in IClientUtils::GetImageRGBA(), or 0 if none set - /// returns -1 if this image has yet to be loaded, in this case wait for a AvatarImageLoaded_t callback and then call this again - /// - public static int GetLargeFriendAvatar(CSteamID steamIDFriend) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamFriends_GetLargeFriendAvatar(steamIDFriend); - } - - /// - /// requests information about a user - persona name & avatar - /// if bRequireNameOnly is set, then the avatar of a user isn't downloaded - /// - it's a lot slower to download avatars and churns the local cache, so if you don't need avatars, don't request them - /// if returns true, it means that data is being requested, and a PersonaStateChanged_t callback will be posted when it's retrieved - /// if returns false, it means that we already have all the details about that user, and functions can be called immediately - /// - public static bool RequestUserInformation(CSteamID steamIDUser, bool bRequireNameOnly) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamFriends_RequestUserInformation(steamIDUser, bRequireNameOnly); - } - - /// - /// requests information about a clan officer list - /// when complete, data is returned in ClanOfficerListResponse_t call result - /// this makes available the calls below - /// you can only ask about clans that a user is a member of - /// note that this won't download avatars automatically; if you get an officer, - /// and no avatar image is available, call RequestUserInformation( steamID, false ) to download the avatar - /// - public static SteamAPICall_t RequestClanOfficerList(CSteamID steamIDClan) { - InteropHelp.TestIfAvailableClient(); - return (SteamAPICall_t)NativeMethods.ISteamFriends_RequestClanOfficerList(steamIDClan); - } - - /// - /// iteration of clan officers - can only be done when a RequestClanOfficerList() call has completed - /// returns the steamID of the clan owner - /// - public static CSteamID GetClanOwner(CSteamID steamIDClan) { - InteropHelp.TestIfAvailableClient(); - return (CSteamID)NativeMethods.ISteamFriends_GetClanOwner(steamIDClan); - } - - /// - /// returns the number of officers in a clan (including the owner) - /// - public static int GetClanOfficerCount(CSteamID steamIDClan) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamFriends_GetClanOfficerCount(steamIDClan); - } - - /// - /// returns the steamID of a clan officer, by index, of range [0,GetClanOfficerCount) - /// - public static CSteamID GetClanOfficerByIndex(CSteamID steamIDClan, int iOfficer) { - InteropHelp.TestIfAvailableClient(); - return (CSteamID)NativeMethods.ISteamFriends_GetClanOfficerByIndex(steamIDClan, iOfficer); - } - - /// - /// if current user is chat restricted, he can't send or receive any text/voice chat messages. - /// the user can't see custom avatars. But the user can be online and send/recv game invites. - /// a chat restricted user can't add friends or join any groups. - /// - public static uint GetUserRestrictions() { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamFriends_GetUserRestrictions(); - } - - /// - /// Rich Presence data is automatically shared between friends who are in the same game - /// Each user has a set of Key/Value pairs - /// Up to 20 different keys can be set - /// There are two magic keys: - /// "status" - a UTF-8 string that will show up in the 'view game info' dialog in the Steam friends list - /// "connect" - a UTF-8 string that contains the command-line for how a friend can connect to a game - /// GetFriendRichPresence() returns an empty string "" if no value is set - /// SetRichPresence() to a NULL or an empty string deletes the key - /// You can iterate the current set of keys for a friend with GetFriendRichPresenceKeyCount() - /// and GetFriendRichPresenceKeyByIndex() (typically only used for debugging) - /// - public static bool SetRichPresence(string pchKey, string pchValue) { - InteropHelp.TestIfAvailableClient(); - using (var pchKey2 = new InteropHelp.UTF8StringHandle(pchKey)) - using (var pchValue2 = new InteropHelp.UTF8StringHandle(pchValue)) { - return NativeMethods.ISteamFriends_SetRichPresence(pchKey2, pchValue2); - } - } - - public static void ClearRichPresence() { - InteropHelp.TestIfAvailableClient(); - NativeMethods.ISteamFriends_ClearRichPresence(); - } - - public static string GetFriendRichPresence(CSteamID steamIDFriend, string pchKey) { - InteropHelp.TestIfAvailableClient(); - using (var pchKey2 = new InteropHelp.UTF8StringHandle(pchKey)) { - return InteropHelp.PtrToStringUTF8(NativeMethods.ISteamFriends_GetFriendRichPresence(steamIDFriend, pchKey2)); - } - } - - public static int GetFriendRichPresenceKeyCount(CSteamID steamIDFriend) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamFriends_GetFriendRichPresenceKeyCount(steamIDFriend); - } - - public static string GetFriendRichPresenceKeyByIndex(CSteamID steamIDFriend, int iKey) { - InteropHelp.TestIfAvailableClient(); - return InteropHelp.PtrToStringUTF8(NativeMethods.ISteamFriends_GetFriendRichPresenceKeyByIndex(steamIDFriend, iKey)); - } - - /// - /// Requests rich presence for a specific user. - /// - public static void RequestFriendRichPresence(CSteamID steamIDFriend) { - InteropHelp.TestIfAvailableClient(); - NativeMethods.ISteamFriends_RequestFriendRichPresence(steamIDFriend); - } - - /// - /// rich invite support - /// if the target accepts the invite, the pchConnectString gets added to the command-line for launching the game - /// if the game is already running, a GameRichPresenceJoinRequested_t callback is posted containing the connect string - /// invites can only be sent to friends - /// - public static bool InviteUserToGame(CSteamID steamIDFriend, string pchConnectString) { - InteropHelp.TestIfAvailableClient(); - using (var pchConnectString2 = new InteropHelp.UTF8StringHandle(pchConnectString)) { - return NativeMethods.ISteamFriends_InviteUserToGame(steamIDFriend, pchConnectString2); - } - } - - /// - /// recently-played-with friends iteration - /// this iterates the entire list of users recently played with, across games - /// GetFriendCoplayTime() returns as a unix time - /// - public static int GetCoplayFriendCount() { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamFriends_GetCoplayFriendCount(); - } - - public static CSteamID GetCoplayFriend(int iCoplayFriend) { - InteropHelp.TestIfAvailableClient(); - return (CSteamID)NativeMethods.ISteamFriends_GetCoplayFriend(iCoplayFriend); - } - - public static int GetFriendCoplayTime(CSteamID steamIDFriend) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamFriends_GetFriendCoplayTime(steamIDFriend); - } - - public static AppId_t GetFriendCoplayGame(CSteamID steamIDFriend) { - InteropHelp.TestIfAvailableClient(); - return (AppId_t)NativeMethods.ISteamFriends_GetFriendCoplayGame(steamIDFriend); - } - - /// - /// chat interface for games - /// this allows in-game access to group (clan) chats from in the game - /// the behavior is somewhat sophisticated, because the user may or may not be already in the group chat from outside the game or in the overlay - /// use ActivateGameOverlayToUser( "chat", steamIDClan ) to open the in-game overlay version of the chat - /// - public static SteamAPICall_t JoinClanChatRoom(CSteamID steamIDClan) { - InteropHelp.TestIfAvailableClient(); - return (SteamAPICall_t)NativeMethods.ISteamFriends_JoinClanChatRoom(steamIDClan); - } - - public static bool LeaveClanChatRoom(CSteamID steamIDClan) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamFriends_LeaveClanChatRoom(steamIDClan); - } - - public static int GetClanChatMemberCount(CSteamID steamIDClan) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamFriends_GetClanChatMemberCount(steamIDClan); - } - - public static CSteamID GetChatMemberByIndex(CSteamID steamIDClan, int iUser) { - InteropHelp.TestIfAvailableClient(); - return (CSteamID)NativeMethods.ISteamFriends_GetChatMemberByIndex(steamIDClan, iUser); - } - - public static bool SendClanChatMessage(CSteamID steamIDClanChat, string pchText) { - InteropHelp.TestIfAvailableClient(); - using (var pchText2 = new InteropHelp.UTF8StringHandle(pchText)) { - return NativeMethods.ISteamFriends_SendClanChatMessage(steamIDClanChat, pchText2); - } - } - - public static int GetClanChatMessage(CSteamID steamIDClanChat, int iMessage, out string prgchText, int cchTextMax, out EChatEntryType peChatEntryType, out CSteamID psteamidChatter) { - InteropHelp.TestIfAvailableClient(); - IntPtr prgchText2 = Marshal.AllocHGlobal(cchTextMax); - int ret = NativeMethods.ISteamFriends_GetClanChatMessage(steamIDClanChat, iMessage, prgchText2, cchTextMax, out peChatEntryType, out psteamidChatter); - prgchText = ret != 0 ? InteropHelp.PtrToStringUTF8(prgchText2) : null; - Marshal.FreeHGlobal(prgchText2); - return ret; - } - - public static bool IsClanChatAdmin(CSteamID steamIDClanChat, CSteamID steamIDUser) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamFriends_IsClanChatAdmin(steamIDClanChat, steamIDUser); - } - - /// - /// interact with the Steam (game overlay / desktop) - /// - public static bool IsClanChatWindowOpenInSteam(CSteamID steamIDClanChat) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamFriends_IsClanChatWindowOpenInSteam(steamIDClanChat); - } - - public static bool OpenClanChatWindowInSteam(CSteamID steamIDClanChat) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamFriends_OpenClanChatWindowInSteam(steamIDClanChat); - } - - public static bool CloseClanChatWindowInSteam(CSteamID steamIDClanChat) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamFriends_CloseClanChatWindowInSteam(steamIDClanChat); - } - - /// - /// peer-to-peer chat interception - /// this is so you can show P2P chats inline in the game - /// - public static bool SetListenForFriendsMessages(bool bInterceptEnabled) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamFriends_SetListenForFriendsMessages(bInterceptEnabled); - } - - public static bool ReplyToFriendMessage(CSteamID steamIDFriend, string pchMsgToSend) { - InteropHelp.TestIfAvailableClient(); - using (var pchMsgToSend2 = new InteropHelp.UTF8StringHandle(pchMsgToSend)) { - return NativeMethods.ISteamFriends_ReplyToFriendMessage(steamIDFriend, pchMsgToSend2); - } - } - - public static int GetFriendMessage(CSteamID steamIDFriend, int iMessageID, out string pvData, int cubData, out EChatEntryType peChatEntryType) { - InteropHelp.TestIfAvailableClient(); - IntPtr pvData2 = Marshal.AllocHGlobal(cubData); - int ret = NativeMethods.ISteamFriends_GetFriendMessage(steamIDFriend, iMessageID, pvData2, cubData, out peChatEntryType); - pvData = ret != 0 ? InteropHelp.PtrToStringUTF8(pvData2) : null; - Marshal.FreeHGlobal(pvData2); - return ret; - } - - /// - /// following apis - /// - public static SteamAPICall_t GetFollowerCount(CSteamID steamID) { - InteropHelp.TestIfAvailableClient(); - return (SteamAPICall_t)NativeMethods.ISteamFriends_GetFollowerCount(steamID); - } - - public static SteamAPICall_t IsFollowing(CSteamID steamID) { - InteropHelp.TestIfAvailableClient(); - return (SteamAPICall_t)NativeMethods.ISteamFriends_IsFollowing(steamID); - } - - public static SteamAPICall_t EnumerateFollowingList(uint unStartIndex) { - InteropHelp.TestIfAvailableClient(); - return (SteamAPICall_t)NativeMethods.ISteamFriends_EnumerateFollowingList(unStartIndex); - } - } -} \ No newline at end of file diff --git a/Assets/Plugins/Steamworks.NET/autogen/isteamfriends.cs.meta b/Assets/Plugins/Steamworks.NET/autogen/isteamfriends.cs.meta deleted file mode 100644 index e9b3fa7..0000000 --- a/Assets/Plugins/Steamworks.NET/autogen/isteamfriends.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 349575987a7f3244e865e3955075aa0b -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/Plugins/Steamworks.NET/autogen/isteamgameserver.cs b/Assets/Plugins/Steamworks.NET/autogen/isteamgameserver.cs deleted file mode 100644 index 6a7b2e8..0000000 --- a/Assets/Plugins/Steamworks.NET/autogen/isteamgameserver.cs +++ /dev/null @@ -1,457 +0,0 @@ -// This file is provided under The MIT License as part of Steamworks.NET. -// Copyright (c) 2013-2015 Riley Labrecque -// Please see the included LICENSE.txt for additional information. - -// This file is automatically generated. -// Changes to this file will be reverted when you update Steamworks.NET - -using System; -using System.Runtime.InteropServices; - -namespace Steamworks { - public static class SteamGameServer { - /// - /// Basic server data. These properties, if set, must be set before before calling LogOn. They - /// may not be changed after logged in. - /// / This is called by SteamGameServer_Init, and you will usually not need to call it directly - /// - public static bool InitGameServer(uint unIP, ushort usGamePort, ushort usQueryPort, uint unFlags, AppId_t nGameAppId, string pchVersionString) { - InteropHelp.TestIfAvailableGameServer(); - using (var pchVersionString2 = new InteropHelp.UTF8StringHandle(pchVersionString)) { - return NativeMethods.ISteamGameServer_InitGameServer(unIP, usGamePort, usQueryPort, unFlags, nGameAppId, pchVersionString2); - } - } - - /// - /// / Game product identifier. This is currently used by the master server for version checking purposes. - /// / It's a required field, but will eventually will go away, and the AppID will be used for this purpose. - /// - public static void SetProduct(string pszProduct) { - InteropHelp.TestIfAvailableGameServer(); - using (var pszProduct2 = new InteropHelp.UTF8StringHandle(pszProduct)) { - NativeMethods.ISteamGameServer_SetProduct(pszProduct2); - } - } - - /// - /// / Description of the game. This is a required field and is displayed in the steam server browser....for now. - /// / This is a required field, but it will go away eventually, as the data should be determined from the AppID. - /// - public static void SetGameDescription(string pszGameDescription) { - InteropHelp.TestIfAvailableGameServer(); - using (var pszGameDescription2 = new InteropHelp.UTF8StringHandle(pszGameDescription)) { - NativeMethods.ISteamGameServer_SetGameDescription(pszGameDescription2); - } - } - - /// - /// / If your game is a "mod," pass the string that identifies it. The default is an empty string, meaning - /// / this application is the original game, not a mod. - /// / - /// / @see k_cbMaxGameServerGameDir - /// - public static void SetModDir(string pszModDir) { - InteropHelp.TestIfAvailableGameServer(); - using (var pszModDir2 = new InteropHelp.UTF8StringHandle(pszModDir)) { - NativeMethods.ISteamGameServer_SetModDir(pszModDir2); - } - } - - /// - /// / Is this is a dedicated server? The default value is false. - /// - public static void SetDedicatedServer(bool bDedicated) { - InteropHelp.TestIfAvailableGameServer(); - NativeMethods.ISteamGameServer_SetDedicatedServer(bDedicated); - } - - /// - /// Login - /// / Begin process to login to a persistent game server account - /// / - /// / You need to register for callbacks to determine the result of this operation. - /// / @see SteamServersConnected_t - /// / @see SteamServerConnectFailure_t - /// / @see SteamServersDisconnected_t - /// - public static void LogOn(string pszToken) { - InteropHelp.TestIfAvailableGameServer(); - using (var pszToken2 = new InteropHelp.UTF8StringHandle(pszToken)) { - NativeMethods.ISteamGameServer_LogOn(pszToken2); - } - } - - /// - /// / Login to a generic, anonymous account. - /// / - /// / Note: in previous versions of the SDK, this was automatically called within SteamGameServer_Init, - /// / but this is no longer the case. - /// - public static void LogOnAnonymous() { - InteropHelp.TestIfAvailableGameServer(); - NativeMethods.ISteamGameServer_LogOnAnonymous(); - } - - /// - /// / Begin process of logging game server out of steam - /// - public static void LogOff() { - InteropHelp.TestIfAvailableGameServer(); - NativeMethods.ISteamGameServer_LogOff(); - } - - /// - /// status functions - /// - public static bool BLoggedOn() { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServer_BLoggedOn(); - } - - public static bool BSecure() { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServer_BSecure(); - } - - public static CSteamID GetSteamID() { - InteropHelp.TestIfAvailableGameServer(); - return (CSteamID)NativeMethods.ISteamGameServer_GetSteamID(); - } - - /// - /// / Returns true if the master server has requested a restart. - /// / Only returns true once per request. - /// - public static bool WasRestartRequested() { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServer_WasRestartRequested(); - } - - /// - /// Server state. These properties may be changed at any time. - /// / Max player count that will be reported to server browser and client queries - /// - public static void SetMaxPlayerCount(int cPlayersMax) { - InteropHelp.TestIfAvailableGameServer(); - NativeMethods.ISteamGameServer_SetMaxPlayerCount(cPlayersMax); - } - - /// - /// / Number of bots. Default value is zero - /// - public static void SetBotPlayerCount(int cBotplayers) { - InteropHelp.TestIfAvailableGameServer(); - NativeMethods.ISteamGameServer_SetBotPlayerCount(cBotplayers); - } - - /// - /// / Set the name of server as it will appear in the server browser - /// / - /// / @see k_cbMaxGameServerName - /// - public static void SetServerName(string pszServerName) { - InteropHelp.TestIfAvailableGameServer(); - using (var pszServerName2 = new InteropHelp.UTF8StringHandle(pszServerName)) { - NativeMethods.ISteamGameServer_SetServerName(pszServerName2); - } - } - - /// - /// / Set name of map to report in the server browser - /// / - /// / @see k_cbMaxGameServerName - /// - public static void SetMapName(string pszMapName) { - InteropHelp.TestIfAvailableGameServer(); - using (var pszMapName2 = new InteropHelp.UTF8StringHandle(pszMapName)) { - NativeMethods.ISteamGameServer_SetMapName(pszMapName2); - } - } - - /// - /// / Let people know if your server will require a password - /// - public static void SetPasswordProtected(bool bPasswordProtected) { - InteropHelp.TestIfAvailableGameServer(); - NativeMethods.ISteamGameServer_SetPasswordProtected(bPasswordProtected); - } - - /// - /// / Spectator server. The default value is zero, meaning the service - /// / is not used. - /// - public static void SetSpectatorPort(ushort unSpectatorPort) { - InteropHelp.TestIfAvailableGameServer(); - NativeMethods.ISteamGameServer_SetSpectatorPort(unSpectatorPort); - } - - /// - /// / Name of the spectator server. (Only used if spectator port is nonzero.) - /// / - /// / @see k_cbMaxGameServerMapName - /// - public static void SetSpectatorServerName(string pszSpectatorServerName) { - InteropHelp.TestIfAvailableGameServer(); - using (var pszSpectatorServerName2 = new InteropHelp.UTF8StringHandle(pszSpectatorServerName)) { - NativeMethods.ISteamGameServer_SetSpectatorServerName(pszSpectatorServerName2); - } - } - - /// - /// / Call this to clear the whole list of key/values that are sent in rules queries. - /// - public static void ClearAllKeyValues() { - InteropHelp.TestIfAvailableGameServer(); - NativeMethods.ISteamGameServer_ClearAllKeyValues(); - } - - /// - /// / Call this to add/update a key/value pair. - /// - public static void SetKeyValue(string pKey, string pValue) { - InteropHelp.TestIfAvailableGameServer(); - using (var pKey2 = new InteropHelp.UTF8StringHandle(pKey)) - using (var pValue2 = new InteropHelp.UTF8StringHandle(pValue)) { - NativeMethods.ISteamGameServer_SetKeyValue(pKey2, pValue2); - } - } - - /// - /// / Sets a string defining the "gametags" for this server, this is optional, but if it is set - /// / it allows users to filter in the matchmaking/server-browser interfaces based on the value - /// / - /// / @see k_cbMaxGameServerTags - /// - public static void SetGameTags(string pchGameTags) { - InteropHelp.TestIfAvailableGameServer(); - using (var pchGameTags2 = new InteropHelp.UTF8StringHandle(pchGameTags)) { - NativeMethods.ISteamGameServer_SetGameTags(pchGameTags2); - } - } - - /// - /// / Sets a string defining the "gamedata" for this server, this is optional, but if it is set - /// / it allows users to filter in the matchmaking/server-browser interfaces based on the value - /// / don't set this unless it actually changes, its only uploaded to the master once (when - /// / acknowledged) - /// / - /// / @see k_cbMaxGameServerGameData - /// - public static void SetGameData(string pchGameData) { - InteropHelp.TestIfAvailableGameServer(); - using (var pchGameData2 = new InteropHelp.UTF8StringHandle(pchGameData)) { - NativeMethods.ISteamGameServer_SetGameData(pchGameData2); - } - } - - /// - /// / Region identifier. This is an optional field, the default value is empty, meaning the "world" region - /// - public static void SetRegion(string pszRegion) { - InteropHelp.TestIfAvailableGameServer(); - using (var pszRegion2 = new InteropHelp.UTF8StringHandle(pszRegion)) { - NativeMethods.ISteamGameServer_SetRegion(pszRegion2); - } - } - - /// - /// Player list management / authentication - /// Handles receiving a new connection from a Steam user. This call will ask the Steam - /// servers to validate the users identity, app ownership, and VAC status. If the Steam servers - /// are off-line, then it will validate the cached ticket itself which will validate app ownership - /// and identity. The AuthBlob here should be acquired on the game client using SteamUser()->InitiateGameConnection() - /// and must then be sent up to the game server for authentication. - /// Return Value: returns true if the users ticket passes basic checks. pSteamIDUser will contain the Steam ID of this user. pSteamIDUser must NOT be NULL - /// If the call succeeds then you should expect a GSClientApprove_t or GSClientDeny_t callback which will tell you whether authentication - /// for the user has succeeded or failed (the steamid in the callback will match the one returned by this call) - /// - public static bool SendUserConnectAndAuthenticate(uint unIPClient, byte[] pvAuthBlob, uint cubAuthBlobSize, out CSteamID pSteamIDUser) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServer_SendUserConnectAndAuthenticate(unIPClient, pvAuthBlob, cubAuthBlobSize, out pSteamIDUser); - } - - /// - /// Creates a fake user (ie, a bot) which will be listed as playing on the server, but skips validation. - /// Return Value: Returns a SteamID for the user to be tracked with, you should call HandleUserDisconnect() - /// when this user leaves the server just like you would for a real user. - /// - public static CSteamID CreateUnauthenticatedUserConnection() { - InteropHelp.TestIfAvailableGameServer(); - return (CSteamID)NativeMethods.ISteamGameServer_CreateUnauthenticatedUserConnection(); - } - - /// - /// Should be called whenever a user leaves our game server, this lets Steam internally - /// track which users are currently on which servers for the purposes of preventing a single - /// account being logged into multiple servers, showing who is currently on a server, etc. - /// - public static void SendUserDisconnect(CSteamID steamIDUser) { - InteropHelp.TestIfAvailableGameServer(); - NativeMethods.ISteamGameServer_SendUserDisconnect(steamIDUser); - } - - /// - /// Update the data to be displayed in the server browser and matchmaking interfaces for a user - /// currently connected to the server. For regular users you must call this after you receive a - /// GSUserValidationSuccess callback. - /// Return Value: true if successful, false if failure (ie, steamIDUser wasn't for an active player) - /// - public static bool BUpdateUserData(CSteamID steamIDUser, string pchPlayerName, uint uScore) { - InteropHelp.TestIfAvailableGameServer(); - using (var pchPlayerName2 = new InteropHelp.UTF8StringHandle(pchPlayerName)) { - return NativeMethods.ISteamGameServer_BUpdateUserData(steamIDUser, pchPlayerName2, uScore); - } - } - - /// - /// New auth system APIs - do not mix with the old auth system APIs. - /// ---------------------------------------------------------------- - /// Retrieve ticket to be sent to the entity who wishes to authenticate you ( using BeginAuthSession API ). - /// pcbTicket retrieves the length of the actual ticket. - /// - public static HAuthTicket GetAuthSessionTicket(byte[] pTicket, int cbMaxTicket, out uint pcbTicket) { - InteropHelp.TestIfAvailableGameServer(); - return (HAuthTicket)NativeMethods.ISteamGameServer_GetAuthSessionTicket(pTicket, cbMaxTicket, out pcbTicket); - } - - /// - /// Authenticate ticket ( from GetAuthSessionTicket ) from entity steamID to be sure it is valid and isnt reused - /// Registers for callbacks if the entity goes offline or cancels the ticket ( see ValidateAuthTicketResponse_t callback and EAuthSessionResponse ) - /// - public static EBeginAuthSessionResult BeginAuthSession(byte[] pAuthTicket, int cbAuthTicket, CSteamID steamID) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServer_BeginAuthSession(pAuthTicket, cbAuthTicket, steamID); - } - - /// - /// Stop tracking started by BeginAuthSession - called when no longer playing game with this entity - /// - public static void EndAuthSession(CSteamID steamID) { - InteropHelp.TestIfAvailableGameServer(); - NativeMethods.ISteamGameServer_EndAuthSession(steamID); - } - - /// - /// Cancel auth ticket from GetAuthSessionTicket, called when no longer playing game with the entity you gave the ticket to - /// - public static void CancelAuthTicket(HAuthTicket hAuthTicket) { - InteropHelp.TestIfAvailableGameServer(); - NativeMethods.ISteamGameServer_CancelAuthTicket(hAuthTicket); - } - - /// - /// After receiving a user's authentication data, and passing it to SendUserConnectAndAuthenticate, use this function - /// to determine if the user owns downloadable content specified by the provided AppID. - /// - public static EUserHasLicenseForAppResult UserHasLicenseForApp(CSteamID steamID, AppId_t appID) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServer_UserHasLicenseForApp(steamID, appID); - } - - /// - /// Ask if a user in in the specified group, results returns async by GSUserGroupStatus_t - /// returns false if we're not connected to the steam servers and thus cannot ask - /// - public static bool RequestUserGroupStatus(CSteamID steamIDUser, CSteamID steamIDGroup) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServer_RequestUserGroupStatus(steamIDUser, steamIDGroup); - } - - /// - /// these two functions s are deprecated, and will not return results - /// they will be removed in a future version of the SDK - /// - public static void GetGameplayStats() { - InteropHelp.TestIfAvailableGameServer(); - NativeMethods.ISteamGameServer_GetGameplayStats(); - } - - public static SteamAPICall_t GetServerReputation() { - InteropHelp.TestIfAvailableGameServer(); - return (SteamAPICall_t)NativeMethods.ISteamGameServer_GetServerReputation(); - } - - /// - /// Returns the public IP of the server according to Steam, useful when the server is - /// behind NAT and you want to advertise its IP in a lobby for other clients to directly - /// connect to - /// - public static uint GetPublicIP() { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServer_GetPublicIP(); - } - - /// - /// These are in GameSocketShare mode, where instead of ISteamGameServer creating its own - /// socket to talk to the master server on, it lets the game use its socket to forward messages - /// back and forth. This prevents us from requiring server ops to open up yet another port - /// in their firewalls. - /// the IP address and port should be in host order, i.e 127.0.0.1 == 0x7f000001 - /// These are used when you've elected to multiplex the game server's UDP socket - /// rather than having the master server updater use its own sockets. - /// Source games use this to simplify the job of the server admins, so they - /// don't have to open up more ports on their firewalls. - /// Call this when a packet that starts with 0xFFFFFFFF comes in. That means - /// it's for us. - /// - public static bool HandleIncomingPacket(byte[] pData, int cbData, uint srcIP, ushort srcPort) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServer_HandleIncomingPacket(pData, cbData, srcIP, srcPort); - } - - /// - /// AFTER calling HandleIncomingPacket for any packets that came in that frame, call this. - /// This gets a packet that the master server updater needs to send out on UDP. - /// It returns the length of the packet it wants to send, or 0 if there are no more packets to send. - /// Call this each frame until it returns 0. - /// - public static int GetNextOutgoingPacket(byte[] pOut, int cbMaxOut, out uint pNetAdr, out ushort pPort) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServer_GetNextOutgoingPacket(pOut, cbMaxOut, out pNetAdr, out pPort); - } - - /// - /// Control heartbeats / advertisement with master server - /// Call this as often as you like to tell the master server updater whether or not - /// you want it to be active (default: off). - /// - public static void EnableHeartbeats(bool bActive) { - InteropHelp.TestIfAvailableGameServer(); - NativeMethods.ISteamGameServer_EnableHeartbeats(bActive); - } - - /// - /// You usually don't need to modify this. - /// Pass -1 to use the default value for iHeartbeatInterval. - /// Some mods change this. - /// - public static void SetHeartbeatInterval(int iHeartbeatInterval) { - InteropHelp.TestIfAvailableGameServer(); - NativeMethods.ISteamGameServer_SetHeartbeatInterval(iHeartbeatInterval); - } - - /// - /// Force a heartbeat to steam at the next opportunity - /// - public static void ForceHeartbeat() { - InteropHelp.TestIfAvailableGameServer(); - NativeMethods.ISteamGameServer_ForceHeartbeat(); - } - - /// - /// associate this game server with this clan for the purposes of computing player compat - /// - public static SteamAPICall_t AssociateWithClan(CSteamID steamIDClan) { - InteropHelp.TestIfAvailableGameServer(); - return (SteamAPICall_t)NativeMethods.ISteamGameServer_AssociateWithClan(steamIDClan); - } - - /// - /// ask if any of the current players dont want to play with this new player - or vice versa - /// - public static SteamAPICall_t ComputeNewPlayerCompatibility(CSteamID steamIDNewPlayer) { - InteropHelp.TestIfAvailableGameServer(); - return (SteamAPICall_t)NativeMethods.ISteamGameServer_ComputeNewPlayerCompatibility(steamIDNewPlayer); - } - } -} \ No newline at end of file diff --git a/Assets/Plugins/Steamworks.NET/autogen/isteamgameserver.cs.meta b/Assets/Plugins/Steamworks.NET/autogen/isteamgameserver.cs.meta deleted file mode 100644 index 8c5a662..0000000 --- a/Assets/Plugins/Steamworks.NET/autogen/isteamgameserver.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 8527fac438eb30147a9271e9c8cc2bc1 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/Plugins/Steamworks.NET/autogen/isteamgameserverhttp.cs b/Assets/Plugins/Steamworks.NET/autogen/isteamgameserverhttp.cs deleted file mode 100644 index f18d95a..0000000 --- a/Assets/Plugins/Steamworks.NET/autogen/isteamgameserverhttp.cs +++ /dev/null @@ -1,268 +0,0 @@ -// This file is provided under The MIT License as part of Steamworks.NET. -// Copyright (c) 2013-2015 Riley Labrecque -// Please see the included LICENSE.txt for additional information. - -// This file is automatically generated. -// Changes to this file will be reverted when you update Steamworks.NET - -using System; -using System.Runtime.InteropServices; - -namespace Steamworks { - public static class SteamGameServerHTTP { - /// - /// Initializes a new HTTP request, returning a handle to use in further operations on it. Requires - /// the method (GET or POST) and the absolute URL for the request. Both http and https are supported, - /// so this string must start with http:// or https:// and should look like http://store.steampowered.com/app/250/ - /// or such. - /// - public static HTTPRequestHandle CreateHTTPRequest(EHTTPMethod eHTTPRequestMethod, string pchAbsoluteURL) { - InteropHelp.TestIfAvailableGameServer(); - using (var pchAbsoluteURL2 = new InteropHelp.UTF8StringHandle(pchAbsoluteURL)) { - return (HTTPRequestHandle)NativeMethods.ISteamGameServerHTTP_CreateHTTPRequest(eHTTPRequestMethod, pchAbsoluteURL2); - } - } - - /// - /// Set a context value for the request, which will be returned in the HTTPRequestCompleted_t callback after - /// sending the request. This is just so the caller can easily keep track of which callbacks go with which request data. - /// - public static bool SetHTTPRequestContextValue(HTTPRequestHandle hRequest, ulong ulContextValue) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServerHTTP_SetHTTPRequestContextValue(hRequest, ulContextValue); - } - - /// - /// Set a timeout in seconds for the HTTP request, must be called prior to sending the request. Default - /// timeout is 60 seconds if you don't call this. Returns false if the handle is invalid, or the request - /// has already been sent. - /// - public static bool SetHTTPRequestNetworkActivityTimeout(HTTPRequestHandle hRequest, uint unTimeoutSeconds) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServerHTTP_SetHTTPRequestNetworkActivityTimeout(hRequest, unTimeoutSeconds); - } - - /// - /// Set a request header value for the request, must be called prior to sending the request. Will - /// return false if the handle is invalid or the request is already sent. - /// - public static bool SetHTTPRequestHeaderValue(HTTPRequestHandle hRequest, string pchHeaderName, string pchHeaderValue) { - InteropHelp.TestIfAvailableGameServer(); - using (var pchHeaderName2 = new InteropHelp.UTF8StringHandle(pchHeaderName)) - using (var pchHeaderValue2 = new InteropHelp.UTF8StringHandle(pchHeaderValue)) { - return NativeMethods.ISteamGameServerHTTP_SetHTTPRequestHeaderValue(hRequest, pchHeaderName2, pchHeaderValue2); - } - } - - /// - /// Set a GET or POST parameter value on the request, which is set will depend on the EHTTPMethod specified - /// when creating the request. Must be called prior to sending the request. Will return false if the - /// handle is invalid or the request is already sent. - /// - public static bool SetHTTPRequestGetOrPostParameter(HTTPRequestHandle hRequest, string pchParamName, string pchParamValue) { - InteropHelp.TestIfAvailableGameServer(); - using (var pchParamName2 = new InteropHelp.UTF8StringHandle(pchParamName)) - using (var pchParamValue2 = new InteropHelp.UTF8StringHandle(pchParamValue)) { - return NativeMethods.ISteamGameServerHTTP_SetHTTPRequestGetOrPostParameter(hRequest, pchParamName2, pchParamValue2); - } - } - - /// - /// Sends the HTTP request, will return false on a bad handle, otherwise use SteamCallHandle to wait on - /// asynchronous response via callback. - /// Note: If the user is in offline mode in Steam, then this will add a only-if-cached cache-control - /// header and only do a local cache lookup rather than sending any actual remote request. - /// - public static bool SendHTTPRequest(HTTPRequestHandle hRequest, out SteamAPICall_t pCallHandle) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServerHTTP_SendHTTPRequest(hRequest, out pCallHandle); - } - - /// - /// Sends the HTTP request, will return false on a bad handle, otherwise use SteamCallHandle to wait on - /// asynchronous response via callback for completion, and listen for HTTPRequestHeadersReceived_t and - /// HTTPRequestDataReceived_t callbacks while streaming. - /// - public static bool SendHTTPRequestAndStreamResponse(HTTPRequestHandle hRequest, out SteamAPICall_t pCallHandle) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServerHTTP_SendHTTPRequestAndStreamResponse(hRequest, out pCallHandle); - } - - /// - /// Defers a request you have sent, the actual HTTP client code may have many requests queued, and this will move - /// the specified request to the tail of the queue. Returns false on invalid handle, or if the request is not yet sent. - /// - public static bool DeferHTTPRequest(HTTPRequestHandle hRequest) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServerHTTP_DeferHTTPRequest(hRequest); - } - - /// - /// Prioritizes a request you have sent, the actual HTTP client code may have many requests queued, and this will move - /// the specified request to the head of the queue. Returns false on invalid handle, or if the request is not yet sent. - /// - public static bool PrioritizeHTTPRequest(HTTPRequestHandle hRequest) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServerHTTP_PrioritizeHTTPRequest(hRequest); - } - - /// - /// Checks if a response header is present in a HTTP response given a handle from HTTPRequestCompleted_t, also - /// returns the size of the header value if present so the caller and allocate a correctly sized buffer for - /// GetHTTPResponseHeaderValue. - /// - public static bool GetHTTPResponseHeaderSize(HTTPRequestHandle hRequest, string pchHeaderName, out uint unResponseHeaderSize) { - InteropHelp.TestIfAvailableGameServer(); - using (var pchHeaderName2 = new InteropHelp.UTF8StringHandle(pchHeaderName)) { - return NativeMethods.ISteamGameServerHTTP_GetHTTPResponseHeaderSize(hRequest, pchHeaderName2, out unResponseHeaderSize); - } - } - - /// - /// Gets header values from a HTTP response given a handle from HTTPRequestCompleted_t, will return false if the - /// header is not present or if your buffer is too small to contain it's value. You should first call - /// BGetHTTPResponseHeaderSize to check for the presence of the header and to find out the size buffer needed. - /// - public static bool GetHTTPResponseHeaderValue(HTTPRequestHandle hRequest, string pchHeaderName, byte[] pHeaderValueBuffer, uint unBufferSize) { - InteropHelp.TestIfAvailableGameServer(); - using (var pchHeaderName2 = new InteropHelp.UTF8StringHandle(pchHeaderName)) { - return NativeMethods.ISteamGameServerHTTP_GetHTTPResponseHeaderValue(hRequest, pchHeaderName2, pHeaderValueBuffer, unBufferSize); - } - } - - /// - /// Gets the size of the body data from a HTTP response given a handle from HTTPRequestCompleted_t, will return false if the - /// handle is invalid. - /// - public static bool GetHTTPResponseBodySize(HTTPRequestHandle hRequest, out uint unBodySize) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServerHTTP_GetHTTPResponseBodySize(hRequest, out unBodySize); - } - - /// - /// Gets the body data from a HTTP response given a handle from HTTPRequestCompleted_t, will return false if the - /// handle is invalid or is to a streaming response, or if the provided buffer is not the correct size. Use BGetHTTPResponseBodySize first to find out - /// the correct buffer size to use. - /// - public static bool GetHTTPResponseBodyData(HTTPRequestHandle hRequest, byte[] pBodyDataBuffer, uint unBufferSize) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServerHTTP_GetHTTPResponseBodyData(hRequest, pBodyDataBuffer, unBufferSize); - } - - /// - /// Gets the body data from a streaming HTTP response given a handle from HTTPRequestDataReceived_t. Will return false if the - /// handle is invalid or is to a non-streaming response (meaning it wasn't sent with SendHTTPRequestAndStreamResponse), or if the buffer size and offset - /// do not match the size and offset sent in HTTPRequestDataReceived_t. - /// - public static bool GetHTTPStreamingResponseBodyData(HTTPRequestHandle hRequest, uint cOffset, byte[] pBodyDataBuffer, uint unBufferSize) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServerHTTP_GetHTTPStreamingResponseBodyData(hRequest, cOffset, pBodyDataBuffer, unBufferSize); - } - - /// - /// Releases an HTTP response handle, should always be called to free resources after receiving a HTTPRequestCompleted_t - /// callback and finishing using the response. - /// - public static bool ReleaseHTTPRequest(HTTPRequestHandle hRequest) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServerHTTP_ReleaseHTTPRequest(hRequest); - } - - /// - /// Gets progress on downloading the body for the request. This will be zero unless a response header has already been - /// received which included a content-length field. For responses that contain no content-length it will report - /// zero for the duration of the request as the size is unknown until the connection closes. - /// - public static bool GetHTTPDownloadProgressPct(HTTPRequestHandle hRequest, out float pflPercentOut) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServerHTTP_GetHTTPDownloadProgressPct(hRequest, out pflPercentOut); - } - - /// - /// Sets the body for an HTTP Post request. Will fail and return false on a GET request, and will fail if POST params - /// have already been set for the request. Setting this raw body makes it the only contents for the post, the pchContentType - /// parameter will set the content-type header for the request so the server may know how to interpret the body. - /// - public static bool SetHTTPRequestRawPostBody(HTTPRequestHandle hRequest, string pchContentType, byte[] pubBody, uint unBodyLen) { - InteropHelp.TestIfAvailableGameServer(); - using (var pchContentType2 = new InteropHelp.UTF8StringHandle(pchContentType)) { - return NativeMethods.ISteamGameServerHTTP_SetHTTPRequestRawPostBody(hRequest, pchContentType2, pubBody, unBodyLen); - } - } - - /// - /// Creates a cookie container handle which you must later free with ReleaseCookieContainer(). If bAllowResponsesToModify=true - /// than any response to your requests using this cookie container may add new cookies which may be transmitted with - /// future requests. If bAllowResponsesToModify=false than only cookies you explicitly set will be sent. This API is just for - /// during process lifetime, after steam restarts no cookies are persisted and you have no way to access the cookie container across - /// repeat executions of your process. - /// - public static HTTPCookieContainerHandle CreateCookieContainer(bool bAllowResponsesToModify) { - InteropHelp.TestIfAvailableGameServer(); - return (HTTPCookieContainerHandle)NativeMethods.ISteamGameServerHTTP_CreateCookieContainer(bAllowResponsesToModify); - } - - /// - /// Release a cookie container you are finished using, freeing it's memory - /// - public static bool ReleaseCookieContainer(HTTPCookieContainerHandle hCookieContainer) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServerHTTP_ReleaseCookieContainer(hCookieContainer); - } - - /// - /// Adds a cookie to the specified cookie container that will be used with future requests. - /// - public static bool SetCookie(HTTPCookieContainerHandle hCookieContainer, string pchHost, string pchUrl, string pchCookie) { - InteropHelp.TestIfAvailableGameServer(); - using (var pchHost2 = new InteropHelp.UTF8StringHandle(pchHost)) - using (var pchUrl2 = new InteropHelp.UTF8StringHandle(pchUrl)) - using (var pchCookie2 = new InteropHelp.UTF8StringHandle(pchCookie)) { - return NativeMethods.ISteamGameServerHTTP_SetCookie(hCookieContainer, pchHost2, pchUrl2, pchCookie2); - } - } - - /// - /// Set the cookie container to use for a HTTP request - /// - public static bool SetHTTPRequestCookieContainer(HTTPRequestHandle hRequest, HTTPCookieContainerHandle hCookieContainer) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServerHTTP_SetHTTPRequestCookieContainer(hRequest, hCookieContainer); - } - - /// - /// Set the extra user agent info for a request, this doesn't clobber the normal user agent, it just adds the extra info on the end - /// - public static bool SetHTTPRequestUserAgentInfo(HTTPRequestHandle hRequest, string pchUserAgentInfo) { - InteropHelp.TestIfAvailableGameServer(); - using (var pchUserAgentInfo2 = new InteropHelp.UTF8StringHandle(pchUserAgentInfo)) { - return NativeMethods.ISteamGameServerHTTP_SetHTTPRequestUserAgentInfo(hRequest, pchUserAgentInfo2); - } - } - - /// - /// Set that https request should require verified SSL certificate via machines certificate trust store - /// - public static bool SetHTTPRequestRequiresVerifiedCertificate(HTTPRequestHandle hRequest, bool bRequireVerifiedCertificate) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServerHTTP_SetHTTPRequestRequiresVerifiedCertificate(hRequest, bRequireVerifiedCertificate); - } - - /// - /// Set an absolute timeout on the HTTP request, this is just a total time timeout different than the network activity timeout - /// which can bump everytime we get more data - /// - public static bool SetHTTPRequestAbsoluteTimeoutMS(HTTPRequestHandle hRequest, uint unMilliseconds) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServerHTTP_SetHTTPRequestAbsoluteTimeoutMS(hRequest, unMilliseconds); - } - - /// - /// Check if the reason the request failed was because we timed it out (rather than some harder failure) - /// - public static bool GetHTTPRequestWasTimedOut(HTTPRequestHandle hRequest, out bool pbWasTimedOut) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServerHTTP_GetHTTPRequestWasTimedOut(hRequest, out pbWasTimedOut); - } - } -} \ No newline at end of file diff --git a/Assets/Plugins/Steamworks.NET/autogen/isteamgameserverhttp.cs.meta b/Assets/Plugins/Steamworks.NET/autogen/isteamgameserverhttp.cs.meta deleted file mode 100644 index e5ab7de..0000000 --- a/Assets/Plugins/Steamworks.NET/autogen/isteamgameserverhttp.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: e9bace0ba69272542b30dc78c35b4faf -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/Plugins/Steamworks.NET/autogen/isteamgameserverinventory.cs b/Assets/Plugins/Steamworks.NET/autogen/isteamgameserverinventory.cs deleted file mode 100644 index faeb60e..0000000 --- a/Assets/Plugins/Steamworks.NET/autogen/isteamgameserverinventory.cs +++ /dev/null @@ -1,321 +0,0 @@ -// This file is provided under The MIT License as part of Steamworks.NET. -// Copyright (c) 2013-2015 Riley Labrecque -// Please see the included LICENSE.txt for additional information. - -// This file is automatically generated. -// Changes to this file will be reverted when you update Steamworks.NET - -using System; -using System.Runtime.InteropServices; - -namespace Steamworks { - public static class SteamGameServerInventory { - /// - /// INVENTORY ASYNC RESULT MANAGEMENT - /// Asynchronous inventory queries always output a result handle which can be used with - /// GetResultStatus, GetResultItems, etc. A SteamInventoryResultReady_t callback will - /// be triggered when the asynchronous result becomes ready (or fails). - /// Find out the status of an asynchronous inventory result handle. Possible values: - /// k_EResultPending - still in progress - /// k_EResultOK - done, result ready - /// k_EResultExpired - done, result ready, maybe out of date (see DeserializeResult) - /// k_EResultInvalidParam - ERROR: invalid API call parameters - /// k_EResultServiceUnavailable - ERROR: service temporarily down, you may retry later - /// k_EResultLimitExceeded - ERROR: operation would exceed per-user inventory limits - /// k_EResultFail - ERROR: unknown / generic error - /// - public static EResult GetResultStatus(SteamInventoryResult_t resultHandle) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServerInventory_GetResultStatus(resultHandle); - } - - /// - /// Copies the contents of a result set into a flat array. The specific - /// contents of the result set depend on which query which was used. - /// - public static bool GetResultItems(SteamInventoryResult_t resultHandle, SteamItemDetails_t[] pOutItemsArray, ref uint punOutItemsArraySize) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServerInventory_GetResultItems(resultHandle, pOutItemsArray, ref punOutItemsArraySize); - } - - /// - /// Returns the server time at which the result was generated. Compare against - /// the value of IClientUtils::GetServerRealTime() to determine age. - /// - public static uint GetResultTimestamp(SteamInventoryResult_t resultHandle) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServerInventory_GetResultTimestamp(resultHandle); - } - - /// - /// Returns true if the result belongs to the target steam ID, false if the - /// result does not. This is important when using DeserializeResult, to verify - /// that a remote player is not pretending to have a different user's inventory. - /// - public static bool CheckResultSteamID(SteamInventoryResult_t resultHandle, CSteamID steamIDExpected) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServerInventory_CheckResultSteamID(resultHandle, steamIDExpected); - } - - /// - /// Destroys a result handle and frees all associated memory. - /// - public static void DestroyResult(SteamInventoryResult_t resultHandle) { - InteropHelp.TestIfAvailableGameServer(); - NativeMethods.ISteamGameServerInventory_DestroyResult(resultHandle); - } - - /// - /// INVENTORY ASYNC QUERY - /// Captures the entire state of the current user's Steam inventory. - /// You must call DestroyResult on this handle when you are done with it. - /// Returns false and sets *pResultHandle to zero if inventory is unavailable. - /// Note: calls to this function are subject to rate limits and may return - /// cached results if called too frequently. It is suggested that you call - /// this function only when you are about to display the user's full inventory, - /// or if you expect that the inventory may have changed. - /// - public static bool GetAllItems(out SteamInventoryResult_t pResultHandle) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServerInventory_GetAllItems(out pResultHandle); - } - - /// - /// Captures the state of a subset of the current user's Steam inventory, - /// identified by an array of item instance IDs. The results from this call - /// can be serialized and passed to other players to "prove" that the current - /// user owns specific items, without exposing the user's entire inventory. - /// For example, you could call GetItemsByID with the IDs of the user's - /// currently equipped cosmetic items and serialize this to a buffer, and - /// then transmit this buffer to other players upon joining a game. - /// - public static bool GetItemsByID(out SteamInventoryResult_t pResultHandle, SteamItemInstanceID_t[] pInstanceIDs, uint unCountInstanceIDs) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServerInventory_GetItemsByID(out pResultHandle, pInstanceIDs, unCountInstanceIDs); - } - - /// - /// RESULT SERIALIZATION AND AUTHENTICATION - /// Serialized result sets contain a short signature which can't be forged - /// or replayed across different game sessions. A result set can be serialized - /// on the local client, transmitted to other players via your game networking, - /// and deserialized by the remote players. This is a secure way of preventing - /// hackers from lying about posessing rare/high-value items. - /// Serializes a result set with signature bytes to an output buffer. Pass - /// NULL as an output buffer to get the required size via punOutBufferSize. - /// The size of a serialized result depends on the number items which are being - /// serialized. When securely transmitting items to other players, it is - /// recommended to use "GetItemsByID" first to create a minimal result set. - /// Results have a built-in timestamp which will be considered "expired" after - /// an hour has elapsed. See DeserializeResult for expiration handling. - /// - public static bool SerializeResult(SteamInventoryResult_t resultHandle, byte[] pOutBuffer, out uint punOutBufferSize) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServerInventory_SerializeResult(resultHandle, pOutBuffer, out punOutBufferSize); - } - - /// - /// Deserializes a result set and verifies the signature bytes. Returns false - /// if bRequireFullOnlineVerify is set but Steam is running in Offline mode. - /// Otherwise returns true and then delivers error codes via GetResultStatus. - /// The bRESERVED_MUST_BE_FALSE flag is reserved for future use and should not - /// be set to true by your game at this time. - /// DeserializeResult has a potential soft-failure mode where the handle status - /// is set to k_EResultExpired. GetResultItems() still succeeds in this mode. - /// The "expired" result could indicate that the data may be out of date - not - /// just due to timed expiration (one hour), but also because one of the items - /// in the result set may have been traded or consumed since the result set was - /// generated. You could compare the timestamp from GetResultTimestamp() to - /// ISteamUtils::GetServerRealTime() to determine how old the data is. You could - /// simply ignore the "expired" result code and continue as normal, or you - /// could challenge the player with expired data to send an updated result set. - /// - public static bool DeserializeResult(out SteamInventoryResult_t pOutResultHandle, byte[] pBuffer, uint unBufferSize, bool bRESERVED_MUST_BE_FALSE = false) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServerInventory_DeserializeResult(out pOutResultHandle, pBuffer, unBufferSize, bRESERVED_MUST_BE_FALSE); - } - - /// - /// INVENTORY ASYNC MODIFICATION - /// GenerateItems() creates one or more items and then generates a SteamInventoryCallback_t - /// notification with a matching nCallbackContext parameter. This API is insecure, and could - /// be abused by hacked clients. It is, however, very useful as a development cheat or as - /// a means of prototyping item-related features for your game. The use of GenerateItems can - /// be restricted to certain item definitions or fully blocked via the Steamworks website. - /// If punArrayQuantity is not NULL, it should be the same length as pArrayItems and should - /// describe the quantity of each item to generate. - /// - public static bool GenerateItems(out SteamInventoryResult_t pResultHandle, SteamItemDef_t[] pArrayItemDefs, uint[] punArrayQuantity, uint unArrayLength) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServerInventory_GenerateItems(out pResultHandle, pArrayItemDefs, punArrayQuantity, unArrayLength); - } - - /// - /// GrantPromoItems() checks the list of promotional items for which the user may be eligible - /// and grants the items (one time only). On success, the result set will include items which - /// were granted, if any. If no items were granted because the user isn't eligible for any - /// promotions, this is still considered a success. - /// - public static bool GrantPromoItems(out SteamInventoryResult_t pResultHandle) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServerInventory_GrantPromoItems(out pResultHandle); - } - - /// - /// AddPromoItem() / AddPromoItems() are restricted versions of GrantPromoItems(). Instead of - /// scanning for all eligible promotional items, the check is restricted to a single item - /// definition or set of item definitions. This can be useful if your game has custom UI for - /// showing a specific promo item to the user. - /// - public static bool AddPromoItem(out SteamInventoryResult_t pResultHandle, SteamItemDef_t itemDef) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServerInventory_AddPromoItem(out pResultHandle, itemDef); - } - - public static bool AddPromoItems(out SteamInventoryResult_t pResultHandle, SteamItemDef_t[] pArrayItemDefs, uint unArrayLength) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServerInventory_AddPromoItems(out pResultHandle, pArrayItemDefs, unArrayLength); - } - - /// - /// ConsumeItem() removes items from the inventory, permanently. They cannot be recovered. - /// Not for the faint of heart - if your game implements item removal at all, a high-friction - /// UI confirmation process is highly recommended. Similar to GenerateItems, punArrayQuantity - /// can be NULL or else an array of the same length as pArrayItems which describe the quantity - /// of each item to destroy. ConsumeItem can be restricted to certain item definitions or - /// fully blocked via the Steamworks website to minimize support/abuse issues such as the - /// clasic "my brother borrowed my laptop and deleted all of my rare items". - /// - public static bool ConsumeItem(out SteamInventoryResult_t pResultHandle, SteamItemInstanceID_t itemConsume, uint unQuantity) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServerInventory_ConsumeItem(out pResultHandle, itemConsume, unQuantity); - } - - /// - /// ExchangeItems() is an atomic combination of GenerateItems and DestroyItems. It can be - /// used to implement crafting recipes or transmutations, or items which unpack themselves - /// into other items. Like GenerateItems, this is a flexible and dangerous API which is - /// meant for rapid prototyping. You can configure restrictions on ExchangeItems via the - /// Steamworks website, such as limiting it to a whitelist of input/output combinations - /// corresponding to recipes. - /// (Note: although GenerateItems may be hard or impossible to use securely in your game, - /// ExchangeItems is perfectly reasonable to use once the whitelists are set accordingly.) - /// - public static bool ExchangeItems(out SteamInventoryResult_t pResultHandle, SteamItemDef_t[] pArrayGenerate, uint[] punArrayGenerateQuantity, uint unArrayGenerateLength, SteamItemInstanceID_t[] pArrayDestroy, uint[] punArrayDestroyQuantity, uint unArrayDestroyLength) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServerInventory_ExchangeItems(out pResultHandle, pArrayGenerate, punArrayGenerateQuantity, unArrayGenerateLength, pArrayDestroy, punArrayDestroyQuantity, unArrayDestroyLength); - } - - /// - /// TransferItemQuantity() is intended for use with items which are "stackable" (can have - /// quantity greater than one). It can be used to split a stack into two, or to transfer - /// quantity from one stack into another stack of identical items. To split one stack into - /// two, pass k_SteamItemInstanceIDInvalid for itemIdDest and a new item will be generated. - /// - public static bool TransferItemQuantity(out SteamInventoryResult_t pResultHandle, SteamItemInstanceID_t itemIdSource, uint unQuantity, SteamItemInstanceID_t itemIdDest) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServerInventory_TransferItemQuantity(out pResultHandle, itemIdSource, unQuantity, itemIdDest); - } - - /// - /// TIMED DROPS AND PLAYTIME CREDIT - /// Applications which use timed-drop mechanics should call SendItemDropHeartbeat() when - /// active gameplay begins, and at least once every two minutes afterwards. The backend - /// performs its own time calculations, so the precise timing of the heartbeat is not - /// critical as long as you send at least one heartbeat every two minutes. Calling the - /// function more often than that is not harmful, it will simply have no effect. Note: - /// players may be able to spoof this message by hacking their client, so you should not - /// attempt to use this as a mechanism to restrict playtime credits. It is simply meant - /// to distinguish between being in any kind of gameplay situation vs the main menu or - /// a pre-game launcher window. (If you are stingy with handing out playtime credit, it - /// will only encourage players to run bots or use mouse/kb event simulators.) - /// Playtime credit accumulation can be capped on a daily or weekly basis through your - /// Steamworks configuration. - /// - public static void SendItemDropHeartbeat() { - InteropHelp.TestIfAvailableGameServer(); - NativeMethods.ISteamGameServerInventory_SendItemDropHeartbeat(); - } - - /// - /// Playtime credit must be consumed and turned into item drops by your game. Only item - /// definitions which are marked as "playtime item generators" can be spawned. The call - /// will return an empty result set if there is not enough playtime credit for a drop. - /// Your game should call TriggerItemDrop at an appropriate time for the user to receive - /// new items, such as between rounds or while the player is dead. Note that players who - /// hack their clients could modify the value of "dropListDefinition", so do not use it - /// to directly control rarity. It is primarily useful during testing and development, - /// where you may wish to perform experiments with different types of drops. - /// - public static bool TriggerItemDrop(out SteamInventoryResult_t pResultHandle, SteamItemDef_t dropListDefinition) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServerInventory_TriggerItemDrop(out pResultHandle, dropListDefinition); - } - - /// - /// IN-GAME TRADING - /// TradeItems() implements limited in-game trading of items, if you prefer not to use - /// the overlay or an in-game web browser to perform Steam Trading through the website. - /// You should implement a UI where both players can see and agree to a trade, and then - /// each client should call TradeItems simultaneously (+/- 5 seconds) with matching - /// (but reversed) parameters. The result is the same as if both players performed a - /// Steam Trading transaction through the web. Each player will get an inventory result - /// confirming the removal or quantity changes of the items given away, and the new - /// item instance id numbers and quantities of the received items. - /// (Note: new item instance IDs are generated whenever an item changes ownership.) - /// - public static bool TradeItems(out SteamInventoryResult_t pResultHandle, CSteamID steamIDTradePartner, SteamItemInstanceID_t[] pArrayGive, uint[] pArrayGiveQuantity, uint nArrayGiveLength, SteamItemInstanceID_t[] pArrayGet, uint[] pArrayGetQuantity, uint nArrayGetLength) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServerInventory_TradeItems(out pResultHandle, steamIDTradePartner, pArrayGive, pArrayGiveQuantity, nArrayGiveLength, pArrayGet, pArrayGetQuantity, nArrayGetLength); - } - - /// - /// ITEM DEFINITIONS - /// Item definitions are a mapping of "definition IDs" (integers between 1 and 1000000) - /// to a set of string properties. Some of these properties are required to display items - /// on the Steam community web site. Other properties can be defined by applications. - /// Use of these functions is optional; there is no reason to call LoadItemDefinitions - /// if your game hardcodes the numeric definition IDs (eg, purple face mask = 20, blue - /// weapon mod = 55) and does not allow for adding new item types without a client patch. - /// LoadItemDefinitions triggers the automatic load and refresh of item definitions. - /// Every time new item definitions are available (eg, from the dynamic addition of new - /// item types while players are still in-game), a SteamInventoryDefinitionUpdate_t - /// callback will be fired. - /// - public static bool LoadItemDefinitions() { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServerInventory_LoadItemDefinitions(); - } - - /// - /// GetItemDefinitionIDs returns the set of all defined item definition IDs (which are - /// defined via Steamworks configuration, and not necessarily contiguous integers). - /// If pItemDefIDs is null, the call will return true and *punItemDefIDsArraySize will - /// contain the total size necessary for a subsequent call. Otherwise, the call will - /// return false if and only if there is not enough space in the output array. - /// - public static bool GetItemDefinitionIDs(SteamItemDef_t[] pItemDefIDs, out uint punItemDefIDsArraySize) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServerInventory_GetItemDefinitionIDs(pItemDefIDs, out punItemDefIDsArraySize); - } - - /// - /// GetItemDefinitionProperty returns a string property from a given item definition. - /// Note that some properties (for example, "name") may be localized and will depend - /// on the current Steam language settings (see ISteamApps::GetCurrentGameLanguage). - /// Property names are always composed of ASCII letters, numbers, and/or underscores. - /// Pass a NULL pointer for pchPropertyName to get a comma - separated list of available - /// property names. - /// - public static bool GetItemDefinitionProperty(SteamItemDef_t iDefinition, string pchPropertyName, out string pchValueBuffer, ref uint punValueBufferSize) { - InteropHelp.TestIfAvailableGameServer(); - IntPtr pchValueBuffer2 = Marshal.AllocHGlobal((int)punValueBufferSize); - using (var pchPropertyName2 = new InteropHelp.UTF8StringHandle(pchPropertyName)) { - bool ret = NativeMethods.ISteamGameServerInventory_GetItemDefinitionProperty(iDefinition, pchPropertyName2, pchValueBuffer2, ref punValueBufferSize); - pchValueBuffer = ret ? InteropHelp.PtrToStringUTF8(pchValueBuffer2) : null; - Marshal.FreeHGlobal(pchValueBuffer2); - return ret; - } - } - } -} \ No newline at end of file diff --git a/Assets/Plugins/Steamworks.NET/autogen/isteamgameserverinventory.cs.meta b/Assets/Plugins/Steamworks.NET/autogen/isteamgameserverinventory.cs.meta deleted file mode 100644 index 5270b6e..0000000 --- a/Assets/Plugins/Steamworks.NET/autogen/isteamgameserverinventory.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 4c31662b8b2fbd94ab47dc00568f6d7a -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/Plugins/Steamworks.NET/autogen/isteamgameservernetworking.cs b/Assets/Plugins/Steamworks.NET/autogen/isteamgameservernetworking.cs deleted file mode 100644 index d3fdf2d..0000000 --- a/Assets/Plugins/Steamworks.NET/autogen/isteamgameservernetworking.cs +++ /dev/null @@ -1,248 +0,0 @@ -// This file is provided under The MIT License as part of Steamworks.NET. -// Copyright (c) 2013-2015 Riley Labrecque -// Please see the included LICENSE.txt for additional information. - -// This file is automatically generated. -// Changes to this file will be reverted when you update Steamworks.NET - -using System; -using System.Runtime.InteropServices; - -namespace Steamworks { - public static class SteamGameServerNetworking { - /// - /// ////////////////////////////////////////////////////////////////////////////////////////// - /// Session-less connection functions - /// automatically establishes NAT-traversing or Relay server connections - /// Sends a P2P packet to the specified user - /// UDP-like, unreliable and a max packet size of 1200 bytes - /// the first packet send may be delayed as the NAT-traversal code runs - /// if we can't get through to the user, an error will be posted via the callback P2PSessionConnectFail_t - /// see EP2PSend enum above for the descriptions of the different ways of sending packets - /// nChannel is a routing number you can use to help route message to different systems - you'll have to call ReadP2PPacket() - /// with the same channel number in order to retrieve the data on the other end - /// using different channels to talk to the same user will still use the same underlying p2p connection, saving on resources - /// - public static bool SendP2PPacket(CSteamID steamIDRemote, byte[] pubData, uint cubData, EP2PSend eP2PSendType, int nChannel = 0) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServerNetworking_SendP2PPacket(steamIDRemote, pubData, cubData, eP2PSendType, nChannel); - } - - /// - /// returns true if any data is available for read, and the amount of data that will need to be read - /// - public static bool IsP2PPacketAvailable(out uint pcubMsgSize, int nChannel = 0) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServerNetworking_IsP2PPacketAvailable(out pcubMsgSize, nChannel); - } - - /// - /// reads in a packet that has been sent from another user via SendP2PPacket() - /// returns the size of the message and the steamID of the user who sent it in the last two parameters - /// if the buffer passed in is too small, the message will be truncated - /// this call is not blocking, and will return false if no data is available - /// - public static bool ReadP2PPacket(byte[] pubDest, uint cubDest, out uint pcubMsgSize, out CSteamID psteamIDRemote, int nChannel = 0) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServerNetworking_ReadP2PPacket(pubDest, cubDest, out pcubMsgSize, out psteamIDRemote, nChannel); - } - - /// - /// AcceptP2PSessionWithUser() should only be called in response to a P2PSessionRequest_t callback - /// P2PSessionRequest_t will be posted if another user tries to send you a packet that you haven't talked to yet - /// if you don't want to talk to the user, just ignore the request - /// if the user continues to send you packets, another P2PSessionRequest_t will be posted periodically - /// this may be called multiple times for a single user - /// (if you've called SendP2PPacket() on the other user, this implicitly accepts the session request) - /// - public static bool AcceptP2PSessionWithUser(CSteamID steamIDRemote) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServerNetworking_AcceptP2PSessionWithUser(steamIDRemote); - } - - /// - /// call CloseP2PSessionWithUser() when you're done talking to a user, will free up resources under-the-hood - /// if the remote user tries to send data to you again, another P2PSessionRequest_t callback will be posted - /// - public static bool CloseP2PSessionWithUser(CSteamID steamIDRemote) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServerNetworking_CloseP2PSessionWithUser(steamIDRemote); - } - - /// - /// call CloseP2PChannelWithUser() when you're done talking to a user on a specific channel. Once all channels - /// open channels to a user have been closed, the open session to the user will be closed and new data from this - /// user will trigger a P2PSessionRequest_t callback - /// - public static bool CloseP2PChannelWithUser(CSteamID steamIDRemote, int nChannel) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServerNetworking_CloseP2PChannelWithUser(steamIDRemote, nChannel); - } - - /// - /// fills out P2PSessionState_t structure with details about the underlying connection to the user - /// should only needed for debugging purposes - /// returns false if no connection exists to the specified user - /// - public static bool GetP2PSessionState(CSteamID steamIDRemote, out P2PSessionState_t pConnectionState) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServerNetworking_GetP2PSessionState(steamIDRemote, out pConnectionState); - } - - /// - /// Allow P2P connections to fall back to being relayed through the Steam servers if a direct connection - /// or NAT-traversal cannot be established. Only applies to connections created after setting this value, - /// or to existing connections that need to automatically reconnect after this value is set. - /// P2P packet relay is allowed by default - /// - public static bool AllowP2PPacketRelay(bool bAllow) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServerNetworking_AllowP2PPacketRelay(bAllow); - } - - /// - /// ////////////////////////////////////////////////////////////////////////////////////////// - /// LISTEN / CONNECT style interface functions - /// This is an older set of functions designed around the Berkeley TCP sockets model - /// it's preferential that you use the above P2P functions, they're more robust - /// and these older functions will be removed eventually - /// ////////////////////////////////////////////////////////////////////////////////////////// - /// creates a socket and listens others to connect - /// will trigger a SocketStatusCallback_t callback on another client connecting - /// nVirtualP2PPort is the unique ID that the client will connect to, in case you have multiple ports - /// this can usually just be 0 unless you want multiple sets of connections - /// unIP is the local IP address to bind to - /// pass in 0 if you just want the default local IP - /// unPort is the port to use - /// pass in 0 if you don't want users to be able to connect via IP/Port, but expect to be always peer-to-peer connections only - /// - public static SNetListenSocket_t CreateListenSocket(int nVirtualP2PPort, uint nIP, ushort nPort, bool bAllowUseOfPacketRelay) { - InteropHelp.TestIfAvailableGameServer(); - return (SNetListenSocket_t)NativeMethods.ISteamGameServerNetworking_CreateListenSocket(nVirtualP2PPort, nIP, nPort, bAllowUseOfPacketRelay); - } - - /// - /// creates a socket and begin connection to a remote destination - /// can connect via a known steamID (client or game server), or directly to an IP - /// on success will trigger a SocketStatusCallback_t callback - /// on failure or timeout will trigger a SocketStatusCallback_t callback with a failure code in m_eSNetSocketState - /// - public static SNetSocket_t CreateP2PConnectionSocket(CSteamID steamIDTarget, int nVirtualPort, int nTimeoutSec, bool bAllowUseOfPacketRelay) { - InteropHelp.TestIfAvailableGameServer(); - return (SNetSocket_t)NativeMethods.ISteamGameServerNetworking_CreateP2PConnectionSocket(steamIDTarget, nVirtualPort, nTimeoutSec, bAllowUseOfPacketRelay); - } - - public static SNetSocket_t CreateConnectionSocket(uint nIP, ushort nPort, int nTimeoutSec) { - InteropHelp.TestIfAvailableGameServer(); - return (SNetSocket_t)NativeMethods.ISteamGameServerNetworking_CreateConnectionSocket(nIP, nPort, nTimeoutSec); - } - - /// - /// disconnects the connection to the socket, if any, and invalidates the handle - /// any unread data on the socket will be thrown away - /// if bNotifyRemoteEnd is set, socket will not be completely destroyed until the remote end acknowledges the disconnect - /// - public static bool DestroySocket(SNetSocket_t hSocket, bool bNotifyRemoteEnd) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServerNetworking_DestroySocket(hSocket, bNotifyRemoteEnd); - } - - /// - /// destroying a listen socket will automatically kill all the regular sockets generated from it - /// - public static bool DestroyListenSocket(SNetListenSocket_t hSocket, bool bNotifyRemoteEnd) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServerNetworking_DestroyListenSocket(hSocket, bNotifyRemoteEnd); - } - - /// - /// sending data - /// must be a handle to a connected socket - /// data is all sent via UDP, and thus send sizes are limited to 1200 bytes; after this, many routers will start dropping packets - /// use the reliable flag with caution; although the resend rate is pretty aggressive, - /// it can still cause stalls in receiving data (like TCP) - /// - public static bool SendDataOnSocket(SNetSocket_t hSocket, IntPtr pubData, uint cubData, bool bReliable) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServerNetworking_SendDataOnSocket(hSocket, pubData, cubData, bReliable); - } - - /// - /// receiving data - /// returns false if there is no data remaining - /// fills out *pcubMsgSize with the size of the next message, in bytes - /// - public static bool IsDataAvailableOnSocket(SNetSocket_t hSocket, out uint pcubMsgSize) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServerNetworking_IsDataAvailableOnSocket(hSocket, out pcubMsgSize); - } - - /// - /// fills in pubDest with the contents of the message - /// messages are always complete, of the same size as was sent (i.e. packetized, not streaming) - /// if *pcubMsgSize < cubDest, only partial data is written - /// returns false if no data is available - /// - public static bool RetrieveDataFromSocket(SNetSocket_t hSocket, IntPtr pubDest, uint cubDest, out uint pcubMsgSize) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServerNetworking_RetrieveDataFromSocket(hSocket, pubDest, cubDest, out pcubMsgSize); - } - - /// - /// checks for data from any socket that has been connected off this listen socket - /// returns false if there is no data remaining - /// fills out *pcubMsgSize with the size of the next message, in bytes - /// fills out *phSocket with the socket that data is available on - /// - public static bool IsDataAvailable(SNetListenSocket_t hListenSocket, out uint pcubMsgSize, out SNetSocket_t phSocket) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServerNetworking_IsDataAvailable(hListenSocket, out pcubMsgSize, out phSocket); - } - - /// - /// retrieves data from any socket that has been connected off this listen socket - /// fills in pubDest with the contents of the message - /// messages are always complete, of the same size as was sent (i.e. packetized, not streaming) - /// if *pcubMsgSize < cubDest, only partial data is written - /// returns false if no data is available - /// fills out *phSocket with the socket that data is available on - /// - public static bool RetrieveData(SNetListenSocket_t hListenSocket, IntPtr pubDest, uint cubDest, out uint pcubMsgSize, out SNetSocket_t phSocket) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServerNetworking_RetrieveData(hListenSocket, pubDest, cubDest, out pcubMsgSize, out phSocket); - } - - /// - /// returns information about the specified socket, filling out the contents of the pointers - /// - public static bool GetSocketInfo(SNetSocket_t hSocket, out CSteamID pSteamIDRemote, out int peSocketStatus, out uint punIPRemote, out ushort punPortRemote) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServerNetworking_GetSocketInfo(hSocket, out pSteamIDRemote, out peSocketStatus, out punIPRemote, out punPortRemote); - } - - /// - /// returns which local port the listen socket is bound to - /// *pnIP and *pnPort will be 0 if the socket is set to listen for P2P connections only - /// - public static bool GetListenSocketInfo(SNetListenSocket_t hListenSocket, out uint pnIP, out ushort pnPort) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServerNetworking_GetListenSocketInfo(hListenSocket, out pnIP, out pnPort); - } - - /// - /// returns true to describe how the socket ended up connecting - /// - public static ESNetSocketConnectionType GetSocketConnectionType(SNetSocket_t hSocket) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServerNetworking_GetSocketConnectionType(hSocket); - } - - /// - /// max packet size, in bytes - /// - public static int GetMaxPacketSize(SNetSocket_t hSocket) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServerNetworking_GetMaxPacketSize(hSocket); - } - } -} \ No newline at end of file diff --git a/Assets/Plugins/Steamworks.NET/autogen/isteamgameservernetworking.cs.meta b/Assets/Plugins/Steamworks.NET/autogen/isteamgameservernetworking.cs.meta deleted file mode 100644 index 2c22b16..0000000 --- a/Assets/Plugins/Steamworks.NET/autogen/isteamgameservernetworking.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: bde3f17733684b24aa6d22c8310cf66c -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/Plugins/Steamworks.NET/autogen/isteamgameserverstats.cs b/Assets/Plugins/Steamworks.NET/autogen/isteamgameserverstats.cs deleted file mode 100644 index aa45752..0000000 --- a/Assets/Plugins/Steamworks.NET/autogen/isteamgameserverstats.cs +++ /dev/null @@ -1,102 +0,0 @@ -// This file is provided under The MIT License as part of Steamworks.NET. -// Copyright (c) 2013-2015 Riley Labrecque -// Please see the included LICENSE.txt for additional information. - -// This file is automatically generated. -// Changes to this file will be reverted when you update Steamworks.NET - -using System; -using System.Runtime.InteropServices; - -namespace Steamworks { - public static class SteamGameServerStats { - /// - /// downloads stats for the user - /// returns a GSStatsReceived_t callback when completed - /// if the user has no stats, GSStatsReceived_t.m_eResult will be set to k_EResultFail - /// these stats will only be auto-updated for clients playing on the server. For other - /// users you'll need to call RequestUserStats() again to refresh any data - /// - public static SteamAPICall_t RequestUserStats(CSteamID steamIDUser) { - InteropHelp.TestIfAvailableGameServer(); - return (SteamAPICall_t)NativeMethods.ISteamGameServerStats_RequestUserStats(steamIDUser); - } - - /// - /// requests stat information for a user, usable after a successful call to RequestUserStats() - /// - public static bool GetUserStat(CSteamID steamIDUser, string pchName, out int pData) { - InteropHelp.TestIfAvailableGameServer(); - using (var pchName2 = new InteropHelp.UTF8StringHandle(pchName)) { - return NativeMethods.ISteamGameServerStats_GetUserStat(steamIDUser, pchName2, out pData); - } - } - - public static bool GetUserStat(CSteamID steamIDUser, string pchName, out float pData) { - InteropHelp.TestIfAvailableGameServer(); - using (var pchName2 = new InteropHelp.UTF8StringHandle(pchName)) { - return NativeMethods.ISteamGameServerStats_GetUserStat_(steamIDUser, pchName2, out pData); - } - } - - public static bool GetUserAchievement(CSteamID steamIDUser, string pchName, out bool pbAchieved) { - InteropHelp.TestIfAvailableGameServer(); - using (var pchName2 = new InteropHelp.UTF8StringHandle(pchName)) { - return NativeMethods.ISteamGameServerStats_GetUserAchievement(steamIDUser, pchName2, out pbAchieved); - } - } - - /// - /// Set / update stats and achievements. - /// Note: These updates will work only on stats game servers are allowed to edit and only for - /// game servers that have been declared as officially controlled by the game creators. - /// Set the IP range of your official servers on the Steamworks page - /// - public static bool SetUserStat(CSteamID steamIDUser, string pchName, int nData) { - InteropHelp.TestIfAvailableGameServer(); - using (var pchName2 = new InteropHelp.UTF8StringHandle(pchName)) { - return NativeMethods.ISteamGameServerStats_SetUserStat(steamIDUser, pchName2, nData); - } - } - - public static bool SetUserStat(CSteamID steamIDUser, string pchName, float fData) { - InteropHelp.TestIfAvailableGameServer(); - using (var pchName2 = new InteropHelp.UTF8StringHandle(pchName)) { - return NativeMethods.ISteamGameServerStats_SetUserStat_(steamIDUser, pchName2, fData); - } - } - - public static bool UpdateUserAvgRateStat(CSteamID steamIDUser, string pchName, float flCountThisSession, double dSessionLength) { - InteropHelp.TestIfAvailableGameServer(); - using (var pchName2 = new InteropHelp.UTF8StringHandle(pchName)) { - return NativeMethods.ISteamGameServerStats_UpdateUserAvgRateStat(steamIDUser, pchName2, flCountThisSession, dSessionLength); - } - } - - public static bool SetUserAchievement(CSteamID steamIDUser, string pchName) { - InteropHelp.TestIfAvailableGameServer(); - using (var pchName2 = new InteropHelp.UTF8StringHandle(pchName)) { - return NativeMethods.ISteamGameServerStats_SetUserAchievement(steamIDUser, pchName2); - } - } - - public static bool ClearUserAchievement(CSteamID steamIDUser, string pchName) { - InteropHelp.TestIfAvailableGameServer(); - using (var pchName2 = new InteropHelp.UTF8StringHandle(pchName)) { - return NativeMethods.ISteamGameServerStats_ClearUserAchievement(steamIDUser, pchName2); - } - } - - /// - /// Store the current data on the server, will get a GSStatsStored_t callback when set. - /// If the callback has a result of k_EResultInvalidParam, one or more stats - /// uploaded has been rejected, either because they broke constraints - /// or were out of date. In this case the server sends back updated values. - /// The stats should be re-iterated to keep in sync. - /// - public static SteamAPICall_t StoreUserStats(CSteamID steamIDUser) { - InteropHelp.TestIfAvailableGameServer(); - return (SteamAPICall_t)NativeMethods.ISteamGameServerStats_StoreUserStats(steamIDUser); - } - } -} \ No newline at end of file diff --git a/Assets/Plugins/Steamworks.NET/autogen/isteamgameserverstats.cs.meta b/Assets/Plugins/Steamworks.NET/autogen/isteamgameserverstats.cs.meta deleted file mode 100644 index 405baf0..0000000 --- a/Assets/Plugins/Steamworks.NET/autogen/isteamgameserverstats.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: b47300d53ac5ed349a085479c69e8a90 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/Plugins/Steamworks.NET/autogen/isteamgameserverugc.cs b/Assets/Plugins/Steamworks.NET/autogen/isteamgameserverugc.cs deleted file mode 100644 index 6522357..0000000 --- a/Assets/Plugins/Steamworks.NET/autogen/isteamgameserverugc.cs +++ /dev/null @@ -1,448 +0,0 @@ -// This file is provided under The MIT License as part of Steamworks.NET. -// Copyright (c) 2013-2015 Riley Labrecque -// Please see the included LICENSE.txt for additional information. - -// This file is automatically generated. -// Changes to this file will be reverted when you update Steamworks.NET - -using System; -using System.Runtime.InteropServices; - -namespace Steamworks { - public static class SteamGameServerUGC { - /// - /// Query UGC associated with a user. Creator app id or consumer app id must be valid and be set to the current running app. unPage should start at 1. - /// - public static UGCQueryHandle_t CreateQueryUserUGCRequest(AccountID_t unAccountID, EUserUGCList eListType, EUGCMatchingUGCType eMatchingUGCType, EUserUGCListSortOrder eSortOrder, AppId_t nCreatorAppID, AppId_t nConsumerAppID, uint unPage) { - InteropHelp.TestIfAvailableGameServer(); - return (UGCQueryHandle_t)NativeMethods.ISteamGameServerUGC_CreateQueryUserUGCRequest(unAccountID, eListType, eMatchingUGCType, eSortOrder, nCreatorAppID, nConsumerAppID, unPage); - } - - /// - /// Query for all matching UGC. Creator app id or consumer app id must be valid and be set to the current running app. unPage should start at 1. - /// - public static UGCQueryHandle_t CreateQueryAllUGCRequest(EUGCQuery eQueryType, EUGCMatchingUGCType eMatchingeMatchingUGCTypeFileType, AppId_t nCreatorAppID, AppId_t nConsumerAppID, uint unPage) { - InteropHelp.TestIfAvailableGameServer(); - return (UGCQueryHandle_t)NativeMethods.ISteamGameServerUGC_CreateQueryAllUGCRequest(eQueryType, eMatchingeMatchingUGCTypeFileType, nCreatorAppID, nConsumerAppID, unPage); - } - - /// - /// Query for the details of the given published file ids (the RequestUGCDetails call is deprecated and replaced with this) - /// - public static UGCQueryHandle_t CreateQueryUGCDetailsRequest(PublishedFileId_t[] pvecPublishedFileID, uint unNumPublishedFileIDs) { - InteropHelp.TestIfAvailableGameServer(); - return (UGCQueryHandle_t)NativeMethods.ISteamGameServerUGC_CreateQueryUGCDetailsRequest(pvecPublishedFileID, unNumPublishedFileIDs); - } - - /// - /// Send the query to Steam - /// - public static SteamAPICall_t SendQueryUGCRequest(UGCQueryHandle_t handle) { - InteropHelp.TestIfAvailableGameServer(); - return (SteamAPICall_t)NativeMethods.ISteamGameServerUGC_SendQueryUGCRequest(handle); - } - - /// - /// Retrieve an individual result after receiving the callback for querying UGC - /// - public static bool GetQueryUGCResult(UGCQueryHandle_t handle, uint index, out SteamUGCDetails_t pDetails) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServerUGC_GetQueryUGCResult(handle, index, out pDetails); - } - - public static bool GetQueryUGCPreviewURL(UGCQueryHandle_t handle, uint index, out string pchURL, uint cchURLSize) { - InteropHelp.TestIfAvailableGameServer(); - IntPtr pchURL2 = Marshal.AllocHGlobal((int)cchURLSize); - bool ret = NativeMethods.ISteamGameServerUGC_GetQueryUGCPreviewURL(handle, index, pchURL2, cchURLSize); - pchURL = ret ? InteropHelp.PtrToStringUTF8(pchURL2) : null; - Marshal.FreeHGlobal(pchURL2); - return ret; - } - - public static bool GetQueryUGCMetadata(UGCQueryHandle_t handle, uint index, out string pchMetadata, uint cchMetadatasize) { - InteropHelp.TestIfAvailableGameServer(); - IntPtr pchMetadata2 = Marshal.AllocHGlobal((int)cchMetadatasize); - bool ret = NativeMethods.ISteamGameServerUGC_GetQueryUGCMetadata(handle, index, pchMetadata2, cchMetadatasize); - pchMetadata = ret ? InteropHelp.PtrToStringUTF8(pchMetadata2) : null; - Marshal.FreeHGlobal(pchMetadata2); - return ret; - } - - public static bool GetQueryUGCChildren(UGCQueryHandle_t handle, uint index, PublishedFileId_t[] pvecPublishedFileID, uint cMaxEntries) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServerUGC_GetQueryUGCChildren(handle, index, pvecPublishedFileID, cMaxEntries); - } - - public static bool GetQueryUGCStatistic(UGCQueryHandle_t handle, uint index, EItemStatistic eStatType, out uint pStatValue) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServerUGC_GetQueryUGCStatistic(handle, index, eStatType, out pStatValue); - } - - public static uint GetQueryUGCNumAdditionalPreviews(UGCQueryHandle_t handle, uint index) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServerUGC_GetQueryUGCNumAdditionalPreviews(handle, index); - } - - public static bool GetQueryUGCAdditionalPreview(UGCQueryHandle_t handle, uint index, uint previewIndex, out string pchURLOrVideoID, uint cchURLSize, out bool pbIsImage) { - InteropHelp.TestIfAvailableGameServer(); - IntPtr pchURLOrVideoID2 = Marshal.AllocHGlobal((int)cchURLSize); - bool ret = NativeMethods.ISteamGameServerUGC_GetQueryUGCAdditionalPreview(handle, index, previewIndex, pchURLOrVideoID2, cchURLSize, out pbIsImage); - pchURLOrVideoID = ret ? InteropHelp.PtrToStringUTF8(pchURLOrVideoID2) : null; - Marshal.FreeHGlobal(pchURLOrVideoID2); - return ret; - } - - public static uint GetQueryUGCNumKeyValueTags(UGCQueryHandle_t handle, uint index) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServerUGC_GetQueryUGCNumKeyValueTags(handle, index); - } - - public static bool GetQueryUGCKeyValueTag(UGCQueryHandle_t handle, uint index, uint keyValueTagIndex, out string pchKey, uint cchKeySize, out string pchValue, uint cchValueSize) { - InteropHelp.TestIfAvailableGameServer(); - IntPtr pchKey2 = Marshal.AllocHGlobal((int)cchKeySize); - IntPtr pchValue2 = Marshal.AllocHGlobal((int)cchValueSize); - bool ret = NativeMethods.ISteamGameServerUGC_GetQueryUGCKeyValueTag(handle, index, keyValueTagIndex, pchKey2, cchKeySize, pchValue2, cchValueSize); - pchKey = ret ? InteropHelp.PtrToStringUTF8(pchKey2) : null; - Marshal.FreeHGlobal(pchKey2); - pchValue = ret ? InteropHelp.PtrToStringUTF8(pchValue2) : null; - Marshal.FreeHGlobal(pchValue2); - return ret; - } - - /// - /// Release the request to free up memory, after retrieving results - /// - public static bool ReleaseQueryUGCRequest(UGCQueryHandle_t handle) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServerUGC_ReleaseQueryUGCRequest(handle); - } - - /// - /// Options to set for querying UGC - /// - public static bool AddRequiredTag(UGCQueryHandle_t handle, string pTagName) { - InteropHelp.TestIfAvailableGameServer(); - using (var pTagName2 = new InteropHelp.UTF8StringHandle(pTagName)) { - return NativeMethods.ISteamGameServerUGC_AddRequiredTag(handle, pTagName2); - } - } - - public static bool AddExcludedTag(UGCQueryHandle_t handle, string pTagName) { - InteropHelp.TestIfAvailableGameServer(); - using (var pTagName2 = new InteropHelp.UTF8StringHandle(pTagName)) { - return NativeMethods.ISteamGameServerUGC_AddExcludedTag(handle, pTagName2); - } - } - - public static bool SetReturnKeyValueTags(UGCQueryHandle_t handle, bool bReturnKeyValueTags) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServerUGC_SetReturnKeyValueTags(handle, bReturnKeyValueTags); - } - - public static bool SetReturnLongDescription(UGCQueryHandle_t handle, bool bReturnLongDescription) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServerUGC_SetReturnLongDescription(handle, bReturnLongDescription); - } - - public static bool SetReturnMetadata(UGCQueryHandle_t handle, bool bReturnMetadata) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServerUGC_SetReturnMetadata(handle, bReturnMetadata); - } - - public static bool SetReturnChildren(UGCQueryHandle_t handle, bool bReturnChildren) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServerUGC_SetReturnChildren(handle, bReturnChildren); - } - - public static bool SetReturnAdditionalPreviews(UGCQueryHandle_t handle, bool bReturnAdditionalPreviews) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServerUGC_SetReturnAdditionalPreviews(handle, bReturnAdditionalPreviews); - } - - public static bool SetReturnTotalOnly(UGCQueryHandle_t handle, bool bReturnTotalOnly) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServerUGC_SetReturnTotalOnly(handle, bReturnTotalOnly); - } - - public static bool SetLanguage(UGCQueryHandle_t handle, string pchLanguage) { - InteropHelp.TestIfAvailableGameServer(); - using (var pchLanguage2 = new InteropHelp.UTF8StringHandle(pchLanguage)) { - return NativeMethods.ISteamGameServerUGC_SetLanguage(handle, pchLanguage2); - } - } - - public static bool SetAllowCachedResponse(UGCQueryHandle_t handle, uint unMaxAgeSeconds) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServerUGC_SetAllowCachedResponse(handle, unMaxAgeSeconds); - } - - /// - /// Options only for querying user UGC - /// - public static bool SetCloudFileNameFilter(UGCQueryHandle_t handle, string pMatchCloudFileName) { - InteropHelp.TestIfAvailableGameServer(); - using (var pMatchCloudFileName2 = new InteropHelp.UTF8StringHandle(pMatchCloudFileName)) { - return NativeMethods.ISteamGameServerUGC_SetCloudFileNameFilter(handle, pMatchCloudFileName2); - } - } - - /// - /// Options only for querying all UGC - /// - public static bool SetMatchAnyTag(UGCQueryHandle_t handle, bool bMatchAnyTag) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServerUGC_SetMatchAnyTag(handle, bMatchAnyTag); - } - - public static bool SetSearchText(UGCQueryHandle_t handle, string pSearchText) { - InteropHelp.TestIfAvailableGameServer(); - using (var pSearchText2 = new InteropHelp.UTF8StringHandle(pSearchText)) { - return NativeMethods.ISteamGameServerUGC_SetSearchText(handle, pSearchText2); - } - } - - public static bool SetRankedByTrendDays(UGCQueryHandle_t handle, uint unDays) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServerUGC_SetRankedByTrendDays(handle, unDays); - } - - public static bool AddRequiredKeyValueTag(UGCQueryHandle_t handle, string pKey, string pValue) { - InteropHelp.TestIfAvailableGameServer(); - using (var pKey2 = new InteropHelp.UTF8StringHandle(pKey)) - using (var pValue2 = new InteropHelp.UTF8StringHandle(pValue)) { - return NativeMethods.ISteamGameServerUGC_AddRequiredKeyValueTag(handle, pKey2, pValue2); - } - } - - /// - /// DEPRECATED - Use CreateQueryUGCDetailsRequest call above instead! - /// - public static SteamAPICall_t RequestUGCDetails(PublishedFileId_t nPublishedFileID, uint unMaxAgeSeconds) { - InteropHelp.TestIfAvailableGameServer(); - return (SteamAPICall_t)NativeMethods.ISteamGameServerUGC_RequestUGCDetails(nPublishedFileID, unMaxAgeSeconds); - } - - /// - /// Steam Workshop Creator API - /// create new item for this app with no content attached yet - /// - public static SteamAPICall_t CreateItem(AppId_t nConsumerAppId, EWorkshopFileType eFileType) { - InteropHelp.TestIfAvailableGameServer(); - return (SteamAPICall_t)NativeMethods.ISteamGameServerUGC_CreateItem(nConsumerAppId, eFileType); - } - - /// - /// start an UGC item update. Set changed properties before commiting update with CommitItemUpdate() - /// - public static UGCUpdateHandle_t StartItemUpdate(AppId_t nConsumerAppId, PublishedFileId_t nPublishedFileID) { - InteropHelp.TestIfAvailableGameServer(); - return (UGCUpdateHandle_t)NativeMethods.ISteamGameServerUGC_StartItemUpdate(nConsumerAppId, nPublishedFileID); - } - - /// - /// change the title of an UGC item - /// - public static bool SetItemTitle(UGCUpdateHandle_t handle, string pchTitle) { - InteropHelp.TestIfAvailableGameServer(); - using (var pchTitle2 = new InteropHelp.UTF8StringHandle(pchTitle)) { - return NativeMethods.ISteamGameServerUGC_SetItemTitle(handle, pchTitle2); - } - } - - /// - /// change the description of an UGC item - /// - public static bool SetItemDescription(UGCUpdateHandle_t handle, string pchDescription) { - InteropHelp.TestIfAvailableGameServer(); - using (var pchDescription2 = new InteropHelp.UTF8StringHandle(pchDescription)) { - return NativeMethods.ISteamGameServerUGC_SetItemDescription(handle, pchDescription2); - } - } - - /// - /// specify the language of the title or description that will be set - /// - public static bool SetItemUpdateLanguage(UGCUpdateHandle_t handle, string pchLanguage) { - InteropHelp.TestIfAvailableGameServer(); - using (var pchLanguage2 = new InteropHelp.UTF8StringHandle(pchLanguage)) { - return NativeMethods.ISteamGameServerUGC_SetItemUpdateLanguage(handle, pchLanguage2); - } - } - - /// - /// change the metadata of an UGC item (max = k_cchDeveloperMetadataMax) - /// - public static bool SetItemMetadata(UGCUpdateHandle_t handle, string pchMetaData) { - InteropHelp.TestIfAvailableGameServer(); - using (var pchMetaData2 = new InteropHelp.UTF8StringHandle(pchMetaData)) { - return NativeMethods.ISteamGameServerUGC_SetItemMetadata(handle, pchMetaData2); - } - } - - /// - /// change the visibility of an UGC item - /// - public static bool SetItemVisibility(UGCUpdateHandle_t handle, ERemoteStoragePublishedFileVisibility eVisibility) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServerUGC_SetItemVisibility(handle, eVisibility); - } - - /// - /// change the tags of an UGC item - /// - public static bool SetItemTags(UGCUpdateHandle_t updateHandle, System.Collections.Generic.IList pTags) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServerUGC_SetItemTags(updateHandle, new InteropHelp.SteamParamStringArray(pTags)); - } - - /// - /// update item content from this local folder - /// - public static bool SetItemContent(UGCUpdateHandle_t handle, string pszContentFolder) { - InteropHelp.TestIfAvailableGameServer(); - using (var pszContentFolder2 = new InteropHelp.UTF8StringHandle(pszContentFolder)) { - return NativeMethods.ISteamGameServerUGC_SetItemContent(handle, pszContentFolder2); - } - } - - /// - /// change preview image file for this item. pszPreviewFile points to local image file, which must be under 1MB in size - /// - public static bool SetItemPreview(UGCUpdateHandle_t handle, string pszPreviewFile) { - InteropHelp.TestIfAvailableGameServer(); - using (var pszPreviewFile2 = new InteropHelp.UTF8StringHandle(pszPreviewFile)) { - return NativeMethods.ISteamGameServerUGC_SetItemPreview(handle, pszPreviewFile2); - } - } - - /// - /// remove any existing key-value tags with the specified key - /// - public static bool RemoveItemKeyValueTags(UGCUpdateHandle_t handle, string pchKey) { - InteropHelp.TestIfAvailableGameServer(); - using (var pchKey2 = new InteropHelp.UTF8StringHandle(pchKey)) { - return NativeMethods.ISteamGameServerUGC_RemoveItemKeyValueTags(handle, pchKey2); - } - } - - /// - /// add new key-value tags for the item. Note that there can be multiple values for a tag. - /// - public static bool AddItemKeyValueTag(UGCUpdateHandle_t handle, string pchKey, string pchValue) { - InteropHelp.TestIfAvailableGameServer(); - using (var pchKey2 = new InteropHelp.UTF8StringHandle(pchKey)) - using (var pchValue2 = new InteropHelp.UTF8StringHandle(pchValue)) { - return NativeMethods.ISteamGameServerUGC_AddItemKeyValueTag(handle, pchKey2, pchValue2); - } - } - - /// - /// commit update process started with StartItemUpdate() - /// - public static SteamAPICall_t SubmitItemUpdate(UGCUpdateHandle_t handle, string pchChangeNote) { - InteropHelp.TestIfAvailableGameServer(); - using (var pchChangeNote2 = new InteropHelp.UTF8StringHandle(pchChangeNote)) { - return (SteamAPICall_t)NativeMethods.ISteamGameServerUGC_SubmitItemUpdate(handle, pchChangeNote2); - } - } - - public static EItemUpdateStatus GetItemUpdateProgress(UGCUpdateHandle_t handle, out ulong punBytesProcessed, out ulong punBytesTotal) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServerUGC_GetItemUpdateProgress(handle, out punBytesProcessed, out punBytesTotal); - } - - /// - /// Steam Workshop Consumer API - /// - public static SteamAPICall_t SetUserItemVote(PublishedFileId_t nPublishedFileID, bool bVoteUp) { - InteropHelp.TestIfAvailableGameServer(); - return (SteamAPICall_t)NativeMethods.ISteamGameServerUGC_SetUserItemVote(nPublishedFileID, bVoteUp); - } - - public static SteamAPICall_t GetUserItemVote(PublishedFileId_t nPublishedFileID) { - InteropHelp.TestIfAvailableGameServer(); - return (SteamAPICall_t)NativeMethods.ISteamGameServerUGC_GetUserItemVote(nPublishedFileID); - } - - public static SteamAPICall_t AddItemToFavorites(AppId_t nAppId, PublishedFileId_t nPublishedFileID) { - InteropHelp.TestIfAvailableGameServer(); - return (SteamAPICall_t)NativeMethods.ISteamGameServerUGC_AddItemToFavorites(nAppId, nPublishedFileID); - } - - public static SteamAPICall_t RemoveItemFromFavorites(AppId_t nAppId, PublishedFileId_t nPublishedFileID) { - InteropHelp.TestIfAvailableGameServer(); - return (SteamAPICall_t)NativeMethods.ISteamGameServerUGC_RemoveItemFromFavorites(nAppId, nPublishedFileID); - } - - /// - /// subscribe to this item, will be installed ASAP - /// - public static SteamAPICall_t SubscribeItem(PublishedFileId_t nPublishedFileID) { - InteropHelp.TestIfAvailableGameServer(); - return (SteamAPICall_t)NativeMethods.ISteamGameServerUGC_SubscribeItem(nPublishedFileID); - } - - /// - /// unsubscribe from this item, will be uninstalled after game quits - /// - public static SteamAPICall_t UnsubscribeItem(PublishedFileId_t nPublishedFileID) { - InteropHelp.TestIfAvailableGameServer(); - return (SteamAPICall_t)NativeMethods.ISteamGameServerUGC_UnsubscribeItem(nPublishedFileID); - } - - /// - /// number of subscribed items - /// - public static uint GetNumSubscribedItems() { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServerUGC_GetNumSubscribedItems(); - } - - /// - /// all subscribed item PublishFileIDs - /// - public static uint GetSubscribedItems(PublishedFileId_t[] pvecPublishedFileID, uint cMaxEntries) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServerUGC_GetSubscribedItems(pvecPublishedFileID, cMaxEntries); - } - - /// - /// get EItemState flags about item on this client - /// - public static uint GetItemState(PublishedFileId_t nPublishedFileID) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServerUGC_GetItemState(nPublishedFileID); - } - - /// - /// get info about currently installed content on disc for items that have k_EItemStateInstalled set - /// if k_EItemStateLegacyItem is set, pchFolder contains the path to the legacy file itself (not a folder) - /// - public static bool GetItemInstallInfo(PublishedFileId_t nPublishedFileID, out ulong punSizeOnDisk, out string pchFolder, uint cchFolderSize, out uint punTimeStamp) { - InteropHelp.TestIfAvailableGameServer(); - IntPtr pchFolder2 = Marshal.AllocHGlobal((int)cchFolderSize); - bool ret = NativeMethods.ISteamGameServerUGC_GetItemInstallInfo(nPublishedFileID, out punSizeOnDisk, pchFolder2, cchFolderSize, out punTimeStamp); - pchFolder = ret ? InteropHelp.PtrToStringUTF8(pchFolder2) : null; - Marshal.FreeHGlobal(pchFolder2); - return ret; - } - - /// - /// get info about pending update for items that have k_EItemStateNeedsUpdate set. punBytesTotal will be valid after download started once - /// - public static bool GetItemDownloadInfo(PublishedFileId_t nPublishedFileID, out ulong punBytesDownloaded, out ulong punBytesTotal) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServerUGC_GetItemDownloadInfo(nPublishedFileID, out punBytesDownloaded, out punBytesTotal); - } - - /// - /// download new or update already installed item. If function returns true, wait for DownloadItemResult_t. If the item is already installed, - /// then files on disk should not be used until callback received. If item is not subscribed to, it will be cached for some time. - /// If bHighPriority is set, any other item download will be suspended and this item downloaded ASAP. - /// - public static bool DownloadItem(PublishedFileId_t nPublishedFileID, bool bHighPriority) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServerUGC_DownloadItem(nPublishedFileID, bHighPriority); - } - } -} \ No newline at end of file diff --git a/Assets/Plugins/Steamworks.NET/autogen/isteamgameserverugc.cs.meta b/Assets/Plugins/Steamworks.NET/autogen/isteamgameserverugc.cs.meta deleted file mode 100644 index 8c8c36e..0000000 --- a/Assets/Plugins/Steamworks.NET/autogen/isteamgameserverugc.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 49327dbee45c3ba448f5f2dde0726ce6 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/Plugins/Steamworks.NET/autogen/isteamgameserverutils.cs b/Assets/Plugins/Steamworks.NET/autogen/isteamgameserverutils.cs deleted file mode 100644 index 762039f..0000000 --- a/Assets/Plugins/Steamworks.NET/autogen/isteamgameserverutils.cs +++ /dev/null @@ -1,273 +0,0 @@ -// This file is provided under The MIT License as part of Steamworks.NET. -// Copyright (c) 2013-2015 Riley Labrecque -// Please see the included LICENSE.txt for additional information. - -// This file is automatically generated. -// Changes to this file will be reverted when you update Steamworks.NET - -using System; -using System.Runtime.InteropServices; - -namespace Steamworks { - public static class SteamGameServerUtils { - /// - /// return the number of seconds since the user - /// - public static uint GetSecondsSinceAppActive() { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServerUtils_GetSecondsSinceAppActive(); - } - - public static uint GetSecondsSinceComputerActive() { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServerUtils_GetSecondsSinceComputerActive(); - } - - /// - /// the universe this client is connecting to - /// - public static EUniverse GetConnectedUniverse() { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServerUtils_GetConnectedUniverse(); - } - - /// - /// Steam server time - in PST, number of seconds since January 1, 1970 (i.e unix time) - /// - public static uint GetServerRealTime() { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServerUtils_GetServerRealTime(); - } - - /// - /// returns the 2 digit ISO 3166-1-alpha-2 format country code this client is running in (as looked up via an IP-to-location database) - /// e.g "US" or "UK". - /// - public static string GetIPCountry() { - InteropHelp.TestIfAvailableGameServer(); - return InteropHelp.PtrToStringUTF8(NativeMethods.ISteamGameServerUtils_GetIPCountry()); - } - - /// - /// returns true if the image exists, and valid sizes were filled out - /// - public static bool GetImageSize(int iImage, out uint pnWidth, out uint pnHeight) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServerUtils_GetImageSize(iImage, out pnWidth, out pnHeight); - } - - /// - /// returns true if the image exists, and the buffer was successfully filled out - /// results are returned in RGBA format - /// the destination buffer size should be 4 * height * width * sizeof(char) - /// - public static bool GetImageRGBA(int iImage, byte[] pubDest, int nDestBufferSize) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServerUtils_GetImageRGBA(iImage, pubDest, nDestBufferSize); - } - - /// - /// returns the IP of the reporting server for valve - currently only used in Source engine games - /// - public static bool GetCSERIPPort(out uint unIP, out ushort usPort) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServerUtils_GetCSERIPPort(out unIP, out usPort); - } - - /// - /// return the amount of battery power left in the current system in % [0..100], 255 for being on AC power - /// - public static byte GetCurrentBatteryPower() { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServerUtils_GetCurrentBatteryPower(); - } - - /// - /// returns the appID of the current process - /// - public static AppId_t GetAppID() { - InteropHelp.TestIfAvailableGameServer(); - return (AppId_t)NativeMethods.ISteamGameServerUtils_GetAppID(); - } - - /// - /// Sets the position where the overlay instance for the currently calling game should show notifications. - /// This position is per-game and if this function is called from outside of a game context it will do nothing. - /// - public static void SetOverlayNotificationPosition(ENotificationPosition eNotificationPosition) { - InteropHelp.TestIfAvailableGameServer(); - NativeMethods.ISteamGameServerUtils_SetOverlayNotificationPosition(eNotificationPosition); - } - - /// - /// API asynchronous call results - /// can be used directly, but more commonly used via the callback dispatch API (see steam_api.h) - /// - public static bool IsAPICallCompleted(SteamAPICall_t hSteamAPICall, out bool pbFailed) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServerUtils_IsAPICallCompleted(hSteamAPICall, out pbFailed); - } - - public static ESteamAPICallFailure GetAPICallFailureReason(SteamAPICall_t hSteamAPICall) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServerUtils_GetAPICallFailureReason(hSteamAPICall); - } - - public static bool GetAPICallResult(SteamAPICall_t hSteamAPICall, IntPtr pCallback, int cubCallback, int iCallbackExpected, out bool pbFailed) { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServerUtils_GetAPICallResult(hSteamAPICall, pCallback, cubCallback, iCallbackExpected, out pbFailed); - } - - /// - /// this needs to be called every frame to process matchmaking results - /// redundant if you're already calling SteamAPI_RunCallbacks() - /// - public static void RunFrame() { - InteropHelp.TestIfAvailableGameServer(); - NativeMethods.ISteamGameServerUtils_RunFrame(); - } - - /// - /// returns the number of IPC calls made since the last time this function was called - /// Used for perf debugging so you can understand how many IPC calls your game makes per frame - /// Every IPC call is at minimum a thread context switch if not a process one so you want to rate - /// control how often you do them. - /// - public static uint GetIPCCallCount() { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServerUtils_GetIPCCallCount(); - } - - /// - /// API warning handling - /// 'int' is the severity; 0 for msg, 1 for warning - /// 'const char *' is the text of the message - /// callbacks will occur directly after the API function is called that generated the warning or message - /// - public static void SetWarningMessageHook(SteamAPIWarningMessageHook_t pFunction) { - InteropHelp.TestIfAvailableGameServer(); - NativeMethods.ISteamGameServerUtils_SetWarningMessageHook(pFunction); - } - - /// - /// Returns true if the overlay is running & the user can access it. The overlay process could take a few seconds to - /// start & hook the game process, so this function will initially return false while the overlay is loading. - /// - public static bool IsOverlayEnabled() { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServerUtils_IsOverlayEnabled(); - } - - /// - /// Normally this call is unneeded if your game has a constantly running frame loop that calls the - /// D3D Present API, or OGL SwapBuffers API every frame. - /// However, if you have a game that only refreshes the screen on an event driven basis then that can break - /// the overlay, as it uses your Present/SwapBuffers calls to drive it's internal frame loop and it may also - /// need to Present() to the screen any time an even needing a notification happens or when the overlay is - /// brought up over the game by a user. You can use this API to ask the overlay if it currently need a present - /// in that case, and then you can check for this periodically (roughly 33hz is desirable) and make sure you - /// refresh the screen with Present or SwapBuffers to allow the overlay to do it's work. - /// - public static bool BOverlayNeedsPresent() { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServerUtils_BOverlayNeedsPresent(); - } -#if !_PS3 - /// - /// Asynchronous call to check if an executable file has been signed using the public key set on the signing tab - /// of the partner site, for example to refuse to load modified executable files. - /// The result is returned in CheckFileSignature_t. - /// k_ECheckFileSignatureNoSignaturesFoundForThisApp - This app has not been configured on the signing tab of the partner site to enable this function. - /// k_ECheckFileSignatureNoSignaturesFoundForThisFile - This file is not listed on the signing tab for the partner site. - /// k_ECheckFileSignatureFileNotFound - The file does not exist on disk. - /// k_ECheckFileSignatureInvalidSignature - The file exists, and the signing tab has been set for this file, but the file is either not signed or the signature does not match. - /// k_ECheckFileSignatureValidSignature - The file is signed and the signature is valid. - /// - public static SteamAPICall_t CheckFileSignature(string szFileName) { - InteropHelp.TestIfAvailableGameServer(); - using (var szFileName2 = new InteropHelp.UTF8StringHandle(szFileName)) { - return (SteamAPICall_t)NativeMethods.ISteamGameServerUtils_CheckFileSignature(szFileName2); - } - } -#endif -#if _PS3 - public static void PostPS3SysutilCallback(ulong status, ulong param, IntPtr userdata) { - InteropHelp.TestIfAvailableGameServer(); - NativeMethods.ISteamGameServerUtils_PostPS3SysutilCallback(status, param, userdata); - } - - public static bool BIsReadyToShutdown() { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServerUtils_BIsReadyToShutdown(); - } - - public static bool BIsPSNOnline() { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServerUtils_BIsPSNOnline(); - } - - /// - /// Call this with localized strings for the language the game is running in, otherwise default english - /// strings will be used by Steam. - /// - public static void SetPSNGameBootInviteStrings(string pchSubject, string pchBody) { - InteropHelp.TestIfAvailableGameServer(); - using (var pchSubject2 = new InteropHelp.UTF8StringHandle(pchSubject)) - using (var pchBody2 = new InteropHelp.UTF8StringHandle(pchBody)) { - NativeMethods.ISteamGameServerUtils_SetPSNGameBootInviteStrings(pchSubject2, pchBody2); - } - } -#endif - /// - /// Activates the Big Picture text input dialog which only supports gamepad input - /// - public static bool ShowGamepadTextInput(EGamepadTextInputMode eInputMode, EGamepadTextInputLineMode eLineInputMode, string pchDescription, uint unCharMax, string pchExistingText) { - InteropHelp.TestIfAvailableGameServer(); - using (var pchDescription2 = new InteropHelp.UTF8StringHandle(pchDescription)) - using (var pchExistingText2 = new InteropHelp.UTF8StringHandle(pchExistingText)) { - return NativeMethods.ISteamGameServerUtils_ShowGamepadTextInput(eInputMode, eLineInputMode, pchDescription2, unCharMax, pchExistingText2); - } - } - - /// - /// Returns previously entered text & length - /// - public static uint GetEnteredGamepadTextLength() { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServerUtils_GetEnteredGamepadTextLength(); - } - - public static bool GetEnteredGamepadTextInput(out string pchText, uint cchText) { - InteropHelp.TestIfAvailableGameServer(); - IntPtr pchText2 = Marshal.AllocHGlobal((int)cchText); - bool ret = NativeMethods.ISteamGameServerUtils_GetEnteredGamepadTextInput(pchText2, cchText); - pchText = ret ? InteropHelp.PtrToStringUTF8(pchText2) : null; - Marshal.FreeHGlobal(pchText2); - return ret; - } - - /// - /// returns the language the steam client is running in, you probably want ISteamApps::GetCurrentGameLanguage instead, this is for very special usage cases - /// - public static string GetSteamUILanguage() { - InteropHelp.TestIfAvailableGameServer(); - return InteropHelp.PtrToStringUTF8(NativeMethods.ISteamGameServerUtils_GetSteamUILanguage()); - } - - /// - /// returns true if Steam itself is running in VR mode - /// - public static bool IsSteamRunningInVR() { - InteropHelp.TestIfAvailableGameServer(); - return NativeMethods.ISteamGameServerUtils_IsSteamRunningInVR(); - } - - /// - /// Sets the inset of the overlay notification from the corner specified by SetOverlayNotificationPosition. - /// - public static void SetOverlayNotificationInset(int nHorizontalInset, int nVerticalInset) { - InteropHelp.TestIfAvailableGameServer(); - NativeMethods.ISteamGameServerUtils_SetOverlayNotificationInset(nHorizontalInset, nVerticalInset); - } - } -} \ No newline at end of file diff --git a/Assets/Plugins/Steamworks.NET/autogen/isteamgameserverutils.cs.meta b/Assets/Plugins/Steamworks.NET/autogen/isteamgameserverutils.cs.meta deleted file mode 100644 index 43ee316..0000000 --- a/Assets/Plugins/Steamworks.NET/autogen/isteamgameserverutils.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 63b481ca9b9c2d641b2d84ae29efaa7e -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/Plugins/Steamworks.NET/autogen/isteamhtmlsurface.cs b/Assets/Plugins/Steamworks.NET/autogen/isteamhtmlsurface.cs deleted file mode 100644 index 80412e6..0000000 --- a/Assets/Plugins/Steamworks.NET/autogen/isteamhtmlsurface.cs +++ /dev/null @@ -1,310 +0,0 @@ -// This file is provided under The MIT License as part of Steamworks.NET. -// Copyright (c) 2013-2015 Riley Labrecque -// Please see the included LICENSE.txt for additional information. - -// This file is automatically generated. -// Changes to this file will be reverted when you update Steamworks.NET - -using System; -using System.Runtime.InteropServices; - -namespace Steamworks { - public static class SteamHTMLSurface { - /// - /// Must call init and shutdown when starting/ending use of the interface - /// - public static bool Init() { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamHTMLSurface_Init(); - } - - public static bool Shutdown() { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamHTMLSurface_Shutdown(); - } - - /// - /// Create a browser object for display of a html page, when creation is complete the call handle - /// will return a HTML_BrowserReady_t callback for the HHTMLBrowser of your new browser. - /// The user agent string is a substring to be added to the general user agent string so you can - /// identify your client on web servers. - /// The userCSS string lets you apply a CSS style sheet to every displayed page, leave null if - /// you do not require this functionality. - /// - public static SteamAPICall_t CreateBrowser(string pchUserAgent, string pchUserCSS) { - InteropHelp.TestIfAvailableClient(); - using (var pchUserAgent2 = new InteropHelp.UTF8StringHandle(pchUserAgent)) - using (var pchUserCSS2 = new InteropHelp.UTF8StringHandle(pchUserCSS)) { - return (SteamAPICall_t)NativeMethods.ISteamHTMLSurface_CreateBrowser(pchUserAgent2, pchUserCSS2); - } - } - - /// - /// Call this when you are done with a html surface, this lets us free the resources being used by it - /// - public static void RemoveBrowser(HHTMLBrowser unBrowserHandle) { - InteropHelp.TestIfAvailableClient(); - NativeMethods.ISteamHTMLSurface_RemoveBrowser(unBrowserHandle); - } - - /// - /// Navigate to this URL, results in a HTML_StartRequest_t as the request commences - /// - public static void LoadURL(HHTMLBrowser unBrowserHandle, string pchURL, string pchPostData) { - InteropHelp.TestIfAvailableClient(); - using (var pchURL2 = new InteropHelp.UTF8StringHandle(pchURL)) - using (var pchPostData2 = new InteropHelp.UTF8StringHandle(pchPostData)) { - NativeMethods.ISteamHTMLSurface_LoadURL(unBrowserHandle, pchURL2, pchPostData2); - } - } - - /// - /// Tells the surface the size in pixels to display the surface - /// - public static void SetSize(HHTMLBrowser unBrowserHandle, uint unWidth, uint unHeight) { - InteropHelp.TestIfAvailableClient(); - NativeMethods.ISteamHTMLSurface_SetSize(unBrowserHandle, unWidth, unHeight); - } - - /// - /// Stop the load of the current html page - /// - public static void StopLoad(HHTMLBrowser unBrowserHandle) { - InteropHelp.TestIfAvailableClient(); - NativeMethods.ISteamHTMLSurface_StopLoad(unBrowserHandle); - } - - /// - /// Reload (most likely from local cache) the current page - /// - public static void Reload(HHTMLBrowser unBrowserHandle) { - InteropHelp.TestIfAvailableClient(); - NativeMethods.ISteamHTMLSurface_Reload(unBrowserHandle); - } - - /// - /// navigate back in the page history - /// - public static void GoBack(HHTMLBrowser unBrowserHandle) { - InteropHelp.TestIfAvailableClient(); - NativeMethods.ISteamHTMLSurface_GoBack(unBrowserHandle); - } - - /// - /// navigate forward in the page history - /// - public static void GoForward(HHTMLBrowser unBrowserHandle) { - InteropHelp.TestIfAvailableClient(); - NativeMethods.ISteamHTMLSurface_GoForward(unBrowserHandle); - } - - /// - /// add this header to any url requests from this browser - /// - public static void AddHeader(HHTMLBrowser unBrowserHandle, string pchKey, string pchValue) { - InteropHelp.TestIfAvailableClient(); - using (var pchKey2 = new InteropHelp.UTF8StringHandle(pchKey)) - using (var pchValue2 = new InteropHelp.UTF8StringHandle(pchValue)) { - NativeMethods.ISteamHTMLSurface_AddHeader(unBrowserHandle, pchKey2, pchValue2); - } - } - - /// - /// run this javascript script in the currently loaded page - /// - public static void ExecuteJavascript(HHTMLBrowser unBrowserHandle, string pchScript) { - InteropHelp.TestIfAvailableClient(); - using (var pchScript2 = new InteropHelp.UTF8StringHandle(pchScript)) { - NativeMethods.ISteamHTMLSurface_ExecuteJavascript(unBrowserHandle, pchScript2); - } - } - - /// - /// Mouse click and mouse movement commands - /// - public static void MouseUp(HHTMLBrowser unBrowserHandle, EHTMLMouseButton eMouseButton) { - InteropHelp.TestIfAvailableClient(); - NativeMethods.ISteamHTMLSurface_MouseUp(unBrowserHandle, eMouseButton); - } - - public static void MouseDown(HHTMLBrowser unBrowserHandle, EHTMLMouseButton eMouseButton) { - InteropHelp.TestIfAvailableClient(); - NativeMethods.ISteamHTMLSurface_MouseDown(unBrowserHandle, eMouseButton); - } - - public static void MouseDoubleClick(HHTMLBrowser unBrowserHandle, EHTMLMouseButton eMouseButton) { - InteropHelp.TestIfAvailableClient(); - NativeMethods.ISteamHTMLSurface_MouseDoubleClick(unBrowserHandle, eMouseButton); - } - - /// - /// x and y are relative to the HTML bounds - /// - public static void MouseMove(HHTMLBrowser unBrowserHandle, int x, int y) { - InteropHelp.TestIfAvailableClient(); - NativeMethods.ISteamHTMLSurface_MouseMove(unBrowserHandle, x, y); - } - - /// - /// nDelta is pixels of scroll - /// - public static void MouseWheel(HHTMLBrowser unBrowserHandle, int nDelta) { - InteropHelp.TestIfAvailableClient(); - NativeMethods.ISteamHTMLSurface_MouseWheel(unBrowserHandle, nDelta); - } - - /// - /// keyboard interactions, native keycode is the virtual key code value from your OS - /// - public static void KeyDown(HHTMLBrowser unBrowserHandle, uint nNativeKeyCode, EHTMLKeyModifiers eHTMLKeyModifiers) { - InteropHelp.TestIfAvailableClient(); - NativeMethods.ISteamHTMLSurface_KeyDown(unBrowserHandle, nNativeKeyCode, eHTMLKeyModifiers); - } - - public static void KeyUp(HHTMLBrowser unBrowserHandle, uint nNativeKeyCode, EHTMLKeyModifiers eHTMLKeyModifiers) { - InteropHelp.TestIfAvailableClient(); - NativeMethods.ISteamHTMLSurface_KeyUp(unBrowserHandle, nNativeKeyCode, eHTMLKeyModifiers); - } - - /// - /// cUnicodeChar is the unicode character point for this keypress (and potentially multiple chars per press) - /// - public static void KeyChar(HHTMLBrowser unBrowserHandle, uint cUnicodeChar, EHTMLKeyModifiers eHTMLKeyModifiers) { - InteropHelp.TestIfAvailableClient(); - NativeMethods.ISteamHTMLSurface_KeyChar(unBrowserHandle, cUnicodeChar, eHTMLKeyModifiers); - } - - /// - /// programmatically scroll this many pixels on the page - /// - public static void SetHorizontalScroll(HHTMLBrowser unBrowserHandle, uint nAbsolutePixelScroll) { - InteropHelp.TestIfAvailableClient(); - NativeMethods.ISteamHTMLSurface_SetHorizontalScroll(unBrowserHandle, nAbsolutePixelScroll); - } - - public static void SetVerticalScroll(HHTMLBrowser unBrowserHandle, uint nAbsolutePixelScroll) { - InteropHelp.TestIfAvailableClient(); - NativeMethods.ISteamHTMLSurface_SetVerticalScroll(unBrowserHandle, nAbsolutePixelScroll); - } - - /// - /// tell the html control if it has key focus currently, controls showing the I-beam cursor in text controls amongst other things - /// - public static void SetKeyFocus(HHTMLBrowser unBrowserHandle, bool bHasKeyFocus) { - InteropHelp.TestIfAvailableClient(); - NativeMethods.ISteamHTMLSurface_SetKeyFocus(unBrowserHandle, bHasKeyFocus); - } - - /// - /// open the current pages html code in the local editor of choice, used for debugging - /// - public static void ViewSource(HHTMLBrowser unBrowserHandle) { - InteropHelp.TestIfAvailableClient(); - NativeMethods.ISteamHTMLSurface_ViewSource(unBrowserHandle); - } - - /// - /// copy the currently selected text on the html page to the local clipboard - /// - public static void CopyToClipboard(HHTMLBrowser unBrowserHandle) { - InteropHelp.TestIfAvailableClient(); - NativeMethods.ISteamHTMLSurface_CopyToClipboard(unBrowserHandle); - } - - /// - /// paste from the local clipboard to the current html page - /// - public static void PasteFromClipboard(HHTMLBrowser unBrowserHandle) { - InteropHelp.TestIfAvailableClient(); - NativeMethods.ISteamHTMLSurface_PasteFromClipboard(unBrowserHandle); - } - - /// - /// find this string in the browser, if bCurrentlyInFind is true then instead cycle to the next matching element - /// - public static void Find(HHTMLBrowser unBrowserHandle, string pchSearchStr, bool bCurrentlyInFind, bool bReverse) { - InteropHelp.TestIfAvailableClient(); - using (var pchSearchStr2 = new InteropHelp.UTF8StringHandle(pchSearchStr)) { - NativeMethods.ISteamHTMLSurface_Find(unBrowserHandle, pchSearchStr2, bCurrentlyInFind, bReverse); - } - } - - /// - /// cancel a currently running find - /// - public static void StopFind(HHTMLBrowser unBrowserHandle) { - InteropHelp.TestIfAvailableClient(); - NativeMethods.ISteamHTMLSurface_StopFind(unBrowserHandle); - } - - /// - /// return details about the link at position x,y on the current page - /// - public static void GetLinkAtPosition(HHTMLBrowser unBrowserHandle, int x, int y) { - InteropHelp.TestIfAvailableClient(); - NativeMethods.ISteamHTMLSurface_GetLinkAtPosition(unBrowserHandle, x, y); - } - - /// - /// set a webcookie for the hostname in question - /// - public static void SetCookie(string pchHostname, string pchKey, string pchValue, string pchPath = "/", uint nExpires = 0, bool bSecure = false, bool bHTTPOnly = false) { - InteropHelp.TestIfAvailableClient(); - using (var pchHostname2 = new InteropHelp.UTF8StringHandle(pchHostname)) - using (var pchKey2 = new InteropHelp.UTF8StringHandle(pchKey)) - using (var pchValue2 = new InteropHelp.UTF8StringHandle(pchValue)) - using (var pchPath2 = new InteropHelp.UTF8StringHandle(pchPath)) { - NativeMethods.ISteamHTMLSurface_SetCookie(pchHostname2, pchKey2, pchValue2, pchPath2, nExpires, bSecure, bHTTPOnly); - } - } - - /// - /// Zoom the current page by flZoom ( from 0.0 to 2.0, so to zoom to 120% use 1.2 ), zooming around point X,Y in the page (use 0,0 if you don't care) - /// - public static void SetPageScaleFactor(HHTMLBrowser unBrowserHandle, float flZoom, int nPointX, int nPointY) { - InteropHelp.TestIfAvailableClient(); - NativeMethods.ISteamHTMLSurface_SetPageScaleFactor(unBrowserHandle, flZoom, nPointX, nPointY); - } - - /// - /// Enable/disable low-resource background mode, where javascript and repaint timers are throttled, resources are - /// more aggressively purged from memory, and audio/video elements are paused. When background mode is enabled, - /// all HTML5 video and audio objects will execute ".pause()" and gain the property "._steam_background_paused = 1". - /// When background mode is disabled, any video or audio objects with that property will resume with ".play()". - /// - public static void SetBackgroundMode(HHTMLBrowser unBrowserHandle, bool bBackgroundMode) { - InteropHelp.TestIfAvailableClient(); - NativeMethods.ISteamHTMLSurface_SetBackgroundMode(unBrowserHandle, bBackgroundMode); - } - - /// - /// CALLBACKS - /// These set of functions are used as responses to callback requests - /// You MUST call this in response to a HTML_StartRequest_t callback - /// Set bAllowed to true to allow this navigation, false to cancel it and stay - /// on the current page. You can use this feature to limit the valid pages - /// allowed in your HTML surface. - /// - public static void AllowStartRequest(HHTMLBrowser unBrowserHandle, bool bAllowed) { - InteropHelp.TestIfAvailableClient(); - NativeMethods.ISteamHTMLSurface_AllowStartRequest(unBrowserHandle, bAllowed); - } - - /// - /// You MUST call this in response to a HTML_JSAlert_t or HTML_JSConfirm_t callback - /// Set bResult to true for the OK option of a confirm, use false otherwise - /// - public static void JSDialogResponse(HHTMLBrowser unBrowserHandle, bool bResult) { - InteropHelp.TestIfAvailableClient(); - NativeMethods.ISteamHTMLSurface_JSDialogResponse(unBrowserHandle, bResult); - } - - /// - /// You MUST call this in response to a HTML_FileOpenDialog_t callback - /// - public static void FileLoadDialogResponse(HHTMLBrowser unBrowserHandle, IntPtr pchSelectedFiles) { - InteropHelp.TestIfAvailableClient(); - NativeMethods.ISteamHTMLSurface_FileLoadDialogResponse(unBrowserHandle, pchSelectedFiles); - } - } -} \ No newline at end of file diff --git a/Assets/Plugins/Steamworks.NET/autogen/isteamhtmlsurface.cs.meta b/Assets/Plugins/Steamworks.NET/autogen/isteamhtmlsurface.cs.meta deleted file mode 100644 index a59ec4b..0000000 --- a/Assets/Plugins/Steamworks.NET/autogen/isteamhtmlsurface.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: ef270addbf3b47b4a8e5acd1faf47834 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/Plugins/Steamworks.NET/autogen/isteamhttp.cs b/Assets/Plugins/Steamworks.NET/autogen/isteamhttp.cs deleted file mode 100644 index bcaf4e0..0000000 --- a/Assets/Plugins/Steamworks.NET/autogen/isteamhttp.cs +++ /dev/null @@ -1,268 +0,0 @@ -// This file is provided under The MIT License as part of Steamworks.NET. -// Copyright (c) 2013-2015 Riley Labrecque -// Please see the included LICENSE.txt for additional information. - -// This file is automatically generated. -// Changes to this file will be reverted when you update Steamworks.NET - -using System; -using System.Runtime.InteropServices; - -namespace Steamworks { - public static class SteamHTTP { - /// - /// Initializes a new HTTP request, returning a handle to use in further operations on it. Requires - /// the method (GET or POST) and the absolute URL for the request. Both http and https are supported, - /// so this string must start with http:// or https:// and should look like http://store.steampowered.com/app/250/ - /// or such. - /// - public static HTTPRequestHandle CreateHTTPRequest(EHTTPMethod eHTTPRequestMethod, string pchAbsoluteURL) { - InteropHelp.TestIfAvailableClient(); - using (var pchAbsoluteURL2 = new InteropHelp.UTF8StringHandle(pchAbsoluteURL)) { - return (HTTPRequestHandle)NativeMethods.ISteamHTTP_CreateHTTPRequest(eHTTPRequestMethod, pchAbsoluteURL2); - } - } - - /// - /// Set a context value for the request, which will be returned in the HTTPRequestCompleted_t callback after - /// sending the request. This is just so the caller can easily keep track of which callbacks go with which request data. - /// - public static bool SetHTTPRequestContextValue(HTTPRequestHandle hRequest, ulong ulContextValue) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamHTTP_SetHTTPRequestContextValue(hRequest, ulContextValue); - } - - /// - /// Set a timeout in seconds for the HTTP request, must be called prior to sending the request. Default - /// timeout is 60 seconds if you don't call this. Returns false if the handle is invalid, or the request - /// has already been sent. - /// - public static bool SetHTTPRequestNetworkActivityTimeout(HTTPRequestHandle hRequest, uint unTimeoutSeconds) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamHTTP_SetHTTPRequestNetworkActivityTimeout(hRequest, unTimeoutSeconds); - } - - /// - /// Set a request header value for the request, must be called prior to sending the request. Will - /// return false if the handle is invalid or the request is already sent. - /// - public static bool SetHTTPRequestHeaderValue(HTTPRequestHandle hRequest, string pchHeaderName, string pchHeaderValue) { - InteropHelp.TestIfAvailableClient(); - using (var pchHeaderName2 = new InteropHelp.UTF8StringHandle(pchHeaderName)) - using (var pchHeaderValue2 = new InteropHelp.UTF8StringHandle(pchHeaderValue)) { - return NativeMethods.ISteamHTTP_SetHTTPRequestHeaderValue(hRequest, pchHeaderName2, pchHeaderValue2); - } - } - - /// - /// Set a GET or POST parameter value on the request, which is set will depend on the EHTTPMethod specified - /// when creating the request. Must be called prior to sending the request. Will return false if the - /// handle is invalid or the request is already sent. - /// - public static bool SetHTTPRequestGetOrPostParameter(HTTPRequestHandle hRequest, string pchParamName, string pchParamValue) { - InteropHelp.TestIfAvailableClient(); - using (var pchParamName2 = new InteropHelp.UTF8StringHandle(pchParamName)) - using (var pchParamValue2 = new InteropHelp.UTF8StringHandle(pchParamValue)) { - return NativeMethods.ISteamHTTP_SetHTTPRequestGetOrPostParameter(hRequest, pchParamName2, pchParamValue2); - } - } - - /// - /// Sends the HTTP request, will return false on a bad handle, otherwise use SteamCallHandle to wait on - /// asynchronous response via callback. - /// Note: If the user is in offline mode in Steam, then this will add a only-if-cached cache-control - /// header and only do a local cache lookup rather than sending any actual remote request. - /// - public static bool SendHTTPRequest(HTTPRequestHandle hRequest, out SteamAPICall_t pCallHandle) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamHTTP_SendHTTPRequest(hRequest, out pCallHandle); - } - - /// - /// Sends the HTTP request, will return false on a bad handle, otherwise use SteamCallHandle to wait on - /// asynchronous response via callback for completion, and listen for HTTPRequestHeadersReceived_t and - /// HTTPRequestDataReceived_t callbacks while streaming. - /// - public static bool SendHTTPRequestAndStreamResponse(HTTPRequestHandle hRequest, out SteamAPICall_t pCallHandle) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamHTTP_SendHTTPRequestAndStreamResponse(hRequest, out pCallHandle); - } - - /// - /// Defers a request you have sent, the actual HTTP client code may have many requests queued, and this will move - /// the specified request to the tail of the queue. Returns false on invalid handle, or if the request is not yet sent. - /// - public static bool DeferHTTPRequest(HTTPRequestHandle hRequest) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamHTTP_DeferHTTPRequest(hRequest); - } - - /// - /// Prioritizes a request you have sent, the actual HTTP client code may have many requests queued, and this will move - /// the specified request to the head of the queue. Returns false on invalid handle, or if the request is not yet sent. - /// - public static bool PrioritizeHTTPRequest(HTTPRequestHandle hRequest) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamHTTP_PrioritizeHTTPRequest(hRequest); - } - - /// - /// Checks if a response header is present in a HTTP response given a handle from HTTPRequestCompleted_t, also - /// returns the size of the header value if present so the caller and allocate a correctly sized buffer for - /// GetHTTPResponseHeaderValue. - /// - public static bool GetHTTPResponseHeaderSize(HTTPRequestHandle hRequest, string pchHeaderName, out uint unResponseHeaderSize) { - InteropHelp.TestIfAvailableClient(); - using (var pchHeaderName2 = new InteropHelp.UTF8StringHandle(pchHeaderName)) { - return NativeMethods.ISteamHTTP_GetHTTPResponseHeaderSize(hRequest, pchHeaderName2, out unResponseHeaderSize); - } - } - - /// - /// Gets header values from a HTTP response given a handle from HTTPRequestCompleted_t, will return false if the - /// header is not present or if your buffer is too small to contain it's value. You should first call - /// BGetHTTPResponseHeaderSize to check for the presence of the header and to find out the size buffer needed. - /// - public static bool GetHTTPResponseHeaderValue(HTTPRequestHandle hRequest, string pchHeaderName, byte[] pHeaderValueBuffer, uint unBufferSize) { - InteropHelp.TestIfAvailableClient(); - using (var pchHeaderName2 = new InteropHelp.UTF8StringHandle(pchHeaderName)) { - return NativeMethods.ISteamHTTP_GetHTTPResponseHeaderValue(hRequest, pchHeaderName2, pHeaderValueBuffer, unBufferSize); - } - } - - /// - /// Gets the size of the body data from a HTTP response given a handle from HTTPRequestCompleted_t, will return false if the - /// handle is invalid. - /// - public static bool GetHTTPResponseBodySize(HTTPRequestHandle hRequest, out uint unBodySize) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamHTTP_GetHTTPResponseBodySize(hRequest, out unBodySize); - } - - /// - /// Gets the body data from a HTTP response given a handle from HTTPRequestCompleted_t, will return false if the - /// handle is invalid or is to a streaming response, or if the provided buffer is not the correct size. Use BGetHTTPResponseBodySize first to find out - /// the correct buffer size to use. - /// - public static bool GetHTTPResponseBodyData(HTTPRequestHandle hRequest, byte[] pBodyDataBuffer, uint unBufferSize) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamHTTP_GetHTTPResponseBodyData(hRequest, pBodyDataBuffer, unBufferSize); - } - - /// - /// Gets the body data from a streaming HTTP response given a handle from HTTPRequestDataReceived_t. Will return false if the - /// handle is invalid or is to a non-streaming response (meaning it wasn't sent with SendHTTPRequestAndStreamResponse), or if the buffer size and offset - /// do not match the size and offset sent in HTTPRequestDataReceived_t. - /// - public static bool GetHTTPStreamingResponseBodyData(HTTPRequestHandle hRequest, uint cOffset, byte[] pBodyDataBuffer, uint unBufferSize) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamHTTP_GetHTTPStreamingResponseBodyData(hRequest, cOffset, pBodyDataBuffer, unBufferSize); - } - - /// - /// Releases an HTTP response handle, should always be called to free resources after receiving a HTTPRequestCompleted_t - /// callback and finishing using the response. - /// - public static bool ReleaseHTTPRequest(HTTPRequestHandle hRequest) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamHTTP_ReleaseHTTPRequest(hRequest); - } - - /// - /// Gets progress on downloading the body for the request. This will be zero unless a response header has already been - /// received which included a content-length field. For responses that contain no content-length it will report - /// zero for the duration of the request as the size is unknown until the connection closes. - /// - public static bool GetHTTPDownloadProgressPct(HTTPRequestHandle hRequest, out float pflPercentOut) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamHTTP_GetHTTPDownloadProgressPct(hRequest, out pflPercentOut); - } - - /// - /// Sets the body for an HTTP Post request. Will fail and return false on a GET request, and will fail if POST params - /// have already been set for the request. Setting this raw body makes it the only contents for the post, the pchContentType - /// parameter will set the content-type header for the request so the server may know how to interpret the body. - /// - public static bool SetHTTPRequestRawPostBody(HTTPRequestHandle hRequest, string pchContentType, byte[] pubBody, uint unBodyLen) { - InteropHelp.TestIfAvailableClient(); - using (var pchContentType2 = new InteropHelp.UTF8StringHandle(pchContentType)) { - return NativeMethods.ISteamHTTP_SetHTTPRequestRawPostBody(hRequest, pchContentType2, pubBody, unBodyLen); - } - } - - /// - /// Creates a cookie container handle which you must later free with ReleaseCookieContainer(). If bAllowResponsesToModify=true - /// than any response to your requests using this cookie container may add new cookies which may be transmitted with - /// future requests. If bAllowResponsesToModify=false than only cookies you explicitly set will be sent. This API is just for - /// during process lifetime, after steam restarts no cookies are persisted and you have no way to access the cookie container across - /// repeat executions of your process. - /// - public static HTTPCookieContainerHandle CreateCookieContainer(bool bAllowResponsesToModify) { - InteropHelp.TestIfAvailableClient(); - return (HTTPCookieContainerHandle)NativeMethods.ISteamHTTP_CreateCookieContainer(bAllowResponsesToModify); - } - - /// - /// Release a cookie container you are finished using, freeing it's memory - /// - public static bool ReleaseCookieContainer(HTTPCookieContainerHandle hCookieContainer) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamHTTP_ReleaseCookieContainer(hCookieContainer); - } - - /// - /// Adds a cookie to the specified cookie container that will be used with future requests. - /// - public static bool SetCookie(HTTPCookieContainerHandle hCookieContainer, string pchHost, string pchUrl, string pchCookie) { - InteropHelp.TestIfAvailableClient(); - using (var pchHost2 = new InteropHelp.UTF8StringHandle(pchHost)) - using (var pchUrl2 = new InteropHelp.UTF8StringHandle(pchUrl)) - using (var pchCookie2 = new InteropHelp.UTF8StringHandle(pchCookie)) { - return NativeMethods.ISteamHTTP_SetCookie(hCookieContainer, pchHost2, pchUrl2, pchCookie2); - } - } - - /// - /// Set the cookie container to use for a HTTP request - /// - public static bool SetHTTPRequestCookieContainer(HTTPRequestHandle hRequest, HTTPCookieContainerHandle hCookieContainer) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamHTTP_SetHTTPRequestCookieContainer(hRequest, hCookieContainer); - } - - /// - /// Set the extra user agent info for a request, this doesn't clobber the normal user agent, it just adds the extra info on the end - /// - public static bool SetHTTPRequestUserAgentInfo(HTTPRequestHandle hRequest, string pchUserAgentInfo) { - InteropHelp.TestIfAvailableClient(); - using (var pchUserAgentInfo2 = new InteropHelp.UTF8StringHandle(pchUserAgentInfo)) { - return NativeMethods.ISteamHTTP_SetHTTPRequestUserAgentInfo(hRequest, pchUserAgentInfo2); - } - } - - /// - /// Set that https request should require verified SSL certificate via machines certificate trust store - /// - public static bool SetHTTPRequestRequiresVerifiedCertificate(HTTPRequestHandle hRequest, bool bRequireVerifiedCertificate) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamHTTP_SetHTTPRequestRequiresVerifiedCertificate(hRequest, bRequireVerifiedCertificate); - } - - /// - /// Set an absolute timeout on the HTTP request, this is just a total time timeout different than the network activity timeout - /// which can bump everytime we get more data - /// - public static bool SetHTTPRequestAbsoluteTimeoutMS(HTTPRequestHandle hRequest, uint unMilliseconds) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamHTTP_SetHTTPRequestAbsoluteTimeoutMS(hRequest, unMilliseconds); - } - - /// - /// Check if the reason the request failed was because we timed it out (rather than some harder failure) - /// - public static bool GetHTTPRequestWasTimedOut(HTTPRequestHandle hRequest, out bool pbWasTimedOut) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamHTTP_GetHTTPRequestWasTimedOut(hRequest, out pbWasTimedOut); - } - } -} \ No newline at end of file diff --git a/Assets/Plugins/Steamworks.NET/autogen/isteamhttp.cs.meta b/Assets/Plugins/Steamworks.NET/autogen/isteamhttp.cs.meta deleted file mode 100644 index 465fdc2..0000000 --- a/Assets/Plugins/Steamworks.NET/autogen/isteamhttp.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 7b7467d26e754134e9310381e90945e2 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/Plugins/Steamworks.NET/autogen/isteaminventory.cs b/Assets/Plugins/Steamworks.NET/autogen/isteaminventory.cs deleted file mode 100644 index 30bdf60..0000000 --- a/Assets/Plugins/Steamworks.NET/autogen/isteaminventory.cs +++ /dev/null @@ -1,321 +0,0 @@ -// This file is provided under The MIT License as part of Steamworks.NET. -// Copyright (c) 2013-2015 Riley Labrecque -// Please see the included LICENSE.txt for additional information. - -// This file is automatically generated. -// Changes to this file will be reverted when you update Steamworks.NET - -using System; -using System.Runtime.InteropServices; - -namespace Steamworks { - public static class SteamInventory { - /// - /// INVENTORY ASYNC RESULT MANAGEMENT - /// Asynchronous inventory queries always output a result handle which can be used with - /// GetResultStatus, GetResultItems, etc. A SteamInventoryResultReady_t callback will - /// be triggered when the asynchronous result becomes ready (or fails). - /// Find out the status of an asynchronous inventory result handle. Possible values: - /// k_EResultPending - still in progress - /// k_EResultOK - done, result ready - /// k_EResultExpired - done, result ready, maybe out of date (see DeserializeResult) - /// k_EResultInvalidParam - ERROR: invalid API call parameters - /// k_EResultServiceUnavailable - ERROR: service temporarily down, you may retry later - /// k_EResultLimitExceeded - ERROR: operation would exceed per-user inventory limits - /// k_EResultFail - ERROR: unknown / generic error - /// - public static EResult GetResultStatus(SteamInventoryResult_t resultHandle) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamInventory_GetResultStatus(resultHandle); - } - - /// - /// Copies the contents of a result set into a flat array. The specific - /// contents of the result set depend on which query which was used. - /// - public static bool GetResultItems(SteamInventoryResult_t resultHandle, SteamItemDetails_t[] pOutItemsArray, ref uint punOutItemsArraySize) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamInventory_GetResultItems(resultHandle, pOutItemsArray, ref punOutItemsArraySize); - } - - /// - /// Returns the server time at which the result was generated. Compare against - /// the value of IClientUtils::GetServerRealTime() to determine age. - /// - public static uint GetResultTimestamp(SteamInventoryResult_t resultHandle) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamInventory_GetResultTimestamp(resultHandle); - } - - /// - /// Returns true if the result belongs to the target steam ID, false if the - /// result does not. This is important when using DeserializeResult, to verify - /// that a remote player is not pretending to have a different user's inventory. - /// - public static bool CheckResultSteamID(SteamInventoryResult_t resultHandle, CSteamID steamIDExpected) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamInventory_CheckResultSteamID(resultHandle, steamIDExpected); - } - - /// - /// Destroys a result handle and frees all associated memory. - /// - public static void DestroyResult(SteamInventoryResult_t resultHandle) { - InteropHelp.TestIfAvailableClient(); - NativeMethods.ISteamInventory_DestroyResult(resultHandle); - } - - /// - /// INVENTORY ASYNC QUERY - /// Captures the entire state of the current user's Steam inventory. - /// You must call DestroyResult on this handle when you are done with it. - /// Returns false and sets *pResultHandle to zero if inventory is unavailable. - /// Note: calls to this function are subject to rate limits and may return - /// cached results if called too frequently. It is suggested that you call - /// this function only when you are about to display the user's full inventory, - /// or if you expect that the inventory may have changed. - /// - public static bool GetAllItems(out SteamInventoryResult_t pResultHandle) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamInventory_GetAllItems(out pResultHandle); - } - - /// - /// Captures the state of a subset of the current user's Steam inventory, - /// identified by an array of item instance IDs. The results from this call - /// can be serialized and passed to other players to "prove" that the current - /// user owns specific items, without exposing the user's entire inventory. - /// For example, you could call GetItemsByID with the IDs of the user's - /// currently equipped cosmetic items and serialize this to a buffer, and - /// then transmit this buffer to other players upon joining a game. - /// - public static bool GetItemsByID(out SteamInventoryResult_t pResultHandle, SteamItemInstanceID_t[] pInstanceIDs, uint unCountInstanceIDs) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamInventory_GetItemsByID(out pResultHandle, pInstanceIDs, unCountInstanceIDs); - } - - /// - /// RESULT SERIALIZATION AND AUTHENTICATION - /// Serialized result sets contain a short signature which can't be forged - /// or replayed across different game sessions. A result set can be serialized - /// on the local client, transmitted to other players via your game networking, - /// and deserialized by the remote players. This is a secure way of preventing - /// hackers from lying about posessing rare/high-value items. - /// Serializes a result set with signature bytes to an output buffer. Pass - /// NULL as an output buffer to get the required size via punOutBufferSize. - /// The size of a serialized result depends on the number items which are being - /// serialized. When securely transmitting items to other players, it is - /// recommended to use "GetItemsByID" first to create a minimal result set. - /// Results have a built-in timestamp which will be considered "expired" after - /// an hour has elapsed. See DeserializeResult for expiration handling. - /// - public static bool SerializeResult(SteamInventoryResult_t resultHandle, byte[] pOutBuffer, out uint punOutBufferSize) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamInventory_SerializeResult(resultHandle, pOutBuffer, out punOutBufferSize); - } - - /// - /// Deserializes a result set and verifies the signature bytes. Returns false - /// if bRequireFullOnlineVerify is set but Steam is running in Offline mode. - /// Otherwise returns true and then delivers error codes via GetResultStatus. - /// The bRESERVED_MUST_BE_FALSE flag is reserved for future use and should not - /// be set to true by your game at this time. - /// DeserializeResult has a potential soft-failure mode where the handle status - /// is set to k_EResultExpired. GetResultItems() still succeeds in this mode. - /// The "expired" result could indicate that the data may be out of date - not - /// just due to timed expiration (one hour), but also because one of the items - /// in the result set may have been traded or consumed since the result set was - /// generated. You could compare the timestamp from GetResultTimestamp() to - /// ISteamUtils::GetServerRealTime() to determine how old the data is. You could - /// simply ignore the "expired" result code and continue as normal, or you - /// could challenge the player with expired data to send an updated result set. - /// - public static bool DeserializeResult(out SteamInventoryResult_t pOutResultHandle, byte[] pBuffer, uint unBufferSize, bool bRESERVED_MUST_BE_FALSE = false) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamInventory_DeserializeResult(out pOutResultHandle, pBuffer, unBufferSize, bRESERVED_MUST_BE_FALSE); - } - - /// - /// INVENTORY ASYNC MODIFICATION - /// GenerateItems() creates one or more items and then generates a SteamInventoryCallback_t - /// notification with a matching nCallbackContext parameter. This API is insecure, and could - /// be abused by hacked clients. It is, however, very useful as a development cheat or as - /// a means of prototyping item-related features for your game. The use of GenerateItems can - /// be restricted to certain item definitions or fully blocked via the Steamworks website. - /// If punArrayQuantity is not NULL, it should be the same length as pArrayItems and should - /// describe the quantity of each item to generate. - /// - public static bool GenerateItems(out SteamInventoryResult_t pResultHandle, SteamItemDef_t[] pArrayItemDefs, uint[] punArrayQuantity, uint unArrayLength) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamInventory_GenerateItems(out pResultHandle, pArrayItemDefs, punArrayQuantity, unArrayLength); - } - - /// - /// GrantPromoItems() checks the list of promotional items for which the user may be eligible - /// and grants the items (one time only). On success, the result set will include items which - /// were granted, if any. If no items were granted because the user isn't eligible for any - /// promotions, this is still considered a success. - /// - public static bool GrantPromoItems(out SteamInventoryResult_t pResultHandle) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamInventory_GrantPromoItems(out pResultHandle); - } - - /// - /// AddPromoItem() / AddPromoItems() are restricted versions of GrantPromoItems(). Instead of - /// scanning for all eligible promotional items, the check is restricted to a single item - /// definition or set of item definitions. This can be useful if your game has custom UI for - /// showing a specific promo item to the user. - /// - public static bool AddPromoItem(out SteamInventoryResult_t pResultHandle, SteamItemDef_t itemDef) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamInventory_AddPromoItem(out pResultHandle, itemDef); - } - - public static bool AddPromoItems(out SteamInventoryResult_t pResultHandle, SteamItemDef_t[] pArrayItemDefs, uint unArrayLength) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamInventory_AddPromoItems(out pResultHandle, pArrayItemDefs, unArrayLength); - } - - /// - /// ConsumeItem() removes items from the inventory, permanently. They cannot be recovered. - /// Not for the faint of heart - if your game implements item removal at all, a high-friction - /// UI confirmation process is highly recommended. Similar to GenerateItems, punArrayQuantity - /// can be NULL or else an array of the same length as pArrayItems which describe the quantity - /// of each item to destroy. ConsumeItem can be restricted to certain item definitions or - /// fully blocked via the Steamworks website to minimize support/abuse issues such as the - /// clasic "my brother borrowed my laptop and deleted all of my rare items". - /// - public static bool ConsumeItem(out SteamInventoryResult_t pResultHandle, SteamItemInstanceID_t itemConsume, uint unQuantity) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamInventory_ConsumeItem(out pResultHandle, itemConsume, unQuantity); - } - - /// - /// ExchangeItems() is an atomic combination of GenerateItems and DestroyItems. It can be - /// used to implement crafting recipes or transmutations, or items which unpack themselves - /// into other items. Like GenerateItems, this is a flexible and dangerous API which is - /// meant for rapid prototyping. You can configure restrictions on ExchangeItems via the - /// Steamworks website, such as limiting it to a whitelist of input/output combinations - /// corresponding to recipes. - /// (Note: although GenerateItems may be hard or impossible to use securely in your game, - /// ExchangeItems is perfectly reasonable to use once the whitelists are set accordingly.) - /// - public static bool ExchangeItems(out SteamInventoryResult_t pResultHandle, SteamItemDef_t[] pArrayGenerate, uint[] punArrayGenerateQuantity, uint unArrayGenerateLength, SteamItemInstanceID_t[] pArrayDestroy, uint[] punArrayDestroyQuantity, uint unArrayDestroyLength) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamInventory_ExchangeItems(out pResultHandle, pArrayGenerate, punArrayGenerateQuantity, unArrayGenerateLength, pArrayDestroy, punArrayDestroyQuantity, unArrayDestroyLength); - } - - /// - /// TransferItemQuantity() is intended for use with items which are "stackable" (can have - /// quantity greater than one). It can be used to split a stack into two, or to transfer - /// quantity from one stack into another stack of identical items. To split one stack into - /// two, pass k_SteamItemInstanceIDInvalid for itemIdDest and a new item will be generated. - /// - public static bool TransferItemQuantity(out SteamInventoryResult_t pResultHandle, SteamItemInstanceID_t itemIdSource, uint unQuantity, SteamItemInstanceID_t itemIdDest) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamInventory_TransferItemQuantity(out pResultHandle, itemIdSource, unQuantity, itemIdDest); - } - - /// - /// TIMED DROPS AND PLAYTIME CREDIT - /// Applications which use timed-drop mechanics should call SendItemDropHeartbeat() when - /// active gameplay begins, and at least once every two minutes afterwards. The backend - /// performs its own time calculations, so the precise timing of the heartbeat is not - /// critical as long as you send at least one heartbeat every two minutes. Calling the - /// function more often than that is not harmful, it will simply have no effect. Note: - /// players may be able to spoof this message by hacking their client, so you should not - /// attempt to use this as a mechanism to restrict playtime credits. It is simply meant - /// to distinguish between being in any kind of gameplay situation vs the main menu or - /// a pre-game launcher window. (If you are stingy with handing out playtime credit, it - /// will only encourage players to run bots or use mouse/kb event simulators.) - /// Playtime credit accumulation can be capped on a daily or weekly basis through your - /// Steamworks configuration. - /// - public static void SendItemDropHeartbeat() { - InteropHelp.TestIfAvailableClient(); - NativeMethods.ISteamInventory_SendItemDropHeartbeat(); - } - - /// - /// Playtime credit must be consumed and turned into item drops by your game. Only item - /// definitions which are marked as "playtime item generators" can be spawned. The call - /// will return an empty result set if there is not enough playtime credit for a drop. - /// Your game should call TriggerItemDrop at an appropriate time for the user to receive - /// new items, such as between rounds or while the player is dead. Note that players who - /// hack their clients could modify the value of "dropListDefinition", so do not use it - /// to directly control rarity. It is primarily useful during testing and development, - /// where you may wish to perform experiments with different types of drops. - /// - public static bool TriggerItemDrop(out SteamInventoryResult_t pResultHandle, SteamItemDef_t dropListDefinition) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamInventory_TriggerItemDrop(out pResultHandle, dropListDefinition); - } - - /// - /// IN-GAME TRADING - /// TradeItems() implements limited in-game trading of items, if you prefer not to use - /// the overlay or an in-game web browser to perform Steam Trading through the website. - /// You should implement a UI where both players can see and agree to a trade, and then - /// each client should call TradeItems simultaneously (+/- 5 seconds) with matching - /// (but reversed) parameters. The result is the same as if both players performed a - /// Steam Trading transaction through the web. Each player will get an inventory result - /// confirming the removal or quantity changes of the items given away, and the new - /// item instance id numbers and quantities of the received items. - /// (Note: new item instance IDs are generated whenever an item changes ownership.) - /// - public static bool TradeItems(out SteamInventoryResult_t pResultHandle, CSteamID steamIDTradePartner, SteamItemInstanceID_t[] pArrayGive, uint[] pArrayGiveQuantity, uint nArrayGiveLength, SteamItemInstanceID_t[] pArrayGet, uint[] pArrayGetQuantity, uint nArrayGetLength) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamInventory_TradeItems(out pResultHandle, steamIDTradePartner, pArrayGive, pArrayGiveQuantity, nArrayGiveLength, pArrayGet, pArrayGetQuantity, nArrayGetLength); - } - - /// - /// ITEM DEFINITIONS - /// Item definitions are a mapping of "definition IDs" (integers between 1 and 1000000) - /// to a set of string properties. Some of these properties are required to display items - /// on the Steam community web site. Other properties can be defined by applications. - /// Use of these functions is optional; there is no reason to call LoadItemDefinitions - /// if your game hardcodes the numeric definition IDs (eg, purple face mask = 20, blue - /// weapon mod = 55) and does not allow for adding new item types without a client patch. - /// LoadItemDefinitions triggers the automatic load and refresh of item definitions. - /// Every time new item definitions are available (eg, from the dynamic addition of new - /// item types while players are still in-game), a SteamInventoryDefinitionUpdate_t - /// callback will be fired. - /// - public static bool LoadItemDefinitions() { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamInventory_LoadItemDefinitions(); - } - - /// - /// GetItemDefinitionIDs returns the set of all defined item definition IDs (which are - /// defined via Steamworks configuration, and not necessarily contiguous integers). - /// If pItemDefIDs is null, the call will return true and *punItemDefIDsArraySize will - /// contain the total size necessary for a subsequent call. Otherwise, the call will - /// return false if and only if there is not enough space in the output array. - /// - public static bool GetItemDefinitionIDs(SteamItemDef_t[] pItemDefIDs, out uint punItemDefIDsArraySize) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamInventory_GetItemDefinitionIDs(pItemDefIDs, out punItemDefIDsArraySize); - } - - /// - /// GetItemDefinitionProperty returns a string property from a given item definition. - /// Note that some properties (for example, "name") may be localized and will depend - /// on the current Steam language settings (see ISteamApps::GetCurrentGameLanguage). - /// Property names are always composed of ASCII letters, numbers, and/or underscores. - /// Pass a NULL pointer for pchPropertyName to get a comma - separated list of available - /// property names. - /// - public static bool GetItemDefinitionProperty(SteamItemDef_t iDefinition, string pchPropertyName, out string pchValueBuffer, ref uint punValueBufferSize) { - InteropHelp.TestIfAvailableClient(); - IntPtr pchValueBuffer2 = Marshal.AllocHGlobal((int)punValueBufferSize); - using (var pchPropertyName2 = new InteropHelp.UTF8StringHandle(pchPropertyName)) { - bool ret = NativeMethods.ISteamInventory_GetItemDefinitionProperty(iDefinition, pchPropertyName2, pchValueBuffer2, ref punValueBufferSize); - pchValueBuffer = ret ? InteropHelp.PtrToStringUTF8(pchValueBuffer2) : null; - Marshal.FreeHGlobal(pchValueBuffer2); - return ret; - } - } - } -} \ No newline at end of file diff --git a/Assets/Plugins/Steamworks.NET/autogen/isteaminventory.cs.meta b/Assets/Plugins/Steamworks.NET/autogen/isteaminventory.cs.meta deleted file mode 100644 index f3ed11c..0000000 --- a/Assets/Plugins/Steamworks.NET/autogen/isteaminventory.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 421743b9be54f704095ef958c1dc779a -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/Plugins/Steamworks.NET/autogen/isteammatchmaking.cs b/Assets/Plugins/Steamworks.NET/autogen/isteammatchmaking.cs deleted file mode 100644 index 1549080..0000000 --- a/Assets/Plugins/Steamworks.NET/autogen/isteammatchmaking.cs +++ /dev/null @@ -1,633 +0,0 @@ -// This file is provided under The MIT License as part of Steamworks.NET. -// Copyright (c) 2013-2015 Riley Labrecque -// Please see the included LICENSE.txt for additional information. - -// This file is automatically generated. -// Changes to this file will be reverted when you update Steamworks.NET - -using System; -using System.Runtime.InteropServices; - -namespace Steamworks { - public static class SteamMatchmaking { - /// - /// game server favorites storage - /// saves basic details about a multiplayer game server locally - /// returns the number of favorites servers the user has stored - /// - public static int GetFavoriteGameCount() { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamMatchmaking_GetFavoriteGameCount(); - } - - /// - /// returns the details of the game server - /// iGame is of range [0,GetFavoriteGameCount()) - /// *pnIP, *pnConnPort are filled in the with IP:port of the game server - /// *punFlags specify whether the game server was stored as an explicit favorite or in the history of connections - /// *pRTime32LastPlayedOnServer is filled in the with the Unix time the favorite was added - /// - public static bool GetFavoriteGame(int iGame, out AppId_t pnAppID, out uint pnIP, out ushort pnConnPort, out ushort pnQueryPort, out uint punFlags, out uint pRTime32LastPlayedOnServer) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamMatchmaking_GetFavoriteGame(iGame, out pnAppID, out pnIP, out pnConnPort, out pnQueryPort, out punFlags, out pRTime32LastPlayedOnServer); - } - - /// - /// adds the game server to the local list; updates the time played of the server if it already exists in the list - /// - public static int AddFavoriteGame(AppId_t nAppID, uint nIP, ushort nConnPort, ushort nQueryPort, uint unFlags, uint rTime32LastPlayedOnServer) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamMatchmaking_AddFavoriteGame(nAppID, nIP, nConnPort, nQueryPort, unFlags, rTime32LastPlayedOnServer); - } - - /// - /// removes the game server from the local storage; returns true if one was removed - /// - public static bool RemoveFavoriteGame(AppId_t nAppID, uint nIP, ushort nConnPort, ushort nQueryPort, uint unFlags) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamMatchmaking_RemoveFavoriteGame(nAppID, nIP, nConnPort, nQueryPort, unFlags); - } - - /// - /// ///// - /// Game lobby functions - /// Get a list of relevant lobbies - /// this is an asynchronous request - /// results will be returned by LobbyMatchList_t callback & call result, with the number of lobbies found - /// this will never return lobbies that are full - /// to add more filter, the filter calls below need to be call before each and every RequestLobbyList() call - /// use the CCallResult<> object in steam_api.h to match the SteamAPICall_t call result to a function in an object, e.g. - /// class CMyLobbyListManager - /// { - /// CCallResult<CMyLobbyListManager, LobbyMatchList_t> m_CallResultLobbyMatchList; - /// void FindLobbies() - /// { - /// // SteamMatchmaking()->AddRequestLobbyListFilter*() functions would be called here, before RequestLobbyList() - /// SteamAPICall_t hSteamAPICall = SteamMatchmaking()->RequestLobbyList(); - /// m_CallResultLobbyMatchList.Set( hSteamAPICall, this, &CMyLobbyListManager::OnLobbyMatchList ); - /// } - /// void OnLobbyMatchList( LobbyMatchList_t *pLobbyMatchList, bool bIOFailure ) - /// { - /// // lobby list has be retrieved from Steam back-end, use results - /// } - /// } - /// - public static SteamAPICall_t RequestLobbyList() { - InteropHelp.TestIfAvailableClient(); - return (SteamAPICall_t)NativeMethods.ISteamMatchmaking_RequestLobbyList(); - } - - /// - /// filters for lobbies - /// this needs to be called before RequestLobbyList() to take effect - /// these are cleared on each call to RequestLobbyList() - /// - public static void AddRequestLobbyListStringFilter(string pchKeyToMatch, string pchValueToMatch, ELobbyComparison eComparisonType) { - InteropHelp.TestIfAvailableClient(); - using (var pchKeyToMatch2 = new InteropHelp.UTF8StringHandle(pchKeyToMatch)) - using (var pchValueToMatch2 = new InteropHelp.UTF8StringHandle(pchValueToMatch)) { - NativeMethods.ISteamMatchmaking_AddRequestLobbyListStringFilter(pchKeyToMatch2, pchValueToMatch2, eComparisonType); - } - } - - /// - /// numerical comparison - /// - public static void AddRequestLobbyListNumericalFilter(string pchKeyToMatch, int nValueToMatch, ELobbyComparison eComparisonType) { - InteropHelp.TestIfAvailableClient(); - using (var pchKeyToMatch2 = new InteropHelp.UTF8StringHandle(pchKeyToMatch)) { - NativeMethods.ISteamMatchmaking_AddRequestLobbyListNumericalFilter(pchKeyToMatch2, nValueToMatch, eComparisonType); - } - } - - /// - /// returns results closest to the specified value. Multiple near filters can be added, with early filters taking precedence - /// - public static void AddRequestLobbyListNearValueFilter(string pchKeyToMatch, int nValueToBeCloseTo) { - InteropHelp.TestIfAvailableClient(); - using (var pchKeyToMatch2 = new InteropHelp.UTF8StringHandle(pchKeyToMatch)) { - NativeMethods.ISteamMatchmaking_AddRequestLobbyListNearValueFilter(pchKeyToMatch2, nValueToBeCloseTo); - } - } - - /// - /// returns only lobbies with the specified number of slots available - /// - public static void AddRequestLobbyListFilterSlotsAvailable(int nSlotsAvailable) { - InteropHelp.TestIfAvailableClient(); - NativeMethods.ISteamMatchmaking_AddRequestLobbyListFilterSlotsAvailable(nSlotsAvailable); - } - - /// - /// sets the distance for which we should search for lobbies (based on users IP address to location map on the Steam backed) - /// - public static void AddRequestLobbyListDistanceFilter(ELobbyDistanceFilter eLobbyDistanceFilter) { - InteropHelp.TestIfAvailableClient(); - NativeMethods.ISteamMatchmaking_AddRequestLobbyListDistanceFilter(eLobbyDistanceFilter); - } - - /// - /// sets how many results to return, the lower the count the faster it is to download the lobby results & details to the client - /// - public static void AddRequestLobbyListResultCountFilter(int cMaxResults) { - InteropHelp.TestIfAvailableClient(); - NativeMethods.ISteamMatchmaking_AddRequestLobbyListResultCountFilter(cMaxResults); - } - - public static void AddRequestLobbyListCompatibleMembersFilter(CSteamID steamIDLobby) { - InteropHelp.TestIfAvailableClient(); - NativeMethods.ISteamMatchmaking_AddRequestLobbyListCompatibleMembersFilter(steamIDLobby); - } - - /// - /// returns the CSteamID of a lobby, as retrieved by a RequestLobbyList call - /// should only be called after a LobbyMatchList_t callback is received - /// iLobby is of the range [0, LobbyMatchList_t::m_nLobbiesMatching) - /// the returned CSteamID::IsValid() will be false if iLobby is out of range - /// - public static CSteamID GetLobbyByIndex(int iLobby) { - InteropHelp.TestIfAvailableClient(); - return (CSteamID)NativeMethods.ISteamMatchmaking_GetLobbyByIndex(iLobby); - } - - /// - /// Create a lobby on the Steam servers. - /// If private, then the lobby will not be returned by any RequestLobbyList() call; the CSteamID - /// of the lobby will need to be communicated via game channels or via InviteUserToLobby() - /// this is an asynchronous request - /// results will be returned by LobbyCreated_t callback and call result; lobby is joined & ready to use at this point - /// a LobbyEnter_t callback will also be received (since the local user is joining their own lobby) - /// - public static SteamAPICall_t CreateLobby(ELobbyType eLobbyType, int cMaxMembers) { - InteropHelp.TestIfAvailableClient(); - return (SteamAPICall_t)NativeMethods.ISteamMatchmaking_CreateLobby(eLobbyType, cMaxMembers); - } - - /// - /// Joins an existing lobby - /// this is an asynchronous request - /// results will be returned by LobbyEnter_t callback & call result, check m_EChatRoomEnterResponse to see if was successful - /// lobby metadata is available to use immediately on this call completing - /// - public static SteamAPICall_t JoinLobby(CSteamID steamIDLobby) { - InteropHelp.TestIfAvailableClient(); - return (SteamAPICall_t)NativeMethods.ISteamMatchmaking_JoinLobby(steamIDLobby); - } - - /// - /// Leave a lobby; this will take effect immediately on the client side - /// other users in the lobby will be notified by a LobbyChatUpdate_t callback - /// - public static void LeaveLobby(CSteamID steamIDLobby) { - InteropHelp.TestIfAvailableClient(); - NativeMethods.ISteamMatchmaking_LeaveLobby(steamIDLobby); - } - - /// - /// Invite another user to the lobby - /// the target user will receive a LobbyInvite_t callback - /// will return true if the invite is successfully sent, whether or not the target responds - /// returns false if the local user is not connected to the Steam servers - /// if the other user clicks the join link, a GameLobbyJoinRequested_t will be posted if the user is in-game, - /// or if the game isn't running yet the game will be launched with the parameter +connect_lobby <64-bit lobby id> - /// - public static bool InviteUserToLobby(CSteamID steamIDLobby, CSteamID steamIDInvitee) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamMatchmaking_InviteUserToLobby(steamIDLobby, steamIDInvitee); - } - - /// - /// Lobby iteration, for viewing details of users in a lobby - /// only accessible if the lobby user is a member of the specified lobby - /// persona information for other lobby members (name, avatar, etc.) will be asynchronously received - /// and accessible via ISteamFriends interface - /// returns the number of users in the specified lobby - /// - public static int GetNumLobbyMembers(CSteamID steamIDLobby) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamMatchmaking_GetNumLobbyMembers(steamIDLobby); - } - - /// - /// returns the CSteamID of a user in the lobby - /// iMember is of range [0,GetNumLobbyMembers()) - /// note that the current user must be in a lobby to retrieve CSteamIDs of other users in that lobby - /// - public static CSteamID GetLobbyMemberByIndex(CSteamID steamIDLobby, int iMember) { - InteropHelp.TestIfAvailableClient(); - return (CSteamID)NativeMethods.ISteamMatchmaking_GetLobbyMemberByIndex(steamIDLobby, iMember); - } - - /// - /// Get data associated with this lobby - /// takes a simple key, and returns the string associated with it - /// "" will be returned if no value is set, or if steamIDLobby is invalid - /// - public static string GetLobbyData(CSteamID steamIDLobby, string pchKey) { - InteropHelp.TestIfAvailableClient(); - using (var pchKey2 = new InteropHelp.UTF8StringHandle(pchKey)) { - return InteropHelp.PtrToStringUTF8(NativeMethods.ISteamMatchmaking_GetLobbyData(steamIDLobby, pchKey2)); - } - } - - /// - /// Sets a key/value pair in the lobby metadata - /// each user in the lobby will be broadcast this new value, and any new users joining will receive any existing data - /// this can be used to set lobby names, map, etc. - /// to reset a key, just set it to "" - /// other users in the lobby will receive notification of the lobby data change via a LobbyDataUpdate_t callback - /// - public static bool SetLobbyData(CSteamID steamIDLobby, string pchKey, string pchValue) { - InteropHelp.TestIfAvailableClient(); - using (var pchKey2 = new InteropHelp.UTF8StringHandle(pchKey)) - using (var pchValue2 = new InteropHelp.UTF8StringHandle(pchValue)) { - return NativeMethods.ISteamMatchmaking_SetLobbyData(steamIDLobby, pchKey2, pchValue2); - } - } - - /// - /// returns the number of metadata keys set on the specified lobby - /// - public static int GetLobbyDataCount(CSteamID steamIDLobby) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamMatchmaking_GetLobbyDataCount(steamIDLobby); - } - - /// - /// returns a lobby metadata key/values pair by index, of range [0, GetLobbyDataCount()) - /// - public static bool GetLobbyDataByIndex(CSteamID steamIDLobby, int iLobbyData, out string pchKey, int cchKeyBufferSize, out string pchValue, int cchValueBufferSize) { - InteropHelp.TestIfAvailableClient(); - IntPtr pchKey2 = Marshal.AllocHGlobal(cchKeyBufferSize); - IntPtr pchValue2 = Marshal.AllocHGlobal(cchValueBufferSize); - bool ret = NativeMethods.ISteamMatchmaking_GetLobbyDataByIndex(steamIDLobby, iLobbyData, pchKey2, cchKeyBufferSize, pchValue2, cchValueBufferSize); - pchKey = ret ? InteropHelp.PtrToStringUTF8(pchKey2) : null; - Marshal.FreeHGlobal(pchKey2); - pchValue = ret ? InteropHelp.PtrToStringUTF8(pchValue2) : null; - Marshal.FreeHGlobal(pchValue2); - return ret; - } - - /// - /// removes a metadata key from the lobby - /// - public static bool DeleteLobbyData(CSteamID steamIDLobby, string pchKey) { - InteropHelp.TestIfAvailableClient(); - using (var pchKey2 = new InteropHelp.UTF8StringHandle(pchKey)) { - return NativeMethods.ISteamMatchmaking_DeleteLobbyData(steamIDLobby, pchKey2); - } - } - - /// - /// Gets per-user metadata for someone in this lobby - /// - public static string GetLobbyMemberData(CSteamID steamIDLobby, CSteamID steamIDUser, string pchKey) { - InteropHelp.TestIfAvailableClient(); - using (var pchKey2 = new InteropHelp.UTF8StringHandle(pchKey)) { - return InteropHelp.PtrToStringUTF8(NativeMethods.ISteamMatchmaking_GetLobbyMemberData(steamIDLobby, steamIDUser, pchKey2)); - } - } - - /// - /// Sets per-user metadata (for the local user implicitly) - /// - public static void SetLobbyMemberData(CSteamID steamIDLobby, string pchKey, string pchValue) { - InteropHelp.TestIfAvailableClient(); - using (var pchKey2 = new InteropHelp.UTF8StringHandle(pchKey)) - using (var pchValue2 = new InteropHelp.UTF8StringHandle(pchValue)) { - NativeMethods.ISteamMatchmaking_SetLobbyMemberData(steamIDLobby, pchKey2, pchValue2); - } - } - - /// - /// Broadcasts a chat message to the all the users in the lobby - /// users in the lobby (including the local user) will receive a LobbyChatMsg_t callback - /// returns true if the message is successfully sent - /// pvMsgBody can be binary or text data, up to 4k - /// if pvMsgBody is text, cubMsgBody should be strlen( text ) + 1, to include the null terminator - /// - public static bool SendLobbyChatMsg(CSteamID steamIDLobby, byte[] pvMsgBody, int cubMsgBody) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamMatchmaking_SendLobbyChatMsg(steamIDLobby, pvMsgBody, cubMsgBody); - } - - /// - /// Get a chat message as specified in a LobbyChatMsg_t callback - /// iChatID is the LobbyChatMsg_t::m_iChatID value in the callback - /// *pSteamIDUser is filled in with the CSteamID of the member - /// *pvData is filled in with the message itself - /// return value is the number of bytes written into the buffer - /// - public static int GetLobbyChatEntry(CSteamID steamIDLobby, int iChatID, out CSteamID pSteamIDUser, byte[] pvData, int cubData, out EChatEntryType peChatEntryType) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamMatchmaking_GetLobbyChatEntry(steamIDLobby, iChatID, out pSteamIDUser, pvData, cubData, out peChatEntryType); - } - - /// - /// Refreshes metadata for a lobby you're not necessarily in right now - /// you never do this for lobbies you're a member of, only if your - /// this will send down all the metadata associated with a lobby - /// this is an asynchronous call - /// returns false if the local user is not connected to the Steam servers - /// results will be returned by a LobbyDataUpdate_t callback - /// if the specified lobby doesn't exist, LobbyDataUpdate_t::m_bSuccess will be set to false - /// - public static bool RequestLobbyData(CSteamID steamIDLobby) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamMatchmaking_RequestLobbyData(steamIDLobby); - } - - /// - /// sets the game server associated with the lobby - /// usually at this point, the users will join the specified game server - /// either the IP/Port or the steamID of the game server has to be valid, depending on how you want the clients to be able to connect - /// - public static void SetLobbyGameServer(CSteamID steamIDLobby, uint unGameServerIP, ushort unGameServerPort, CSteamID steamIDGameServer) { - InteropHelp.TestIfAvailableClient(); - NativeMethods.ISteamMatchmaking_SetLobbyGameServer(steamIDLobby, unGameServerIP, unGameServerPort, steamIDGameServer); - } - - /// - /// returns the details of a game server set in a lobby - returns false if there is no game server set, or that lobby doesn't exist - /// - public static bool GetLobbyGameServer(CSteamID steamIDLobby, out uint punGameServerIP, out ushort punGameServerPort, out CSteamID psteamIDGameServer) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamMatchmaking_GetLobbyGameServer(steamIDLobby, out punGameServerIP, out punGameServerPort, out psteamIDGameServer); - } - - /// - /// set the limit on the # of users who can join the lobby - /// - public static bool SetLobbyMemberLimit(CSteamID steamIDLobby, int cMaxMembers) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamMatchmaking_SetLobbyMemberLimit(steamIDLobby, cMaxMembers); - } - - /// - /// returns the current limit on the # of users who can join the lobby; returns 0 if no limit is defined - /// - public static int GetLobbyMemberLimit(CSteamID steamIDLobby) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamMatchmaking_GetLobbyMemberLimit(steamIDLobby); - } - - /// - /// updates which type of lobby it is - /// only lobbies that are k_ELobbyTypePublic or k_ELobbyTypeInvisible, and are set to joinable, will be returned by RequestLobbyList() calls - /// - public static bool SetLobbyType(CSteamID steamIDLobby, ELobbyType eLobbyType) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamMatchmaking_SetLobbyType(steamIDLobby, eLobbyType); - } - - /// - /// sets whether or not a lobby is joinable - defaults to true for a new lobby - /// if set to false, no user can join, even if they are a friend or have been invited - /// - public static bool SetLobbyJoinable(CSteamID steamIDLobby, bool bLobbyJoinable) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamMatchmaking_SetLobbyJoinable(steamIDLobby, bLobbyJoinable); - } - - /// - /// returns the current lobby owner - /// you must be a member of the lobby to access this - /// there always one lobby owner - if the current owner leaves, another user will become the owner - /// it is possible (bur rare) to join a lobby just as the owner is leaving, thus entering a lobby with self as the owner - /// - public static CSteamID GetLobbyOwner(CSteamID steamIDLobby) { - InteropHelp.TestIfAvailableClient(); - return (CSteamID)NativeMethods.ISteamMatchmaking_GetLobbyOwner(steamIDLobby); - } - - /// - /// changes who the lobby owner is - /// you must be the lobby owner for this to succeed, and steamIDNewOwner must be in the lobby - /// after completion, the local user will no longer be the owner - /// - public static bool SetLobbyOwner(CSteamID steamIDLobby, CSteamID steamIDNewOwner) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamMatchmaking_SetLobbyOwner(steamIDLobby, steamIDNewOwner); - } - - /// - /// link two lobbies for the purposes of checking player compatibility - /// you must be the lobby owner of both lobbies - /// - public static bool SetLinkedLobby(CSteamID steamIDLobby, CSteamID steamIDLobbyDependent) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamMatchmaking_SetLinkedLobby(steamIDLobby, steamIDLobbyDependent); - } -#if _PS3 - /// - /// changes who the lobby owner is - /// you must be the lobby owner for this to succeed, and steamIDNewOwner must be in the lobby - /// after completion, the local user will no longer be the owner - /// - public static void CheckForPSNGameBootInvite(uint iGameBootAttributes) { - InteropHelp.TestIfAvailableClient(); - NativeMethods.ISteamMatchmaking_CheckForPSNGameBootInvite(iGameBootAttributes); - } -#endif - } - public static class SteamMatchmakingServers { - /// - /// Request a new list of servers of a particular type. These calls each correspond to one of the EMatchMakingType values. - /// Each call allocates a new asynchronous request object. - /// Request object must be released by calling ReleaseRequest( hServerListRequest ) - /// - public static HServerListRequest RequestInternetServerList(AppId_t iApp, MatchMakingKeyValuePair_t[] ppchFilters, uint nFilters, ISteamMatchmakingServerListResponse pRequestServersResponse) { - InteropHelp.TestIfAvailableClient(); - return (HServerListRequest)NativeMethods.ISteamMatchmakingServers_RequestInternetServerList(iApp, new MMKVPMarshaller(ppchFilters), nFilters, (IntPtr)pRequestServersResponse); - } - - public static HServerListRequest RequestLANServerList(AppId_t iApp, ISteamMatchmakingServerListResponse pRequestServersResponse) { - InteropHelp.TestIfAvailableClient(); - return (HServerListRequest)NativeMethods.ISteamMatchmakingServers_RequestLANServerList(iApp, (IntPtr)pRequestServersResponse); - } - - public static HServerListRequest RequestFriendsServerList(AppId_t iApp, MatchMakingKeyValuePair_t[] ppchFilters, uint nFilters, ISteamMatchmakingServerListResponse pRequestServersResponse) { - InteropHelp.TestIfAvailableClient(); - return (HServerListRequest)NativeMethods.ISteamMatchmakingServers_RequestFriendsServerList(iApp, new MMKVPMarshaller(ppchFilters), nFilters, (IntPtr)pRequestServersResponse); - } - - public static HServerListRequest RequestFavoritesServerList(AppId_t iApp, MatchMakingKeyValuePair_t[] ppchFilters, uint nFilters, ISteamMatchmakingServerListResponse pRequestServersResponse) { - InteropHelp.TestIfAvailableClient(); - return (HServerListRequest)NativeMethods.ISteamMatchmakingServers_RequestFavoritesServerList(iApp, new MMKVPMarshaller(ppchFilters), nFilters, (IntPtr)pRequestServersResponse); - } - - public static HServerListRequest RequestHistoryServerList(AppId_t iApp, MatchMakingKeyValuePair_t[] ppchFilters, uint nFilters, ISteamMatchmakingServerListResponse pRequestServersResponse) { - InteropHelp.TestIfAvailableClient(); - return (HServerListRequest)NativeMethods.ISteamMatchmakingServers_RequestHistoryServerList(iApp, new MMKVPMarshaller(ppchFilters), nFilters, (IntPtr)pRequestServersResponse); - } - - public static HServerListRequest RequestSpectatorServerList(AppId_t iApp, MatchMakingKeyValuePair_t[] ppchFilters, uint nFilters, ISteamMatchmakingServerListResponse pRequestServersResponse) { - InteropHelp.TestIfAvailableClient(); - return (HServerListRequest)NativeMethods.ISteamMatchmakingServers_RequestSpectatorServerList(iApp, new MMKVPMarshaller(ppchFilters), nFilters, (IntPtr)pRequestServersResponse); - } - - /// - /// Releases the asynchronous request object and cancels any pending query on it if there's a pending query in progress. - /// RefreshComplete callback is not posted when request is released. - /// - public static void ReleaseRequest(HServerListRequest hServerListRequest) { - InteropHelp.TestIfAvailableClient(); - NativeMethods.ISteamMatchmakingServers_ReleaseRequest(hServerListRequest); - } - - /// - /// the filter operation codes that go in the key part of MatchMakingKeyValuePair_t should be one of these: - /// "map" - /// - Server passes the filter if the server is playing the specified map. - /// "gamedataand" - /// - Server passes the filter if the server's game data (ISteamGameServer::SetGameData) contains all of the - /// specified strings. The value field is a comma-delimited list of strings to match. - /// "gamedataor" - /// - Server passes the filter if the server's game data (ISteamGameServer::SetGameData) contains at least one of the - /// specified strings. The value field is a comma-delimited list of strings to match. - /// "gamedatanor" - /// - Server passes the filter if the server's game data (ISteamGameServer::SetGameData) does not contain any - /// of the specified strings. The value field is a comma-delimited list of strings to check. - /// "gametagsand" - /// - Server passes the filter if the server's game tags (ISteamGameServer::SetGameTags) contains all - /// of the specified strings. The value field is a comma-delimited list of strings to check. - /// "gametagsnor" - /// - Server passes the filter if the server's game tags (ISteamGameServer::SetGameTags) does not contain any - /// of the specified strings. The value field is a comma-delimited list of strings to check. - /// "and" (x1 && x2 && ... && xn) - /// "or" (x1 || x2 || ... || xn) - /// "nand" !(x1 && x2 && ... && xn) - /// "nor" !(x1 || x2 || ... || xn) - /// - Performs Boolean operation on the following filters. The operand to this filter specifies - /// the "size" of the Boolean inputs to the operation, in Key/value pairs. (The keyvalue - /// pairs must immediately follow, i.e. this is a prefix logical operator notation.) - /// In the simplest case where Boolean expressions are not nested, this is simply - /// the number of operands. - /// For example, to match servers on a particular map or with a particular tag, would would - /// use these filters. - /// ( server.map == "cp_dustbowl" || server.gametags.contains("payload") ) - /// "or", "2" - /// "map", "cp_dustbowl" - /// "gametagsand", "payload" - /// If logical inputs are nested, then the operand specifies the size of the entire - /// "length" of its operands, not the number of immediate children. - /// ( server.map == "cp_dustbowl" || ( server.gametags.contains("payload") && !server.gametags.contains("payloadrace") ) ) - /// "or", "4" - /// "map", "cp_dustbowl" - /// "and", "2" - /// "gametagsand", "payload" - /// "gametagsnor", "payloadrace" - /// Unary NOT can be achieved using either "nand" or "nor" with a single operand. - /// "addr" - /// - Server passes the filter if the server's query address matches the specified IP or IP:port. - /// "gameaddr" - /// - Server passes the filter if the server's game address matches the specified IP or IP:port. - /// The following filter operations ignore the "value" part of MatchMakingKeyValuePair_t - /// "dedicated" - /// - Server passes the filter if it passed true to SetDedicatedServer. - /// "secure" - /// - Server passes the filter if the server is VAC-enabled. - /// "notfull" - /// - Server passes the filter if the player count is less than the reported max player count. - /// "hasplayers" - /// - Server passes the filter if the player count is greater than zero. - /// "noplayers" - /// - Server passes the filter if it doesn't have any players. - /// "linux" - /// - Server passes the filter if it's a linux server - /// Get details on a given server in the list, you can get the valid range of index - /// values by calling GetServerCount(). You will also receive index values in - /// ISteamMatchmakingServerListResponse::ServerResponded() callbacks - /// - public static gameserveritem_t GetServerDetails(HServerListRequest hRequest, int iServer) { - InteropHelp.TestIfAvailableClient(); - return (gameserveritem_t)Marshal.PtrToStructure(NativeMethods.ISteamMatchmakingServers_GetServerDetails(hRequest, iServer), typeof(gameserveritem_t)); - } - - /// - /// Cancel an request which is operation on the given list type. You should call this to cancel - /// any in-progress requests before destructing a callback object that may have been passed - /// to one of the above list request calls. Not doing so may result in a crash when a callback - /// occurs on the destructed object. - /// Canceling a query does not release the allocated request handle. - /// The request handle must be released using ReleaseRequest( hRequest ) - /// - public static void CancelQuery(HServerListRequest hRequest) { - InteropHelp.TestIfAvailableClient(); - NativeMethods.ISteamMatchmakingServers_CancelQuery(hRequest); - } - - /// - /// Ping every server in your list again but don't update the list of servers - /// Query callback installed when the server list was requested will be used - /// again to post notifications and RefreshComplete, so the callback must remain - /// valid until another RefreshComplete is called on it or the request - /// is released with ReleaseRequest( hRequest ) - /// - public static void RefreshQuery(HServerListRequest hRequest) { - InteropHelp.TestIfAvailableClient(); - NativeMethods.ISteamMatchmakingServers_RefreshQuery(hRequest); - } - - /// - /// Returns true if the list is currently refreshing its server list - /// - public static bool IsRefreshing(HServerListRequest hRequest) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamMatchmakingServers_IsRefreshing(hRequest); - } - - /// - /// How many servers in the given list, GetServerDetails above takes 0... GetServerCount() - 1 - /// - public static int GetServerCount(HServerListRequest hRequest) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamMatchmakingServers_GetServerCount(hRequest); - } - - /// - /// Refresh a single server inside of a query (rather than all the servers ) - /// - public static void RefreshServer(HServerListRequest hRequest, int iServer) { - InteropHelp.TestIfAvailableClient(); - NativeMethods.ISteamMatchmakingServers_RefreshServer(hRequest, iServer); - } - - /// - /// ----------------------------------------------------------------------------- - /// Queries to individual servers directly via IP/Port - /// ----------------------------------------------------------------------------- - /// Request updated ping time and other details from a single server - /// - public static HServerQuery PingServer(uint unIP, ushort usPort, ISteamMatchmakingPingResponse pRequestServersResponse) { - InteropHelp.TestIfAvailableClient(); - return (HServerQuery)NativeMethods.ISteamMatchmakingServers_PingServer(unIP, usPort, (IntPtr)pRequestServersResponse); - } - - /// - /// Request the list of players currently playing on a server - /// - public static HServerQuery PlayerDetails(uint unIP, ushort usPort, ISteamMatchmakingPlayersResponse pRequestServersResponse) { - InteropHelp.TestIfAvailableClient(); - return (HServerQuery)NativeMethods.ISteamMatchmakingServers_PlayerDetails(unIP, usPort, (IntPtr)pRequestServersResponse); - } - - /// - /// Request the list of rules that the server is running (See ISteamGameServer::SetKeyValue() to set the rules server side) - /// - public static HServerQuery ServerRules(uint unIP, ushort usPort, ISteamMatchmakingRulesResponse pRequestServersResponse) { - InteropHelp.TestIfAvailableClient(); - return (HServerQuery)NativeMethods.ISteamMatchmakingServers_ServerRules(unIP, usPort, (IntPtr)pRequestServersResponse); - } - - /// - /// Cancel an outstanding Ping/Players/Rules query from above. You should call this to cancel - /// any in-progress requests before destructing a callback object that may have been passed - /// to one of the above calls to avoid crashing when callbacks occur. - /// - public static void CancelServerQuery(HServerQuery hServerQuery) { - InteropHelp.TestIfAvailableClient(); - NativeMethods.ISteamMatchmakingServers_CancelServerQuery(hServerQuery); - } - } -} \ No newline at end of file diff --git a/Assets/Plugins/Steamworks.NET/autogen/isteammatchmaking.cs.meta b/Assets/Plugins/Steamworks.NET/autogen/isteammatchmaking.cs.meta deleted file mode 100644 index 2b0d704..0000000 --- a/Assets/Plugins/Steamworks.NET/autogen/isteammatchmaking.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: b817d6e4453cca74db6d07b3c4b118e3 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/Plugins/Steamworks.NET/autogen/isteammusic.cs b/Assets/Plugins/Steamworks.NET/autogen/isteammusic.cs deleted file mode 100644 index aec1091..0000000 --- a/Assets/Plugins/Steamworks.NET/autogen/isteammusic.cs +++ /dev/null @@ -1,61 +0,0 @@ -// This file is provided under The MIT License as part of Steamworks.NET. -// Copyright (c) 2013-2015 Riley Labrecque -// Please see the included LICENSE.txt for additional information. - -// This file is automatically generated. -// Changes to this file will be reverted when you update Steamworks.NET - -using System; -using System.Runtime.InteropServices; - -namespace Steamworks { - public static class SteamMusic { - public static bool BIsEnabled() { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamMusic_BIsEnabled(); - } - - public static bool BIsPlaying() { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamMusic_BIsPlaying(); - } - - public static AudioPlayback_Status GetPlaybackStatus() { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamMusic_GetPlaybackStatus(); - } - - public static void Play() { - InteropHelp.TestIfAvailableClient(); - NativeMethods.ISteamMusic_Play(); - } - - public static void Pause() { - InteropHelp.TestIfAvailableClient(); - NativeMethods.ISteamMusic_Pause(); - } - - public static void PlayPrevious() { - InteropHelp.TestIfAvailableClient(); - NativeMethods.ISteamMusic_PlayPrevious(); - } - - public static void PlayNext() { - InteropHelp.TestIfAvailableClient(); - NativeMethods.ISteamMusic_PlayNext(); - } - - /// - /// volume is between 0.0 and 1.0 - /// - public static void SetVolume(float flVolume) { - InteropHelp.TestIfAvailableClient(); - NativeMethods.ISteamMusic_SetVolume(flVolume); - } - - public static float GetVolume() { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamMusic_GetVolume(); - } - } -} \ No newline at end of file diff --git a/Assets/Plugins/Steamworks.NET/autogen/isteammusic.cs.meta b/Assets/Plugins/Steamworks.NET/autogen/isteammusic.cs.meta deleted file mode 100644 index f153b80..0000000 --- a/Assets/Plugins/Steamworks.NET/autogen/isteammusic.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: ce3a6a597c82f1c4099d8b3aa4622b05 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/Plugins/Steamworks.NET/autogen/isteammusicremote.cs b/Assets/Plugins/Steamworks.NET/autogen/isteammusicremote.cs deleted file mode 100644 index 2c750df..0000000 --- a/Assets/Plugins/Steamworks.NET/autogen/isteammusicremote.cs +++ /dev/null @@ -1,204 +0,0 @@ -// This file is provided under The MIT License as part of Steamworks.NET. -// Copyright (c) 2013-2015 Riley Labrecque -// Please see the included LICENSE.txt for additional information. - -// This file is automatically generated. -// Changes to this file will be reverted when you update Steamworks.NET - -using System; -using System.Runtime.InteropServices; - -namespace Steamworks { - public static class SteamMusicRemote { - /// - /// Service Definition - /// - public static bool RegisterSteamMusicRemote(string pchName) { - InteropHelp.TestIfAvailableClient(); - using (var pchName2 = new InteropHelp.UTF8StringHandle(pchName)) { - return NativeMethods.ISteamMusicRemote_RegisterSteamMusicRemote(pchName2); - } - } - - public static bool DeregisterSteamMusicRemote() { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamMusicRemote_DeregisterSteamMusicRemote(); - } - - public static bool BIsCurrentMusicRemote() { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamMusicRemote_BIsCurrentMusicRemote(); - } - - public static bool BActivationSuccess(bool bValue) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamMusicRemote_BActivationSuccess(bValue); - } - - public static bool SetDisplayName(string pchDisplayName) { - InteropHelp.TestIfAvailableClient(); - using (var pchDisplayName2 = new InteropHelp.UTF8StringHandle(pchDisplayName)) { - return NativeMethods.ISteamMusicRemote_SetDisplayName(pchDisplayName2); - } - } - - public static bool SetPNGIcon_64x64(byte[] pvBuffer, uint cbBufferLength) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamMusicRemote_SetPNGIcon_64x64(pvBuffer, cbBufferLength); - } - - /// - /// Abilities for the user interface - /// - public static bool EnablePlayPrevious(bool bValue) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamMusicRemote_EnablePlayPrevious(bValue); - } - - public static bool EnablePlayNext(bool bValue) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamMusicRemote_EnablePlayNext(bValue); - } - - public static bool EnableShuffled(bool bValue) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamMusicRemote_EnableShuffled(bValue); - } - - public static bool EnableLooped(bool bValue) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamMusicRemote_EnableLooped(bValue); - } - - public static bool EnableQueue(bool bValue) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamMusicRemote_EnableQueue(bValue); - } - - public static bool EnablePlaylists(bool bValue) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamMusicRemote_EnablePlaylists(bValue); - } - - /// - /// Status - /// - public static bool UpdatePlaybackStatus(AudioPlayback_Status nStatus) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamMusicRemote_UpdatePlaybackStatus(nStatus); - } - - public static bool UpdateShuffled(bool bValue) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamMusicRemote_UpdateShuffled(bValue); - } - - public static bool UpdateLooped(bool bValue) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamMusicRemote_UpdateLooped(bValue); - } - - /// - /// volume is between 0.0 and 1.0 - /// - public static bool UpdateVolume(float flValue) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamMusicRemote_UpdateVolume(flValue); - } - - /// - /// Current Entry - /// - public static bool CurrentEntryWillChange() { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamMusicRemote_CurrentEntryWillChange(); - } - - public static bool CurrentEntryIsAvailable(bool bAvailable) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamMusicRemote_CurrentEntryIsAvailable(bAvailable); - } - - public static bool UpdateCurrentEntryText(string pchText) { - InteropHelp.TestIfAvailableClient(); - using (var pchText2 = new InteropHelp.UTF8StringHandle(pchText)) { - return NativeMethods.ISteamMusicRemote_UpdateCurrentEntryText(pchText2); - } - } - - public static bool UpdateCurrentEntryElapsedSeconds(int nValue) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamMusicRemote_UpdateCurrentEntryElapsedSeconds(nValue); - } - - public static bool UpdateCurrentEntryCoverArt(byte[] pvBuffer, uint cbBufferLength) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamMusicRemote_UpdateCurrentEntryCoverArt(pvBuffer, cbBufferLength); - } - - public static bool CurrentEntryDidChange() { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamMusicRemote_CurrentEntryDidChange(); - } - - /// - /// Queue - /// - public static bool QueueWillChange() { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamMusicRemote_QueueWillChange(); - } - - public static bool ResetQueueEntries() { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamMusicRemote_ResetQueueEntries(); - } - - public static bool SetQueueEntry(int nID, int nPosition, string pchEntryText) { - InteropHelp.TestIfAvailableClient(); - using (var pchEntryText2 = new InteropHelp.UTF8StringHandle(pchEntryText)) { - return NativeMethods.ISteamMusicRemote_SetQueueEntry(nID, nPosition, pchEntryText2); - } - } - - public static bool SetCurrentQueueEntry(int nID) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamMusicRemote_SetCurrentQueueEntry(nID); - } - - public static bool QueueDidChange() { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamMusicRemote_QueueDidChange(); - } - - /// - /// Playlist - /// - public static bool PlaylistWillChange() { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamMusicRemote_PlaylistWillChange(); - } - - public static bool ResetPlaylistEntries() { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamMusicRemote_ResetPlaylistEntries(); - } - - public static bool SetPlaylistEntry(int nID, int nPosition, string pchEntryText) { - InteropHelp.TestIfAvailableClient(); - using (var pchEntryText2 = new InteropHelp.UTF8StringHandle(pchEntryText)) { - return NativeMethods.ISteamMusicRemote_SetPlaylistEntry(nID, nPosition, pchEntryText2); - } - } - - public static bool SetCurrentPlaylistEntry(int nID) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamMusicRemote_SetCurrentPlaylistEntry(nID); - } - - public static bool PlaylistDidChange() { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamMusicRemote_PlaylistDidChange(); - } - } -} \ No newline at end of file diff --git a/Assets/Plugins/Steamworks.NET/autogen/isteammusicremote.cs.meta b/Assets/Plugins/Steamworks.NET/autogen/isteammusicremote.cs.meta deleted file mode 100644 index b26d1d4..0000000 --- a/Assets/Plugins/Steamworks.NET/autogen/isteammusicremote.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: a1d909ba5ab1f254cb602b4ec60d75e0 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/Plugins/Steamworks.NET/autogen/isteamnetworking.cs b/Assets/Plugins/Steamworks.NET/autogen/isteamnetworking.cs deleted file mode 100644 index 443ca5f..0000000 --- a/Assets/Plugins/Steamworks.NET/autogen/isteamnetworking.cs +++ /dev/null @@ -1,248 +0,0 @@ -// This file is provided under The MIT License as part of Steamworks.NET. -// Copyright (c) 2013-2015 Riley Labrecque -// Please see the included LICENSE.txt for additional information. - -// This file is automatically generated. -// Changes to this file will be reverted when you update Steamworks.NET - -using System; -using System.Runtime.InteropServices; - -namespace Steamworks { - public static class SteamNetworking { - /// - /// ////////////////////////////////////////////////////////////////////////////////////////// - /// Session-less connection functions - /// automatically establishes NAT-traversing or Relay server connections - /// Sends a P2P packet to the specified user - /// UDP-like, unreliable and a max packet size of 1200 bytes - /// the first packet send may be delayed as the NAT-traversal code runs - /// if we can't get through to the user, an error will be posted via the callback P2PSessionConnectFail_t - /// see EP2PSend enum above for the descriptions of the different ways of sending packets - /// nChannel is a routing number you can use to help route message to different systems - you'll have to call ReadP2PPacket() - /// with the same channel number in order to retrieve the data on the other end - /// using different channels to talk to the same user will still use the same underlying p2p connection, saving on resources - /// - public static bool SendP2PPacket(CSteamID steamIDRemote, byte[] pubData, uint cubData, EP2PSend eP2PSendType, int nChannel = 0) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamNetworking_SendP2PPacket(steamIDRemote, pubData, cubData, eP2PSendType, nChannel); - } - - /// - /// returns true if any data is available for read, and the amount of data that will need to be read - /// - public static bool IsP2PPacketAvailable(out uint pcubMsgSize, int nChannel = 0) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamNetworking_IsP2PPacketAvailable(out pcubMsgSize, nChannel); - } - - /// - /// reads in a packet that has been sent from another user via SendP2PPacket() - /// returns the size of the message and the steamID of the user who sent it in the last two parameters - /// if the buffer passed in is too small, the message will be truncated - /// this call is not blocking, and will return false if no data is available - /// - public static bool ReadP2PPacket(byte[] pubDest, uint cubDest, out uint pcubMsgSize, out CSteamID psteamIDRemote, int nChannel = 0) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamNetworking_ReadP2PPacket(pubDest, cubDest, out pcubMsgSize, out psteamIDRemote, nChannel); - } - - /// - /// AcceptP2PSessionWithUser() should only be called in response to a P2PSessionRequest_t callback - /// P2PSessionRequest_t will be posted if another user tries to send you a packet that you haven't talked to yet - /// if you don't want to talk to the user, just ignore the request - /// if the user continues to send you packets, another P2PSessionRequest_t will be posted periodically - /// this may be called multiple times for a single user - /// (if you've called SendP2PPacket() on the other user, this implicitly accepts the session request) - /// - public static bool AcceptP2PSessionWithUser(CSteamID steamIDRemote) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamNetworking_AcceptP2PSessionWithUser(steamIDRemote); - } - - /// - /// call CloseP2PSessionWithUser() when you're done talking to a user, will free up resources under-the-hood - /// if the remote user tries to send data to you again, another P2PSessionRequest_t callback will be posted - /// - public static bool CloseP2PSessionWithUser(CSteamID steamIDRemote) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamNetworking_CloseP2PSessionWithUser(steamIDRemote); - } - - /// - /// call CloseP2PChannelWithUser() when you're done talking to a user on a specific channel. Once all channels - /// open channels to a user have been closed, the open session to the user will be closed and new data from this - /// user will trigger a P2PSessionRequest_t callback - /// - public static bool CloseP2PChannelWithUser(CSteamID steamIDRemote, int nChannel) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamNetworking_CloseP2PChannelWithUser(steamIDRemote, nChannel); - } - - /// - /// fills out P2PSessionState_t structure with details about the underlying connection to the user - /// should only needed for debugging purposes - /// returns false if no connection exists to the specified user - /// - public static bool GetP2PSessionState(CSteamID steamIDRemote, out P2PSessionState_t pConnectionState) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamNetworking_GetP2PSessionState(steamIDRemote, out pConnectionState); - } - - /// - /// Allow P2P connections to fall back to being relayed through the Steam servers if a direct connection - /// or NAT-traversal cannot be established. Only applies to connections created after setting this value, - /// or to existing connections that need to automatically reconnect after this value is set. - /// P2P packet relay is allowed by default - /// - public static bool AllowP2PPacketRelay(bool bAllow) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamNetworking_AllowP2PPacketRelay(bAllow); - } - - /// - /// ////////////////////////////////////////////////////////////////////////////////////////// - /// LISTEN / CONNECT style interface functions - /// This is an older set of functions designed around the Berkeley TCP sockets model - /// it's preferential that you use the above P2P functions, they're more robust - /// and these older functions will be removed eventually - /// ////////////////////////////////////////////////////////////////////////////////////////// - /// creates a socket and listens others to connect - /// will trigger a SocketStatusCallback_t callback on another client connecting - /// nVirtualP2PPort is the unique ID that the client will connect to, in case you have multiple ports - /// this can usually just be 0 unless you want multiple sets of connections - /// unIP is the local IP address to bind to - /// pass in 0 if you just want the default local IP - /// unPort is the port to use - /// pass in 0 if you don't want users to be able to connect via IP/Port, but expect to be always peer-to-peer connections only - /// - public static SNetListenSocket_t CreateListenSocket(int nVirtualP2PPort, uint nIP, ushort nPort, bool bAllowUseOfPacketRelay) { - InteropHelp.TestIfAvailableClient(); - return (SNetListenSocket_t)NativeMethods.ISteamNetworking_CreateListenSocket(nVirtualP2PPort, nIP, nPort, bAllowUseOfPacketRelay); - } - - /// - /// creates a socket and begin connection to a remote destination - /// can connect via a known steamID (client or game server), or directly to an IP - /// on success will trigger a SocketStatusCallback_t callback - /// on failure or timeout will trigger a SocketStatusCallback_t callback with a failure code in m_eSNetSocketState - /// - public static SNetSocket_t CreateP2PConnectionSocket(CSteamID steamIDTarget, int nVirtualPort, int nTimeoutSec, bool bAllowUseOfPacketRelay) { - InteropHelp.TestIfAvailableClient(); - return (SNetSocket_t)NativeMethods.ISteamNetworking_CreateP2PConnectionSocket(steamIDTarget, nVirtualPort, nTimeoutSec, bAllowUseOfPacketRelay); - } - - public static SNetSocket_t CreateConnectionSocket(uint nIP, ushort nPort, int nTimeoutSec) { - InteropHelp.TestIfAvailableClient(); - return (SNetSocket_t)NativeMethods.ISteamNetworking_CreateConnectionSocket(nIP, nPort, nTimeoutSec); - } - - /// - /// disconnects the connection to the socket, if any, and invalidates the handle - /// any unread data on the socket will be thrown away - /// if bNotifyRemoteEnd is set, socket will not be completely destroyed until the remote end acknowledges the disconnect - /// - public static bool DestroySocket(SNetSocket_t hSocket, bool bNotifyRemoteEnd) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamNetworking_DestroySocket(hSocket, bNotifyRemoteEnd); - } - - /// - /// destroying a listen socket will automatically kill all the regular sockets generated from it - /// - public static bool DestroyListenSocket(SNetListenSocket_t hSocket, bool bNotifyRemoteEnd) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamNetworking_DestroyListenSocket(hSocket, bNotifyRemoteEnd); - } - - /// - /// sending data - /// must be a handle to a connected socket - /// data is all sent via UDP, and thus send sizes are limited to 1200 bytes; after this, many routers will start dropping packets - /// use the reliable flag with caution; although the resend rate is pretty aggressive, - /// it can still cause stalls in receiving data (like TCP) - /// - public static bool SendDataOnSocket(SNetSocket_t hSocket, IntPtr pubData, uint cubData, bool bReliable) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamNetworking_SendDataOnSocket(hSocket, pubData, cubData, bReliable); - } - - /// - /// receiving data - /// returns false if there is no data remaining - /// fills out *pcubMsgSize with the size of the next message, in bytes - /// - public static bool IsDataAvailableOnSocket(SNetSocket_t hSocket, out uint pcubMsgSize) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamNetworking_IsDataAvailableOnSocket(hSocket, out pcubMsgSize); - } - - /// - /// fills in pubDest with the contents of the message - /// messages are always complete, of the same size as was sent (i.e. packetized, not streaming) - /// if *pcubMsgSize < cubDest, only partial data is written - /// returns false if no data is available - /// - public static bool RetrieveDataFromSocket(SNetSocket_t hSocket, IntPtr pubDest, uint cubDest, out uint pcubMsgSize) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamNetworking_RetrieveDataFromSocket(hSocket, pubDest, cubDest, out pcubMsgSize); - } - - /// - /// checks for data from any socket that has been connected off this listen socket - /// returns false if there is no data remaining - /// fills out *pcubMsgSize with the size of the next message, in bytes - /// fills out *phSocket with the socket that data is available on - /// - public static bool IsDataAvailable(SNetListenSocket_t hListenSocket, out uint pcubMsgSize, out SNetSocket_t phSocket) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamNetworking_IsDataAvailable(hListenSocket, out pcubMsgSize, out phSocket); - } - - /// - /// retrieves data from any socket that has been connected off this listen socket - /// fills in pubDest with the contents of the message - /// messages are always complete, of the same size as was sent (i.e. packetized, not streaming) - /// if *pcubMsgSize < cubDest, only partial data is written - /// returns false if no data is available - /// fills out *phSocket with the socket that data is available on - /// - public static bool RetrieveData(SNetListenSocket_t hListenSocket, IntPtr pubDest, uint cubDest, out uint pcubMsgSize, out SNetSocket_t phSocket) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamNetworking_RetrieveData(hListenSocket, pubDest, cubDest, out pcubMsgSize, out phSocket); - } - - /// - /// returns information about the specified socket, filling out the contents of the pointers - /// - public static bool GetSocketInfo(SNetSocket_t hSocket, out CSteamID pSteamIDRemote, out int peSocketStatus, out uint punIPRemote, out ushort punPortRemote) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamNetworking_GetSocketInfo(hSocket, out pSteamIDRemote, out peSocketStatus, out punIPRemote, out punPortRemote); - } - - /// - /// returns which local port the listen socket is bound to - /// *pnIP and *pnPort will be 0 if the socket is set to listen for P2P connections only - /// - public static bool GetListenSocketInfo(SNetListenSocket_t hListenSocket, out uint pnIP, out ushort pnPort) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamNetworking_GetListenSocketInfo(hListenSocket, out pnIP, out pnPort); - } - - /// - /// returns true to describe how the socket ended up connecting - /// - public static ESNetSocketConnectionType GetSocketConnectionType(SNetSocket_t hSocket) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamNetworking_GetSocketConnectionType(hSocket); - } - - /// - /// max packet size, in bytes - /// - public static int GetMaxPacketSize(SNetSocket_t hSocket) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamNetworking_GetMaxPacketSize(hSocket); - } - } -} \ No newline at end of file diff --git a/Assets/Plugins/Steamworks.NET/autogen/isteamnetworking.cs.meta b/Assets/Plugins/Steamworks.NET/autogen/isteamnetworking.cs.meta deleted file mode 100644 index dcbdd64..0000000 --- a/Assets/Plugins/Steamworks.NET/autogen/isteamnetworking.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 8b88722ad0c891f4291b5ce2d74cc811 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/Plugins/Steamworks.NET/autogen/isteamremotestorage.cs b/Assets/Plugins/Steamworks.NET/autogen/isteamremotestorage.cs deleted file mode 100644 index f1118d4..0000000 --- a/Assets/Plugins/Steamworks.NET/autogen/isteamremotestorage.cs +++ /dev/null @@ -1,434 +0,0 @@ -// This file is provided under The MIT License as part of Steamworks.NET. -// Copyright (c) 2013-2015 Riley Labrecque -// Please see the included LICENSE.txt for additional information. - -// This file is automatically generated. -// Changes to this file will be reverted when you update Steamworks.NET - -using System; -using System.Runtime.InteropServices; - -namespace Steamworks { - public static class SteamRemoteStorage { - /// - /// NOTE - /// Filenames are case-insensitive, and will be converted to lowercase automatically. - /// So "foo.bar" and "Foo.bar" are the same file, and if you write "Foo.bar" then - /// iterate the files, the filename returned will be "foo.bar". - /// file operations - /// - public static bool FileWrite(string pchFile, byte[] pvData, int cubData) { - InteropHelp.TestIfAvailableClient(); - using (var pchFile2 = new InteropHelp.UTF8StringHandle(pchFile)) { - return NativeMethods.ISteamRemoteStorage_FileWrite(pchFile2, pvData, cubData); - } - } - - public static int FileRead(string pchFile, byte[] pvData, int cubDataToRead) { - InteropHelp.TestIfAvailableClient(); - using (var pchFile2 = new InteropHelp.UTF8StringHandle(pchFile)) { - return NativeMethods.ISteamRemoteStorage_FileRead(pchFile2, pvData, cubDataToRead); - } - } - - public static bool FileForget(string pchFile) { - InteropHelp.TestIfAvailableClient(); - using (var pchFile2 = new InteropHelp.UTF8StringHandle(pchFile)) { - return NativeMethods.ISteamRemoteStorage_FileForget(pchFile2); - } - } - - public static bool FileDelete(string pchFile) { - InteropHelp.TestIfAvailableClient(); - using (var pchFile2 = new InteropHelp.UTF8StringHandle(pchFile)) { - return NativeMethods.ISteamRemoteStorage_FileDelete(pchFile2); - } - } - - public static SteamAPICall_t FileShare(string pchFile) { - InteropHelp.TestIfAvailableClient(); - using (var pchFile2 = new InteropHelp.UTF8StringHandle(pchFile)) { - return (SteamAPICall_t)NativeMethods.ISteamRemoteStorage_FileShare(pchFile2); - } - } - - public static bool SetSyncPlatforms(string pchFile, ERemoteStoragePlatform eRemoteStoragePlatform) { - InteropHelp.TestIfAvailableClient(); - using (var pchFile2 = new InteropHelp.UTF8StringHandle(pchFile)) { - return NativeMethods.ISteamRemoteStorage_SetSyncPlatforms(pchFile2, eRemoteStoragePlatform); - } - } - - /// - /// file operations that cause network IO - /// - public static UGCFileWriteStreamHandle_t FileWriteStreamOpen(string pchFile) { - InteropHelp.TestIfAvailableClient(); - using (var pchFile2 = new InteropHelp.UTF8StringHandle(pchFile)) { - return (UGCFileWriteStreamHandle_t)NativeMethods.ISteamRemoteStorage_FileWriteStreamOpen(pchFile2); - } - } - - public static bool FileWriteStreamWriteChunk(UGCFileWriteStreamHandle_t writeHandle, byte[] pvData, int cubData) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamRemoteStorage_FileWriteStreamWriteChunk(writeHandle, pvData, cubData); - } - - public static bool FileWriteStreamClose(UGCFileWriteStreamHandle_t writeHandle) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamRemoteStorage_FileWriteStreamClose(writeHandle); - } - - public static bool FileWriteStreamCancel(UGCFileWriteStreamHandle_t writeHandle) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamRemoteStorage_FileWriteStreamCancel(writeHandle); - } - - /// - /// file information - /// - public static bool FileExists(string pchFile) { - InteropHelp.TestIfAvailableClient(); - using (var pchFile2 = new InteropHelp.UTF8StringHandle(pchFile)) { - return NativeMethods.ISteamRemoteStorage_FileExists(pchFile2); - } - } - - public static bool FilePersisted(string pchFile) { - InteropHelp.TestIfAvailableClient(); - using (var pchFile2 = new InteropHelp.UTF8StringHandle(pchFile)) { - return NativeMethods.ISteamRemoteStorage_FilePersisted(pchFile2); - } - } - - public static int GetFileSize(string pchFile) { - InteropHelp.TestIfAvailableClient(); - using (var pchFile2 = new InteropHelp.UTF8StringHandle(pchFile)) { - return NativeMethods.ISteamRemoteStorage_GetFileSize(pchFile2); - } - } - - public static long GetFileTimestamp(string pchFile) { - InteropHelp.TestIfAvailableClient(); - using (var pchFile2 = new InteropHelp.UTF8StringHandle(pchFile)) { - return NativeMethods.ISteamRemoteStorage_GetFileTimestamp(pchFile2); - } - } - - public static ERemoteStoragePlatform GetSyncPlatforms(string pchFile) { - InteropHelp.TestIfAvailableClient(); - using (var pchFile2 = new InteropHelp.UTF8StringHandle(pchFile)) { - return NativeMethods.ISteamRemoteStorage_GetSyncPlatforms(pchFile2); - } - } - - /// - /// iteration - /// - public static int GetFileCount() { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamRemoteStorage_GetFileCount(); - } - - public static string GetFileNameAndSize(int iFile, out int pnFileSizeInBytes) { - InteropHelp.TestIfAvailableClient(); - return InteropHelp.PtrToStringUTF8(NativeMethods.ISteamRemoteStorage_GetFileNameAndSize(iFile, out pnFileSizeInBytes)); - } - - /// - /// configuration management - /// - public static bool GetQuota(out int pnTotalBytes, out int puAvailableBytes) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamRemoteStorage_GetQuota(out pnTotalBytes, out puAvailableBytes); - } - - public static bool IsCloudEnabledForAccount() { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamRemoteStorage_IsCloudEnabledForAccount(); - } - - public static bool IsCloudEnabledForApp() { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamRemoteStorage_IsCloudEnabledForApp(); - } - - public static void SetCloudEnabledForApp(bool bEnabled) { - InteropHelp.TestIfAvailableClient(); - NativeMethods.ISteamRemoteStorage_SetCloudEnabledForApp(bEnabled); - } - - /// - /// user generated content - /// Downloads a UGC file. A priority value of 0 will download the file immediately, - /// otherwise it will wait to download the file until all downloads with a lower priority - /// value are completed. Downloads with equal priority will occur simultaneously. - /// - public static SteamAPICall_t UGCDownload(UGCHandle_t hContent, uint unPriority) { - InteropHelp.TestIfAvailableClient(); - return (SteamAPICall_t)NativeMethods.ISteamRemoteStorage_UGCDownload(hContent, unPriority); - } - - /// - /// Gets the amount of data downloaded so far for a piece of content. pnBytesExpected can be 0 if function returns false - /// or if the transfer hasn't started yet, so be careful to check for that before dividing to get a percentage - /// - public static bool GetUGCDownloadProgress(UGCHandle_t hContent, out int pnBytesDownloaded, out int pnBytesExpected) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamRemoteStorage_GetUGCDownloadProgress(hContent, out pnBytesDownloaded, out pnBytesExpected); - } - - /// - /// Gets metadata for a file after it has been downloaded. This is the same metadata given in the RemoteStorageDownloadUGCResult_t call result - /// - public static bool GetUGCDetails(UGCHandle_t hContent, out AppId_t pnAppID, out string ppchName, out int pnFileSizeInBytes, out CSteamID pSteamIDOwner) { - InteropHelp.TestIfAvailableClient(); - IntPtr ppchName2; - bool ret = NativeMethods.ISteamRemoteStorage_GetUGCDetails(hContent, out pnAppID, out ppchName2, out pnFileSizeInBytes, out pSteamIDOwner); - ppchName = ret ? InteropHelp.PtrToStringUTF8(ppchName2) : null; - return ret; - } - - /// - /// After download, gets the content of the file. - /// Small files can be read all at once by calling this function with an offset of 0 and cubDataToRead equal to the size of the file. - /// Larger files can be read in chunks to reduce memory usage (since both sides of the IPC client and the game itself must allocate - /// enough memory for each chunk). Once the last byte is read, the file is implicitly closed and further calls to UGCRead will fail - /// unless UGCDownload is called again. - /// For especially large files (anything over 100MB) it is a requirement that the file is read in chunks. - /// - public static int UGCRead(UGCHandle_t hContent, byte[] pvData, int cubDataToRead, uint cOffset, EUGCReadAction eAction) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamRemoteStorage_UGCRead(hContent, pvData, cubDataToRead, cOffset, eAction); - } - - /// - /// Functions to iterate through UGC that has finished downloading but has not yet been read via UGCRead() - /// - public static int GetCachedUGCCount() { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamRemoteStorage_GetCachedUGCCount(); - } - - public static UGCHandle_t GetCachedUGCHandle(int iCachedContent) { - InteropHelp.TestIfAvailableClient(); - return (UGCHandle_t)NativeMethods.ISteamRemoteStorage_GetCachedUGCHandle(iCachedContent); - } -#if _PS3 || _SERVER - /// - /// The following functions are only necessary on the Playstation 3. On PC & Mac, the Steam client will handle these operations for you - /// On Playstation 3, the game controls which files are stored in the cloud, via FilePersist, FileFetch, and FileForget. - /// Connect to Steam and get a list of files in the Cloud - results in a RemoteStorageAppSyncStatusCheck_t callback - /// - public static void GetFileListFromServer() { - InteropHelp.TestIfAvailableClient(); - NativeMethods.ISteamRemoteStorage_GetFileListFromServer(); - } - - /// - /// Indicate this file should be downloaded in the next sync - /// - public static bool FileFetch(string pchFile) { - InteropHelp.TestIfAvailableClient(); - using (var pchFile2 = new InteropHelp.UTF8StringHandle(pchFile)) { - return NativeMethods.ISteamRemoteStorage_FileFetch(pchFile2); - } - } - - /// - /// Indicate this file should be persisted in the next sync - /// - public static bool FilePersist(string pchFile) { - InteropHelp.TestIfAvailableClient(); - using (var pchFile2 = new InteropHelp.UTF8StringHandle(pchFile)) { - return NativeMethods.ISteamRemoteStorage_FilePersist(pchFile2); - } - } - - /// - /// Pull any requested files down from the Cloud - results in a RemoteStorageAppSyncedClient_t callback - /// - public static bool SynchronizeToClient() { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamRemoteStorage_SynchronizeToClient(); - } - - /// - /// Upload any requested files to the Cloud - results in a RemoteStorageAppSyncedServer_t callback - /// - public static bool SynchronizeToServer() { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamRemoteStorage_SynchronizeToServer(); - } - - /// - /// Reset any fetch/persist/etc requests - /// - public static bool ResetFileRequestState() { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamRemoteStorage_ResetFileRequestState(); - } -#endif - /// - /// publishing UGC - /// - public static SteamAPICall_t PublishWorkshopFile(string pchFile, string pchPreviewFile, AppId_t nConsumerAppId, string pchTitle, string pchDescription, ERemoteStoragePublishedFileVisibility eVisibility, System.Collections.Generic.IList pTags, EWorkshopFileType eWorkshopFileType) { - InteropHelp.TestIfAvailableClient(); - using (var pchFile2 = new InteropHelp.UTF8StringHandle(pchFile)) - using (var pchPreviewFile2 = new InteropHelp.UTF8StringHandle(pchPreviewFile)) - using (var pchTitle2 = new InteropHelp.UTF8StringHandle(pchTitle)) - using (var pchDescription2 = new InteropHelp.UTF8StringHandle(pchDescription)) { - return (SteamAPICall_t)NativeMethods.ISteamRemoteStorage_PublishWorkshopFile(pchFile2, pchPreviewFile2, nConsumerAppId, pchTitle2, pchDescription2, eVisibility, new InteropHelp.SteamParamStringArray(pTags), eWorkshopFileType); - } - } - - public static PublishedFileUpdateHandle_t CreatePublishedFileUpdateRequest(PublishedFileId_t unPublishedFileId) { - InteropHelp.TestIfAvailableClient(); - return (PublishedFileUpdateHandle_t)NativeMethods.ISteamRemoteStorage_CreatePublishedFileUpdateRequest(unPublishedFileId); - } - - public static bool UpdatePublishedFileFile(PublishedFileUpdateHandle_t updateHandle, string pchFile) { - InteropHelp.TestIfAvailableClient(); - using (var pchFile2 = new InteropHelp.UTF8StringHandle(pchFile)) { - return NativeMethods.ISteamRemoteStorage_UpdatePublishedFileFile(updateHandle, pchFile2); - } - } - - public static bool UpdatePublishedFilePreviewFile(PublishedFileUpdateHandle_t updateHandle, string pchPreviewFile) { - InteropHelp.TestIfAvailableClient(); - using (var pchPreviewFile2 = new InteropHelp.UTF8StringHandle(pchPreviewFile)) { - return NativeMethods.ISteamRemoteStorage_UpdatePublishedFilePreviewFile(updateHandle, pchPreviewFile2); - } - } - - public static bool UpdatePublishedFileTitle(PublishedFileUpdateHandle_t updateHandle, string pchTitle) { - InteropHelp.TestIfAvailableClient(); - using (var pchTitle2 = new InteropHelp.UTF8StringHandle(pchTitle)) { - return NativeMethods.ISteamRemoteStorage_UpdatePublishedFileTitle(updateHandle, pchTitle2); - } - } - - public static bool UpdatePublishedFileDescription(PublishedFileUpdateHandle_t updateHandle, string pchDescription) { - InteropHelp.TestIfAvailableClient(); - using (var pchDescription2 = new InteropHelp.UTF8StringHandle(pchDescription)) { - return NativeMethods.ISteamRemoteStorage_UpdatePublishedFileDescription(updateHandle, pchDescription2); - } - } - - public static bool UpdatePublishedFileVisibility(PublishedFileUpdateHandle_t updateHandle, ERemoteStoragePublishedFileVisibility eVisibility) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamRemoteStorage_UpdatePublishedFileVisibility(updateHandle, eVisibility); - } - - public static bool UpdatePublishedFileTags(PublishedFileUpdateHandle_t updateHandle, System.Collections.Generic.IList pTags) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamRemoteStorage_UpdatePublishedFileTags(updateHandle, new InteropHelp.SteamParamStringArray(pTags)); - } - - public static SteamAPICall_t CommitPublishedFileUpdate(PublishedFileUpdateHandle_t updateHandle) { - InteropHelp.TestIfAvailableClient(); - return (SteamAPICall_t)NativeMethods.ISteamRemoteStorage_CommitPublishedFileUpdate(updateHandle); - } - - /// - /// Gets published file details for the given publishedfileid. If unMaxSecondsOld is greater than 0, - /// cached data may be returned, depending on how long ago it was cached. A value of 0 will force a refresh. - /// A value of k_WorkshopForceLoadPublishedFileDetailsFromCache will use cached data if it exists, no matter how old it is. - /// - public static SteamAPICall_t GetPublishedFileDetails(PublishedFileId_t unPublishedFileId, uint unMaxSecondsOld) { - InteropHelp.TestIfAvailableClient(); - return (SteamAPICall_t)NativeMethods.ISteamRemoteStorage_GetPublishedFileDetails(unPublishedFileId, unMaxSecondsOld); - } - - public static SteamAPICall_t DeletePublishedFile(PublishedFileId_t unPublishedFileId) { - InteropHelp.TestIfAvailableClient(); - return (SteamAPICall_t)NativeMethods.ISteamRemoteStorage_DeletePublishedFile(unPublishedFileId); - } - - /// - /// enumerate the files that the current user published with this app - /// - public static SteamAPICall_t EnumerateUserPublishedFiles(uint unStartIndex) { - InteropHelp.TestIfAvailableClient(); - return (SteamAPICall_t)NativeMethods.ISteamRemoteStorage_EnumerateUserPublishedFiles(unStartIndex); - } - - public static SteamAPICall_t SubscribePublishedFile(PublishedFileId_t unPublishedFileId) { - InteropHelp.TestIfAvailableClient(); - return (SteamAPICall_t)NativeMethods.ISteamRemoteStorage_SubscribePublishedFile(unPublishedFileId); - } - - public static SteamAPICall_t EnumerateUserSubscribedFiles(uint unStartIndex) { - InteropHelp.TestIfAvailableClient(); - return (SteamAPICall_t)NativeMethods.ISteamRemoteStorage_EnumerateUserSubscribedFiles(unStartIndex); - } - - public static SteamAPICall_t UnsubscribePublishedFile(PublishedFileId_t unPublishedFileId) { - InteropHelp.TestIfAvailableClient(); - return (SteamAPICall_t)NativeMethods.ISteamRemoteStorage_UnsubscribePublishedFile(unPublishedFileId); - } - - public static bool UpdatePublishedFileSetChangeDescription(PublishedFileUpdateHandle_t updateHandle, string pchChangeDescription) { - InteropHelp.TestIfAvailableClient(); - using (var pchChangeDescription2 = new InteropHelp.UTF8StringHandle(pchChangeDescription)) { - return NativeMethods.ISteamRemoteStorage_UpdatePublishedFileSetChangeDescription(updateHandle, pchChangeDescription2); - } - } - - public static SteamAPICall_t GetPublishedItemVoteDetails(PublishedFileId_t unPublishedFileId) { - InteropHelp.TestIfAvailableClient(); - return (SteamAPICall_t)NativeMethods.ISteamRemoteStorage_GetPublishedItemVoteDetails(unPublishedFileId); - } - - public static SteamAPICall_t UpdateUserPublishedItemVote(PublishedFileId_t unPublishedFileId, bool bVoteUp) { - InteropHelp.TestIfAvailableClient(); - return (SteamAPICall_t)NativeMethods.ISteamRemoteStorage_UpdateUserPublishedItemVote(unPublishedFileId, bVoteUp); - } - - public static SteamAPICall_t GetUserPublishedItemVoteDetails(PublishedFileId_t unPublishedFileId) { - InteropHelp.TestIfAvailableClient(); - return (SteamAPICall_t)NativeMethods.ISteamRemoteStorage_GetUserPublishedItemVoteDetails(unPublishedFileId); - } - - public static SteamAPICall_t EnumerateUserSharedWorkshopFiles(CSteamID steamId, uint unStartIndex, System.Collections.Generic.IList pRequiredTags, System.Collections.Generic.IList pExcludedTags) { - InteropHelp.TestIfAvailableClient(); - return (SteamAPICall_t)NativeMethods.ISteamRemoteStorage_EnumerateUserSharedWorkshopFiles(steamId, unStartIndex, new InteropHelp.SteamParamStringArray(pRequiredTags), new InteropHelp.SteamParamStringArray(pExcludedTags)); - } - - public static SteamAPICall_t PublishVideo(EWorkshopVideoProvider eVideoProvider, string pchVideoAccount, string pchVideoIdentifier, string pchPreviewFile, AppId_t nConsumerAppId, string pchTitle, string pchDescription, ERemoteStoragePublishedFileVisibility eVisibility, System.Collections.Generic.IList pTags) { - InteropHelp.TestIfAvailableClient(); - using (var pchVideoAccount2 = new InteropHelp.UTF8StringHandle(pchVideoAccount)) - using (var pchVideoIdentifier2 = new InteropHelp.UTF8StringHandle(pchVideoIdentifier)) - using (var pchPreviewFile2 = new InteropHelp.UTF8StringHandle(pchPreviewFile)) - using (var pchTitle2 = new InteropHelp.UTF8StringHandle(pchTitle)) - using (var pchDescription2 = new InteropHelp.UTF8StringHandle(pchDescription)) { - return (SteamAPICall_t)NativeMethods.ISteamRemoteStorage_PublishVideo(eVideoProvider, pchVideoAccount2, pchVideoIdentifier2, pchPreviewFile2, nConsumerAppId, pchTitle2, pchDescription2, eVisibility, new InteropHelp.SteamParamStringArray(pTags)); - } - } - - public static SteamAPICall_t SetUserPublishedFileAction(PublishedFileId_t unPublishedFileId, EWorkshopFileAction eAction) { - InteropHelp.TestIfAvailableClient(); - return (SteamAPICall_t)NativeMethods.ISteamRemoteStorage_SetUserPublishedFileAction(unPublishedFileId, eAction); - } - - public static SteamAPICall_t EnumeratePublishedFilesByUserAction(EWorkshopFileAction eAction, uint unStartIndex) { - InteropHelp.TestIfAvailableClient(); - return (SteamAPICall_t)NativeMethods.ISteamRemoteStorage_EnumeratePublishedFilesByUserAction(eAction, unStartIndex); - } - - /// - /// this method enumerates the public view of workshop files - /// - public static SteamAPICall_t EnumeratePublishedWorkshopFiles(EWorkshopEnumerationType eEnumerationType, uint unStartIndex, uint unCount, uint unDays, System.Collections.Generic.IList pTags, System.Collections.Generic.IList pUserTags) { - InteropHelp.TestIfAvailableClient(); - return (SteamAPICall_t)NativeMethods.ISteamRemoteStorage_EnumeratePublishedWorkshopFiles(eEnumerationType, unStartIndex, unCount, unDays, new InteropHelp.SteamParamStringArray(pTags), new InteropHelp.SteamParamStringArray(pUserTags)); - } - - public static SteamAPICall_t UGCDownloadToLocation(UGCHandle_t hContent, string pchLocation, uint unPriority) { - InteropHelp.TestIfAvailableClient(); - using (var pchLocation2 = new InteropHelp.UTF8StringHandle(pchLocation)) { - return (SteamAPICall_t)NativeMethods.ISteamRemoteStorage_UGCDownloadToLocation(hContent, pchLocation2, unPriority); - } - } - } -} \ No newline at end of file diff --git a/Assets/Plugins/Steamworks.NET/autogen/isteamremotestorage.cs.meta b/Assets/Plugins/Steamworks.NET/autogen/isteamremotestorage.cs.meta deleted file mode 100644 index a45fceb..0000000 --- a/Assets/Plugins/Steamworks.NET/autogen/isteamremotestorage.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 3d44e849fdf45f546b4daf89fc81a172 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/Plugins/Steamworks.NET/autogen/isteamscreenshots.cs b/Assets/Plugins/Steamworks.NET/autogen/isteamscreenshots.cs deleted file mode 100644 index 6a0cf2b..0000000 --- a/Assets/Plugins/Steamworks.NET/autogen/isteamscreenshots.cs +++ /dev/null @@ -1,80 +0,0 @@ -// This file is provided under The MIT License as part of Steamworks.NET. -// Copyright (c) 2013-2015 Riley Labrecque -// Please see the included LICENSE.txt for additional information. - -// This file is automatically generated. -// Changes to this file will be reverted when you update Steamworks.NET - -using System; -using System.Runtime.InteropServices; - -namespace Steamworks { - public static class SteamScreenshots { - /// - /// Writes a screenshot to the user's screenshot library given the raw image data, which must be in RGB format. - /// The return value is a handle that is valid for the duration of the game process and can be used to apply tags. - /// - public static ScreenshotHandle WriteScreenshot(byte[] pubRGB, uint cubRGB, int nWidth, int nHeight) { - InteropHelp.TestIfAvailableClient(); - return (ScreenshotHandle)NativeMethods.ISteamScreenshots_WriteScreenshot(pubRGB, cubRGB, nWidth, nHeight); - } - - /// - /// Adds a screenshot to the user's screenshot library from disk. If a thumbnail is provided, it must be 200 pixels wide and the same aspect ratio - /// as the screenshot, otherwise a thumbnail will be generated if the user uploads the screenshot. The screenshots must be in either JPEG or TGA format. - /// The return value is a handle that is valid for the duration of the game process and can be used to apply tags. - /// JPEG, TGA, and PNG formats are supported. - /// - public static ScreenshotHandle AddScreenshotToLibrary(string pchFilename, string pchThumbnailFilename, int nWidth, int nHeight) { - InteropHelp.TestIfAvailableClient(); - using (var pchFilename2 = new InteropHelp.UTF8StringHandle(pchFilename)) - using (var pchThumbnailFilename2 = new InteropHelp.UTF8StringHandle(pchThumbnailFilename)) { - return (ScreenshotHandle)NativeMethods.ISteamScreenshots_AddScreenshotToLibrary(pchFilename2, pchThumbnailFilename2, nWidth, nHeight); - } - } - - /// - /// Causes the Steam overlay to take a screenshot. If screenshots are being hooked by the game then a ScreenshotRequested_t callback is sent back to the game instead. - /// - public static void TriggerScreenshot() { - InteropHelp.TestIfAvailableClient(); - NativeMethods.ISteamScreenshots_TriggerScreenshot(); - } - - /// - /// Toggles whether the overlay handles screenshots when the user presses the screenshot hotkey, or the game handles them. If the game is hooking screenshots, - /// then the ScreenshotRequested_t callback will be sent if the user presses the hotkey, and the game is expected to call WriteScreenshot or AddScreenshotToLibrary - /// in response. - /// - public static void HookScreenshots(bool bHook) { - InteropHelp.TestIfAvailableClient(); - NativeMethods.ISteamScreenshots_HookScreenshots(bHook); - } - - /// - /// Sets metadata about a screenshot's location (for example, the name of the map) - /// - public static bool SetLocation(ScreenshotHandle hScreenshot, string pchLocation) { - InteropHelp.TestIfAvailableClient(); - using (var pchLocation2 = new InteropHelp.UTF8StringHandle(pchLocation)) { - return NativeMethods.ISteamScreenshots_SetLocation(hScreenshot, pchLocation2); - } - } - - /// - /// Tags a user as being visible in the screenshot - /// - public static bool TagUser(ScreenshotHandle hScreenshot, CSteamID steamID) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamScreenshots_TagUser(hScreenshot, steamID); - } - - /// - /// Tags a published file as being visible in the screenshot - /// - public static bool TagPublishedFile(ScreenshotHandle hScreenshot, PublishedFileId_t unPublishedFileID) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamScreenshots_TagPublishedFile(hScreenshot, unPublishedFileID); - } - } -} \ No newline at end of file diff --git a/Assets/Plugins/Steamworks.NET/autogen/isteamscreenshots.cs.meta b/Assets/Plugins/Steamworks.NET/autogen/isteamscreenshots.cs.meta deleted file mode 100644 index 975b77d..0000000 --- a/Assets/Plugins/Steamworks.NET/autogen/isteamscreenshots.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 2096b22b27414334cb11cb2d9057840b -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/Plugins/Steamworks.NET/autogen/isteamugc.cs b/Assets/Plugins/Steamworks.NET/autogen/isteamugc.cs deleted file mode 100644 index 43eb989..0000000 --- a/Assets/Plugins/Steamworks.NET/autogen/isteamugc.cs +++ /dev/null @@ -1,448 +0,0 @@ -// This file is provided under The MIT License as part of Steamworks.NET. -// Copyright (c) 2013-2015 Riley Labrecque -// Please see the included LICENSE.txt for additional information. - -// This file is automatically generated. -// Changes to this file will be reverted when you update Steamworks.NET - -using System; -using System.Runtime.InteropServices; - -namespace Steamworks { - public static class SteamUGC { - /// - /// Query UGC associated with a user. Creator app id or consumer app id must be valid and be set to the current running app. unPage should start at 1. - /// - public static UGCQueryHandle_t CreateQueryUserUGCRequest(AccountID_t unAccountID, EUserUGCList eListType, EUGCMatchingUGCType eMatchingUGCType, EUserUGCListSortOrder eSortOrder, AppId_t nCreatorAppID, AppId_t nConsumerAppID, uint unPage) { - InteropHelp.TestIfAvailableClient(); - return (UGCQueryHandle_t)NativeMethods.ISteamUGC_CreateQueryUserUGCRequest(unAccountID, eListType, eMatchingUGCType, eSortOrder, nCreatorAppID, nConsumerAppID, unPage); - } - - /// - /// Query for all matching UGC. Creator app id or consumer app id must be valid and be set to the current running app. unPage should start at 1. - /// - public static UGCQueryHandle_t CreateQueryAllUGCRequest(EUGCQuery eQueryType, EUGCMatchingUGCType eMatchingeMatchingUGCTypeFileType, AppId_t nCreatorAppID, AppId_t nConsumerAppID, uint unPage) { - InteropHelp.TestIfAvailableClient(); - return (UGCQueryHandle_t)NativeMethods.ISteamUGC_CreateQueryAllUGCRequest(eQueryType, eMatchingeMatchingUGCTypeFileType, nCreatorAppID, nConsumerAppID, unPage); - } - - /// - /// Query for the details of the given published file ids (the RequestUGCDetails call is deprecated and replaced with this) - /// - public static UGCQueryHandle_t CreateQueryUGCDetailsRequest(PublishedFileId_t[] pvecPublishedFileID, uint unNumPublishedFileIDs) { - InteropHelp.TestIfAvailableClient(); - return (UGCQueryHandle_t)NativeMethods.ISteamUGC_CreateQueryUGCDetailsRequest(pvecPublishedFileID, unNumPublishedFileIDs); - } - - /// - /// Send the query to Steam - /// - public static SteamAPICall_t SendQueryUGCRequest(UGCQueryHandle_t handle) { - InteropHelp.TestIfAvailableClient(); - return (SteamAPICall_t)NativeMethods.ISteamUGC_SendQueryUGCRequest(handle); - } - - /// - /// Retrieve an individual result after receiving the callback for querying UGC - /// - public static bool GetQueryUGCResult(UGCQueryHandle_t handle, uint index, out SteamUGCDetails_t pDetails) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamUGC_GetQueryUGCResult(handle, index, out pDetails); - } - - public static bool GetQueryUGCPreviewURL(UGCQueryHandle_t handle, uint index, out string pchURL, uint cchURLSize) { - InteropHelp.TestIfAvailableClient(); - IntPtr pchURL2 = Marshal.AllocHGlobal((int)cchURLSize); - bool ret = NativeMethods.ISteamUGC_GetQueryUGCPreviewURL(handle, index, pchURL2, cchURLSize); - pchURL = ret ? InteropHelp.PtrToStringUTF8(pchURL2) : null; - Marshal.FreeHGlobal(pchURL2); - return ret; - } - - public static bool GetQueryUGCMetadata(UGCQueryHandle_t handle, uint index, out string pchMetadata, uint cchMetadatasize) { - InteropHelp.TestIfAvailableClient(); - IntPtr pchMetadata2 = Marshal.AllocHGlobal((int)cchMetadatasize); - bool ret = NativeMethods.ISteamUGC_GetQueryUGCMetadata(handle, index, pchMetadata2, cchMetadatasize); - pchMetadata = ret ? InteropHelp.PtrToStringUTF8(pchMetadata2) : null; - Marshal.FreeHGlobal(pchMetadata2); - return ret; - } - - public static bool GetQueryUGCChildren(UGCQueryHandle_t handle, uint index, PublishedFileId_t[] pvecPublishedFileID, uint cMaxEntries) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamUGC_GetQueryUGCChildren(handle, index, pvecPublishedFileID, cMaxEntries); - } - - public static bool GetQueryUGCStatistic(UGCQueryHandle_t handle, uint index, EItemStatistic eStatType, out uint pStatValue) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamUGC_GetQueryUGCStatistic(handle, index, eStatType, out pStatValue); - } - - public static uint GetQueryUGCNumAdditionalPreviews(UGCQueryHandle_t handle, uint index) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamUGC_GetQueryUGCNumAdditionalPreviews(handle, index); - } - - public static bool GetQueryUGCAdditionalPreview(UGCQueryHandle_t handle, uint index, uint previewIndex, out string pchURLOrVideoID, uint cchURLSize, out bool pbIsImage) { - InteropHelp.TestIfAvailableClient(); - IntPtr pchURLOrVideoID2 = Marshal.AllocHGlobal((int)cchURLSize); - bool ret = NativeMethods.ISteamUGC_GetQueryUGCAdditionalPreview(handle, index, previewIndex, pchURLOrVideoID2, cchURLSize, out pbIsImage); - pchURLOrVideoID = ret ? InteropHelp.PtrToStringUTF8(pchURLOrVideoID2) : null; - Marshal.FreeHGlobal(pchURLOrVideoID2); - return ret; - } - - public static uint GetQueryUGCNumKeyValueTags(UGCQueryHandle_t handle, uint index) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamUGC_GetQueryUGCNumKeyValueTags(handle, index); - } - - public static bool GetQueryUGCKeyValueTag(UGCQueryHandle_t handle, uint index, uint keyValueTagIndex, out string pchKey, uint cchKeySize, out string pchValue, uint cchValueSize) { - InteropHelp.TestIfAvailableClient(); - IntPtr pchKey2 = Marshal.AllocHGlobal((int)cchKeySize); - IntPtr pchValue2 = Marshal.AllocHGlobal((int)cchValueSize); - bool ret = NativeMethods.ISteamUGC_GetQueryUGCKeyValueTag(handle, index, keyValueTagIndex, pchKey2, cchKeySize, pchValue2, cchValueSize); - pchKey = ret ? InteropHelp.PtrToStringUTF8(pchKey2) : null; - Marshal.FreeHGlobal(pchKey2); - pchValue = ret ? InteropHelp.PtrToStringUTF8(pchValue2) : null; - Marshal.FreeHGlobal(pchValue2); - return ret; - } - - /// - /// Release the request to free up memory, after retrieving results - /// - public static bool ReleaseQueryUGCRequest(UGCQueryHandle_t handle) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamUGC_ReleaseQueryUGCRequest(handle); - } - - /// - /// Options to set for querying UGC - /// - public static bool AddRequiredTag(UGCQueryHandle_t handle, string pTagName) { - InteropHelp.TestIfAvailableClient(); - using (var pTagName2 = new InteropHelp.UTF8StringHandle(pTagName)) { - return NativeMethods.ISteamUGC_AddRequiredTag(handle, pTagName2); - } - } - - public static bool AddExcludedTag(UGCQueryHandle_t handle, string pTagName) { - InteropHelp.TestIfAvailableClient(); - using (var pTagName2 = new InteropHelp.UTF8StringHandle(pTagName)) { - return NativeMethods.ISteamUGC_AddExcludedTag(handle, pTagName2); - } - } - - public static bool SetReturnKeyValueTags(UGCQueryHandle_t handle, bool bReturnKeyValueTags) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamUGC_SetReturnKeyValueTags(handle, bReturnKeyValueTags); - } - - public static bool SetReturnLongDescription(UGCQueryHandle_t handle, bool bReturnLongDescription) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamUGC_SetReturnLongDescription(handle, bReturnLongDescription); - } - - public static bool SetReturnMetadata(UGCQueryHandle_t handle, bool bReturnMetadata) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamUGC_SetReturnMetadata(handle, bReturnMetadata); - } - - public static bool SetReturnChildren(UGCQueryHandle_t handle, bool bReturnChildren) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamUGC_SetReturnChildren(handle, bReturnChildren); - } - - public static bool SetReturnAdditionalPreviews(UGCQueryHandle_t handle, bool bReturnAdditionalPreviews) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamUGC_SetReturnAdditionalPreviews(handle, bReturnAdditionalPreviews); - } - - public static bool SetReturnTotalOnly(UGCQueryHandle_t handle, bool bReturnTotalOnly) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamUGC_SetReturnTotalOnly(handle, bReturnTotalOnly); - } - - public static bool SetLanguage(UGCQueryHandle_t handle, string pchLanguage) { - InteropHelp.TestIfAvailableClient(); - using (var pchLanguage2 = new InteropHelp.UTF8StringHandle(pchLanguage)) { - return NativeMethods.ISteamUGC_SetLanguage(handle, pchLanguage2); - } - } - - public static bool SetAllowCachedResponse(UGCQueryHandle_t handle, uint unMaxAgeSeconds) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamUGC_SetAllowCachedResponse(handle, unMaxAgeSeconds); - } - - /// - /// Options only for querying user UGC - /// - public static bool SetCloudFileNameFilter(UGCQueryHandle_t handle, string pMatchCloudFileName) { - InteropHelp.TestIfAvailableClient(); - using (var pMatchCloudFileName2 = new InteropHelp.UTF8StringHandle(pMatchCloudFileName)) { - return NativeMethods.ISteamUGC_SetCloudFileNameFilter(handle, pMatchCloudFileName2); - } - } - - /// - /// Options only for querying all UGC - /// - public static bool SetMatchAnyTag(UGCQueryHandle_t handle, bool bMatchAnyTag) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamUGC_SetMatchAnyTag(handle, bMatchAnyTag); - } - - public static bool SetSearchText(UGCQueryHandle_t handle, string pSearchText) { - InteropHelp.TestIfAvailableClient(); - using (var pSearchText2 = new InteropHelp.UTF8StringHandle(pSearchText)) { - return NativeMethods.ISteamUGC_SetSearchText(handle, pSearchText2); - } - } - - public static bool SetRankedByTrendDays(UGCQueryHandle_t handle, uint unDays) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamUGC_SetRankedByTrendDays(handle, unDays); - } - - public static bool AddRequiredKeyValueTag(UGCQueryHandle_t handle, string pKey, string pValue) { - InteropHelp.TestIfAvailableClient(); - using (var pKey2 = new InteropHelp.UTF8StringHandle(pKey)) - using (var pValue2 = new InteropHelp.UTF8StringHandle(pValue)) { - return NativeMethods.ISteamUGC_AddRequiredKeyValueTag(handle, pKey2, pValue2); - } - } - - /// - /// DEPRECATED - Use CreateQueryUGCDetailsRequest call above instead! - /// - public static SteamAPICall_t RequestUGCDetails(PublishedFileId_t nPublishedFileID, uint unMaxAgeSeconds) { - InteropHelp.TestIfAvailableClient(); - return (SteamAPICall_t)NativeMethods.ISteamUGC_RequestUGCDetails(nPublishedFileID, unMaxAgeSeconds); - } - - /// - /// Steam Workshop Creator API - /// create new item for this app with no content attached yet - /// - public static SteamAPICall_t CreateItem(AppId_t nConsumerAppId, EWorkshopFileType eFileType) { - InteropHelp.TestIfAvailableClient(); - return (SteamAPICall_t)NativeMethods.ISteamUGC_CreateItem(nConsumerAppId, eFileType); - } - - /// - /// start an UGC item update. Set changed properties before commiting update with CommitItemUpdate() - /// - public static UGCUpdateHandle_t StartItemUpdate(AppId_t nConsumerAppId, PublishedFileId_t nPublishedFileID) { - InteropHelp.TestIfAvailableClient(); - return (UGCUpdateHandle_t)NativeMethods.ISteamUGC_StartItemUpdate(nConsumerAppId, nPublishedFileID); - } - - /// - /// change the title of an UGC item - /// - public static bool SetItemTitle(UGCUpdateHandle_t handle, string pchTitle) { - InteropHelp.TestIfAvailableClient(); - using (var pchTitle2 = new InteropHelp.UTF8StringHandle(pchTitle)) { - return NativeMethods.ISteamUGC_SetItemTitle(handle, pchTitle2); - } - } - - /// - /// change the description of an UGC item - /// - public static bool SetItemDescription(UGCUpdateHandle_t handle, string pchDescription) { - InteropHelp.TestIfAvailableClient(); - using (var pchDescription2 = new InteropHelp.UTF8StringHandle(pchDescription)) { - return NativeMethods.ISteamUGC_SetItemDescription(handle, pchDescription2); - } - } - - /// - /// specify the language of the title or description that will be set - /// - public static bool SetItemUpdateLanguage(UGCUpdateHandle_t handle, string pchLanguage) { - InteropHelp.TestIfAvailableClient(); - using (var pchLanguage2 = new InteropHelp.UTF8StringHandle(pchLanguage)) { - return NativeMethods.ISteamUGC_SetItemUpdateLanguage(handle, pchLanguage2); - } - } - - /// - /// change the metadata of an UGC item (max = k_cchDeveloperMetadataMax) - /// - public static bool SetItemMetadata(UGCUpdateHandle_t handle, string pchMetaData) { - InteropHelp.TestIfAvailableClient(); - using (var pchMetaData2 = new InteropHelp.UTF8StringHandle(pchMetaData)) { - return NativeMethods.ISteamUGC_SetItemMetadata(handle, pchMetaData2); - } - } - - /// - /// change the visibility of an UGC item - /// - public static bool SetItemVisibility(UGCUpdateHandle_t handle, ERemoteStoragePublishedFileVisibility eVisibility) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamUGC_SetItemVisibility(handle, eVisibility); - } - - /// - /// change the tags of an UGC item - /// - public static bool SetItemTags(UGCUpdateHandle_t updateHandle, System.Collections.Generic.IList pTags) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamUGC_SetItemTags(updateHandle, new InteropHelp.SteamParamStringArray(pTags)); - } - - /// - /// update item content from this local folder - /// - public static bool SetItemContent(UGCUpdateHandle_t handle, string pszContentFolder) { - InteropHelp.TestIfAvailableClient(); - using (var pszContentFolder2 = new InteropHelp.UTF8StringHandle(pszContentFolder)) { - return NativeMethods.ISteamUGC_SetItemContent(handle, pszContentFolder2); - } - } - - /// - /// change preview image file for this item. pszPreviewFile points to local image file, which must be under 1MB in size - /// - public static bool SetItemPreview(UGCUpdateHandle_t handle, string pszPreviewFile) { - InteropHelp.TestIfAvailableClient(); - using (var pszPreviewFile2 = new InteropHelp.UTF8StringHandle(pszPreviewFile)) { - return NativeMethods.ISteamUGC_SetItemPreview(handle, pszPreviewFile2); - } - } - - /// - /// remove any existing key-value tags with the specified key - /// - public static bool RemoveItemKeyValueTags(UGCUpdateHandle_t handle, string pchKey) { - InteropHelp.TestIfAvailableClient(); - using (var pchKey2 = new InteropHelp.UTF8StringHandle(pchKey)) { - return NativeMethods.ISteamUGC_RemoveItemKeyValueTags(handle, pchKey2); - } - } - - /// - /// add new key-value tags for the item. Note that there can be multiple values for a tag. - /// - public static bool AddItemKeyValueTag(UGCUpdateHandle_t handle, string pchKey, string pchValue) { - InteropHelp.TestIfAvailableClient(); - using (var pchKey2 = new InteropHelp.UTF8StringHandle(pchKey)) - using (var pchValue2 = new InteropHelp.UTF8StringHandle(pchValue)) { - return NativeMethods.ISteamUGC_AddItemKeyValueTag(handle, pchKey2, pchValue2); - } - } - - /// - /// commit update process started with StartItemUpdate() - /// - public static SteamAPICall_t SubmitItemUpdate(UGCUpdateHandle_t handle, string pchChangeNote) { - InteropHelp.TestIfAvailableClient(); - using (var pchChangeNote2 = new InteropHelp.UTF8StringHandle(pchChangeNote)) { - return (SteamAPICall_t)NativeMethods.ISteamUGC_SubmitItemUpdate(handle, pchChangeNote2); - } - } - - public static EItemUpdateStatus GetItemUpdateProgress(UGCUpdateHandle_t handle, out ulong punBytesProcessed, out ulong punBytesTotal) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamUGC_GetItemUpdateProgress(handle, out punBytesProcessed, out punBytesTotal); - } - - /// - /// Steam Workshop Consumer API - /// - public static SteamAPICall_t SetUserItemVote(PublishedFileId_t nPublishedFileID, bool bVoteUp) { - InteropHelp.TestIfAvailableClient(); - return (SteamAPICall_t)NativeMethods.ISteamUGC_SetUserItemVote(nPublishedFileID, bVoteUp); - } - - public static SteamAPICall_t GetUserItemVote(PublishedFileId_t nPublishedFileID) { - InteropHelp.TestIfAvailableClient(); - return (SteamAPICall_t)NativeMethods.ISteamUGC_GetUserItemVote(nPublishedFileID); - } - - public static SteamAPICall_t AddItemToFavorites(AppId_t nAppId, PublishedFileId_t nPublishedFileID) { - InteropHelp.TestIfAvailableClient(); - return (SteamAPICall_t)NativeMethods.ISteamUGC_AddItemToFavorites(nAppId, nPublishedFileID); - } - - public static SteamAPICall_t RemoveItemFromFavorites(AppId_t nAppId, PublishedFileId_t nPublishedFileID) { - InteropHelp.TestIfAvailableClient(); - return (SteamAPICall_t)NativeMethods.ISteamUGC_RemoveItemFromFavorites(nAppId, nPublishedFileID); - } - - /// - /// subscribe to this item, will be installed ASAP - /// - public static SteamAPICall_t SubscribeItem(PublishedFileId_t nPublishedFileID) { - InteropHelp.TestIfAvailableClient(); - return (SteamAPICall_t)NativeMethods.ISteamUGC_SubscribeItem(nPublishedFileID); - } - - /// - /// unsubscribe from this item, will be uninstalled after game quits - /// - public static SteamAPICall_t UnsubscribeItem(PublishedFileId_t nPublishedFileID) { - InteropHelp.TestIfAvailableClient(); - return (SteamAPICall_t)NativeMethods.ISteamUGC_UnsubscribeItem(nPublishedFileID); - } - - /// - /// number of subscribed items - /// - public static uint GetNumSubscribedItems() { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamUGC_GetNumSubscribedItems(); - } - - /// - /// all subscribed item PublishFileIDs - /// - public static uint GetSubscribedItems(PublishedFileId_t[] pvecPublishedFileID, uint cMaxEntries) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamUGC_GetSubscribedItems(pvecPublishedFileID, cMaxEntries); - } - - /// - /// get EItemState flags about item on this client - /// - public static uint GetItemState(PublishedFileId_t nPublishedFileID) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamUGC_GetItemState(nPublishedFileID); - } - - /// - /// get info about currently installed content on disc for items that have k_EItemStateInstalled set - /// if k_EItemStateLegacyItem is set, pchFolder contains the path to the legacy file itself (not a folder) - /// - public static bool GetItemInstallInfo(PublishedFileId_t nPublishedFileID, out ulong punSizeOnDisk, out string pchFolder, uint cchFolderSize, out uint punTimeStamp) { - InteropHelp.TestIfAvailableClient(); - IntPtr pchFolder2 = Marshal.AllocHGlobal((int)cchFolderSize); - bool ret = NativeMethods.ISteamUGC_GetItemInstallInfo(nPublishedFileID, out punSizeOnDisk, pchFolder2, cchFolderSize, out punTimeStamp); - pchFolder = ret ? InteropHelp.PtrToStringUTF8(pchFolder2) : null; - Marshal.FreeHGlobal(pchFolder2); - return ret; - } - - /// - /// get info about pending update for items that have k_EItemStateNeedsUpdate set. punBytesTotal will be valid after download started once - /// - public static bool GetItemDownloadInfo(PublishedFileId_t nPublishedFileID, out ulong punBytesDownloaded, out ulong punBytesTotal) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamUGC_GetItemDownloadInfo(nPublishedFileID, out punBytesDownloaded, out punBytesTotal); - } - - /// - /// download new or update already installed item. If function returns true, wait for DownloadItemResult_t. If the item is already installed, - /// then files on disk should not be used until callback received. If item is not subscribed to, it will be cached for some time. - /// If bHighPriority is set, any other item download will be suspended and this item downloaded ASAP. - /// - public static bool DownloadItem(PublishedFileId_t nPublishedFileID, bool bHighPriority) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamUGC_DownloadItem(nPublishedFileID, bHighPriority); - } - } -} \ No newline at end of file diff --git a/Assets/Plugins/Steamworks.NET/autogen/isteamugc.cs.meta b/Assets/Plugins/Steamworks.NET/autogen/isteamugc.cs.meta deleted file mode 100644 index c00d5d8..0000000 --- a/Assets/Plugins/Steamworks.NET/autogen/isteamugc.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 272f656ebe9675844abd06a8dd90f938 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/Plugins/Steamworks.NET/autogen/isteamunifiedmessages.cs b/Assets/Plugins/Steamworks.NET/autogen/isteamunifiedmessages.cs deleted file mode 100644 index 8ad4b68..0000000 --- a/Assets/Plugins/Steamworks.NET/autogen/isteamunifiedmessages.cs +++ /dev/null @@ -1,59 +0,0 @@ -// This file is provided under The MIT License as part of Steamworks.NET. -// Copyright (c) 2013-2015 Riley Labrecque -// Please see the included LICENSE.txt for additional information. - -// This file is automatically generated. -// Changes to this file will be reverted when you update Steamworks.NET - -using System; -using System.Runtime.InteropServices; - -namespace Steamworks { - public static class SteamUnifiedMessages { - /// - /// Sends a service method (in binary serialized form) using the Steam Client. - /// Returns a unified message handle (k_InvalidUnifiedMessageHandle if could not send the message). - /// - public static ClientUnifiedMessageHandle SendMethod(string pchServiceMethod, byte[] pRequestBuffer, uint unRequestBufferSize, ulong unContext) { - InteropHelp.TestIfAvailableClient(); - using (var pchServiceMethod2 = new InteropHelp.UTF8StringHandle(pchServiceMethod)) { - return (ClientUnifiedMessageHandle)NativeMethods.ISteamUnifiedMessages_SendMethod(pchServiceMethod2, pRequestBuffer, unRequestBufferSize, unContext); - } - } - - /// - /// Gets the size of the response and the EResult. Returns false if the response is not ready yet. - /// - public static bool GetMethodResponseInfo(ClientUnifiedMessageHandle hHandle, out uint punResponseSize, out EResult peResult) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamUnifiedMessages_GetMethodResponseInfo(hHandle, out punResponseSize, out peResult); - } - - /// - /// Gets a response in binary serialized form (and optionally release the corresponding allocated memory). - /// - public static bool GetMethodResponseData(ClientUnifiedMessageHandle hHandle, byte[] pResponseBuffer, uint unResponseBufferSize, bool bAutoRelease) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamUnifiedMessages_GetMethodResponseData(hHandle, pResponseBuffer, unResponseBufferSize, bAutoRelease); - } - - /// - /// Releases the message and its corresponding allocated memory. - /// - public static bool ReleaseMethod(ClientUnifiedMessageHandle hHandle) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamUnifiedMessages_ReleaseMethod(hHandle); - } - - /// - /// Sends a service notification (in binary serialized form) using the Steam Client. - /// Returns true if the notification was sent successfully. - /// - public static bool SendNotification(string pchServiceNotification, byte[] pNotificationBuffer, uint unNotificationBufferSize) { - InteropHelp.TestIfAvailableClient(); - using (var pchServiceNotification2 = new InteropHelp.UTF8StringHandle(pchServiceNotification)) { - return NativeMethods.ISteamUnifiedMessages_SendNotification(pchServiceNotification2, pNotificationBuffer, unNotificationBufferSize); - } - } - } -} \ No newline at end of file diff --git a/Assets/Plugins/Steamworks.NET/autogen/isteamunifiedmessages.cs.meta b/Assets/Plugins/Steamworks.NET/autogen/isteamunifiedmessages.cs.meta deleted file mode 100644 index 7fbe3d7..0000000 --- a/Assets/Plugins/Steamworks.NET/autogen/isteamunifiedmessages.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 2a23edbf92120a54db7e072a70d1ef60 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/Plugins/Steamworks.NET/autogen/isteamuser.cs b/Assets/Plugins/Steamworks.NET/autogen/isteamuser.cs deleted file mode 100644 index 6d15ac7..0000000 --- a/Assets/Plugins/Steamworks.NET/autogen/isteamuser.cs +++ /dev/null @@ -1,334 +0,0 @@ -// This file is provided under The MIT License as part of Steamworks.NET. -// Copyright (c) 2013-2015 Riley Labrecque -// Please see the included LICENSE.txt for additional information. - -// This file is automatically generated. -// Changes to this file will be reverted when you update Steamworks.NET - -using System; -using System.Runtime.InteropServices; - -namespace Steamworks { - public static class SteamUser { - /// - /// returns the HSteamUser this interface represents - /// this is only used internally by the API, and by a few select interfaces that support multi-user - /// - public static HSteamUser GetHSteamUser() { - InteropHelp.TestIfAvailableClient(); - return (HSteamUser)NativeMethods.ISteamUser_GetHSteamUser(); - } - - /// - /// returns true if the Steam client current has a live connection to the Steam servers. - /// If false, it means there is no active connection due to either a networking issue on the local machine, or the Steam server is down/busy. - /// The Steam client will automatically be trying to recreate the connection as often as possible. - /// - public static bool BLoggedOn() { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamUser_BLoggedOn(); - } - - /// - /// returns the CSteamID of the account currently logged into the Steam client - /// a CSteamID is a unique identifier for an account, and used to differentiate users in all parts of the Steamworks API - /// - public static CSteamID GetSteamID() { - InteropHelp.TestIfAvailableClient(); - return (CSteamID)NativeMethods.ISteamUser_GetSteamID(); - } - - /// - /// Multiplayer Authentication functions - /// InitiateGameConnection() starts the state machine for authenticating the game client with the game server - /// It is the client portion of a three-way handshake between the client, the game server, and the steam servers - /// Parameters: - /// void *pAuthBlob - a pointer to empty memory that will be filled in with the authentication token. - /// int cbMaxAuthBlob - the number of bytes of allocated memory in pBlob. Should be at least 2048 bytes. - /// CSteamID steamIDGameServer - the steamID of the game server, received from the game server by the client - /// CGameID gameID - the ID of the current game. For games without mods, this is just CGameID( <appID> ) - /// uint32 unIPServer, uint16 usPortServer - the IP address of the game server - /// bool bSecure - whether or not the client thinks that the game server is reporting itself as secure (i.e. VAC is running) - /// return value - returns the number of bytes written to pBlob. If the return is 0, then the buffer passed in was too small, and the call has failed - /// The contents of pBlob should then be sent to the game server, for it to use to complete the authentication process. - /// - public static int InitiateGameConnection(byte[] pAuthBlob, int cbMaxAuthBlob, CSteamID steamIDGameServer, uint unIPServer, ushort usPortServer, bool bSecure) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamUser_InitiateGameConnection(pAuthBlob, cbMaxAuthBlob, steamIDGameServer, unIPServer, usPortServer, bSecure); - } - - /// - /// notify of disconnect - /// needs to occur when the game client leaves the specified game server, needs to match with the InitiateGameConnection() call - /// - public static void TerminateGameConnection(uint unIPServer, ushort usPortServer) { - InteropHelp.TestIfAvailableClient(); - NativeMethods.ISteamUser_TerminateGameConnection(unIPServer, usPortServer); - } - - /// - /// Legacy functions - /// used by only a few games to track usage events - /// - public static void TrackAppUsageEvent(CGameID gameID, int eAppUsageEvent, string pchExtraInfo = "") { - InteropHelp.TestIfAvailableClient(); - using (var pchExtraInfo2 = new InteropHelp.UTF8StringHandle(pchExtraInfo)) { - NativeMethods.ISteamUser_TrackAppUsageEvent(gameID, eAppUsageEvent, pchExtraInfo2); - } - } - - /// - /// get the local storage folder for current Steam account to write application data, e.g. save games, configs etc. - /// this will usually be something like "C:\Progam Files\Steam\userdata\<SteamID>\<AppID>\local" - /// - public static bool GetUserDataFolder(out string pchBuffer, int cubBuffer) { - InteropHelp.TestIfAvailableClient(); - IntPtr pchBuffer2 = Marshal.AllocHGlobal(cubBuffer); - bool ret = NativeMethods.ISteamUser_GetUserDataFolder(pchBuffer2, cubBuffer); - pchBuffer = ret ? InteropHelp.PtrToStringUTF8(pchBuffer2) : null; - Marshal.FreeHGlobal(pchBuffer2); - return ret; - } - - /// - /// Starts voice recording. Once started, use GetVoice() to get the data - /// - public static void StartVoiceRecording() { - InteropHelp.TestIfAvailableClient(); - NativeMethods.ISteamUser_StartVoiceRecording(); - } - - /// - /// Stops voice recording. Because people often release push-to-talk keys early, the system will keep recording for - /// a little bit after this function is called. GetVoice() should continue to be called until it returns - /// k_eVoiceResultNotRecording - /// - public static void StopVoiceRecording() { - InteropHelp.TestIfAvailableClient(); - NativeMethods.ISteamUser_StopVoiceRecording(); - } - - /// - /// Determine the amount of captured audio data that is available in bytes. - /// This provides both the compressed and uncompressed data. Please note that the uncompressed - /// data is not the raw feed from the microphone: data may only be available if audible - /// levels of speech are detected. - /// nUncompressedVoiceDesiredSampleRate is necessary to know the number of bytes to return in pcbUncompressed - can be set to 0 if you don't need uncompressed (the usual case) - /// If you're upgrading from an older Steamworks API, you'll want to pass in 11025 to nUncompressedVoiceDesiredSampleRate - /// - public static EVoiceResult GetAvailableVoice(out uint pcbCompressed, out uint pcbUncompressed, uint nUncompressedVoiceDesiredSampleRate) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamUser_GetAvailableVoice(out pcbCompressed, out pcbUncompressed, nUncompressedVoiceDesiredSampleRate); - } - - /// - /// Gets the latest voice data from the microphone. Compressed data is an arbitrary format, and is meant to be handed back to - /// DecompressVoice() for playback later as a binary blob. Uncompressed data is 16-bit, signed integer, 11025Hz PCM format. - /// Please note that the uncompressed data is not the raw feed from the microphone: data may only be available if audible - /// levels of speech are detected, and may have passed through denoising filters, etc. - /// This function should be called as often as possible once recording has started; once per frame at least. - /// nBytesWritten is set to the number of bytes written to pDestBuffer. - /// nUncompressedBytesWritten is set to the number of bytes written to pUncompressedDestBuffer. - /// You must grab both compressed and uncompressed here at the same time, if you want both. - /// Matching data that is not read during this call will be thrown away. - /// GetAvailableVoice() can be used to determine how much data is actually available. - /// If you're upgrading from an older Steamworks API, you'll want to pass in 11025 to nUncompressedVoiceDesiredSampleRate - /// - public static EVoiceResult GetVoice(bool bWantCompressed, byte[] pDestBuffer, uint cbDestBufferSize, out uint nBytesWritten, bool bWantUncompressed, byte[] pUncompressedDestBuffer, uint cbUncompressedDestBufferSize, out uint nUncompressBytesWritten, uint nUncompressedVoiceDesiredSampleRate) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamUser_GetVoice(bWantCompressed, pDestBuffer, cbDestBufferSize, out nBytesWritten, bWantUncompressed, pUncompressedDestBuffer, cbUncompressedDestBufferSize, out nUncompressBytesWritten, nUncompressedVoiceDesiredSampleRate); - } - - /// - /// Decompresses a chunk of compressed data produced by GetVoice(). - /// nBytesWritten is set to the number of bytes written to pDestBuffer unless the return value is k_EVoiceResultBufferTooSmall. - /// In that case, nBytesWritten is set to the size of the buffer required to decompress the given - /// data. The suggested buffer size for the destination buffer is 22 kilobytes. - /// The output format of the data is 16-bit signed at the requested samples per second. - /// If you're upgrading from an older Steamworks API, you'll want to pass in 11025 to nDesiredSampleRate - /// - public static EVoiceResult DecompressVoice(byte[] pCompressed, uint cbCompressed, byte[] pDestBuffer, uint cbDestBufferSize, out uint nBytesWritten, uint nDesiredSampleRate) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamUser_DecompressVoice(pCompressed, cbCompressed, pDestBuffer, cbDestBufferSize, out nBytesWritten, nDesiredSampleRate); - } - - /// - /// This returns the frequency of the voice data as it's stored internally; calling DecompressVoice() with this size will yield the best results - /// - public static uint GetVoiceOptimalSampleRate() { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamUser_GetVoiceOptimalSampleRate(); - } - - /// - /// Retrieve ticket to be sent to the entity who wishes to authenticate you. - /// pcbTicket retrieves the length of the actual ticket. - /// - public static HAuthTicket GetAuthSessionTicket(byte[] pTicket, int cbMaxTicket, out uint pcbTicket) { - InteropHelp.TestIfAvailableClient(); - return (HAuthTicket)NativeMethods.ISteamUser_GetAuthSessionTicket(pTicket, cbMaxTicket, out pcbTicket); - } - - /// - /// Authenticate ticket from entity steamID to be sure it is valid and isnt reused - /// Registers for callbacks if the entity goes offline or cancels the ticket ( see ValidateAuthTicketResponse_t callback and EAuthSessionResponse ) - /// - public static EBeginAuthSessionResult BeginAuthSession(byte[] pAuthTicket, int cbAuthTicket, CSteamID steamID) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamUser_BeginAuthSession(pAuthTicket, cbAuthTicket, steamID); - } - - /// - /// Stop tracking started by BeginAuthSession - called when no longer playing game with this entity - /// - public static void EndAuthSession(CSteamID steamID) { - InteropHelp.TestIfAvailableClient(); - NativeMethods.ISteamUser_EndAuthSession(steamID); - } - - /// - /// Cancel auth ticket from GetAuthSessionTicket, called when no longer playing game with the entity you gave the ticket to - /// - public static void CancelAuthTicket(HAuthTicket hAuthTicket) { - InteropHelp.TestIfAvailableClient(); - NativeMethods.ISteamUser_CancelAuthTicket(hAuthTicket); - } - - /// - /// After receiving a user's authentication data, and passing it to BeginAuthSession, use this function - /// to determine if the user owns downloadable content specified by the provided AppID. - /// - public static EUserHasLicenseForAppResult UserHasLicenseForApp(CSteamID steamID, AppId_t appID) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamUser_UserHasLicenseForApp(steamID, appID); - } - - /// - /// returns true if this users looks like they are behind a NAT device. Only valid once the user has connected to steam - /// (i.e a SteamServersConnected_t has been issued) and may not catch all forms of NAT. - /// - public static bool BIsBehindNAT() { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamUser_BIsBehindNAT(); - } - - /// - /// set data to be replicated to friends so that they can join your game - /// CSteamID steamIDGameServer - the steamID of the game server, received from the game server by the client - /// uint32 unIPServer, uint16 usPortServer - the IP address of the game server - /// - public static void AdvertiseGame(CSteamID steamIDGameServer, uint unIPServer, ushort usPortServer) { - InteropHelp.TestIfAvailableClient(); - NativeMethods.ISteamUser_AdvertiseGame(steamIDGameServer, unIPServer, usPortServer); - } - - /// - /// Requests a ticket encrypted with an app specific shared key - /// pDataToInclude, cbDataToInclude will be encrypted into the ticket - /// ( This is asynchronous, you must wait for the ticket to be completed by the server ) - /// - public static SteamAPICall_t RequestEncryptedAppTicket(byte[] pDataToInclude, int cbDataToInclude) { - InteropHelp.TestIfAvailableClient(); - return (SteamAPICall_t)NativeMethods.ISteamUser_RequestEncryptedAppTicket(pDataToInclude, cbDataToInclude); - } - - /// - /// retrieve a finished ticket - /// - public static bool GetEncryptedAppTicket(byte[] pTicket, int cbMaxTicket, out uint pcbTicket) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamUser_GetEncryptedAppTicket(pTicket, cbMaxTicket, out pcbTicket); - } - - /// - /// Trading Card badges data access - /// if you only have one set of cards, the series will be 1 - /// the user has can have two different badges for a series; the regular (max level 5) and the foil (max level 1) - /// - public static int GetGameBadgeLevel(int nSeries, bool bFoil) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamUser_GetGameBadgeLevel(nSeries, bFoil); - } - - /// - /// gets the Steam Level of the user, as shown on their profile - /// - public static int GetPlayerSteamLevel() { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamUser_GetPlayerSteamLevel(); - } - - /// - /// Requests a URL which authenticates an in-game browser for store check-out, - /// and then redirects to the specified URL. As long as the in-game browser - /// accepts and handles session cookies, Steam microtransaction checkout pages - /// will automatically recognize the user instead of presenting a login page. - /// The result of this API call will be a StoreAuthURLResponse_t callback. - /// NOTE: The URL has a very short lifetime to prevent history-snooping attacks, - /// so you should only call this API when you are about to launch the browser, - /// or else immediately navigate to the result URL using a hidden browser window. - /// NOTE 2: The resulting authorization cookie has an expiration time of one day, - /// so it would be a good idea to request and visit a new auth URL every 12 hours. - /// - public static SteamAPICall_t RequestStoreAuthURL(string pchRedirectURL) { - InteropHelp.TestIfAvailableClient(); - using (var pchRedirectURL2 = new InteropHelp.UTF8StringHandle(pchRedirectURL)) { - return (SteamAPICall_t)NativeMethods.ISteamUser_RequestStoreAuthURL(pchRedirectURL2); - } - } -#if _PS3 - /// - /// Initiates PS3 Logon request using just PSN ticket. - /// PARAMS: bInteractive - If set tells Steam to go ahead and show the PS3 NetStart dialog if needed to - /// prompt the user for network setup/PSN logon before initiating the Steam side of the logon. - /// Listen for SteamServersConnected_t or SteamServerConnectFailure_t for status. SteamServerConnectFailure_t - /// may return with EResult k_EResultExternalAccountUnlinked if the PSN account is unknown to Steam. You should - /// then call LogOnAndLinkSteamAccountToPSN() after prompting the user for credentials to establish a link. - /// Future calls to LogOn() after the one time link call should succeed as long as the user is connected to PSN. - /// - public static void LogOn(bool bInteractive) { - InteropHelp.TestIfAvailableClient(); - NativeMethods.ISteamUser_LogOn(bInteractive); - } - - /// - /// Initiates a request to logon with a specific steam username/password and create a PSN account link at - /// the same time. Should call this only if LogOn() has failed and indicated the PSN account is unlinked. - /// PARAMS: bInteractive - If set tells Steam to go ahead and show the PS3 NetStart dialog if needed to - /// prompt the user for network setup/PSN logon before initiating the Steam side of the logon. pchUserName - /// should be the users Steam username, and pchPassword should be the users Steam password. - /// Listen for SteamServersConnected_t or SteamServerConnectFailure_t for status. SteamServerConnectFailure_t - /// may return with EResult k_EResultOtherAccountAlreadyLinked if already linked to another account. - /// - public static void LogOnAndLinkSteamAccountToPSN(bool bInteractive, string pchUserName, string pchPassword) { - InteropHelp.TestIfAvailableClient(); - using (var pchUserName2 = new InteropHelp.UTF8StringHandle(pchUserName)) - using (var pchPassword2 = new InteropHelp.UTF8StringHandle(pchPassword)) { - NativeMethods.ISteamUser_LogOnAndLinkSteamAccountToPSN(bInteractive, pchUserName2, pchPassword2); - } - } - - /// - /// Final logon option for PS3, this logs into an existing account if already linked, but if not already linked - /// creates a new account using the info in the PSN ticket to generate a unique account name. The new account is - /// then linked to the PSN ticket. This is the faster option for new users who don't have an existing Steam account - /// to get into multiplayer. - /// PARAMS: bInteractive - If set tells Steam to go ahead and show the PS3 NetStart dialog if needed to - /// prompt the user for network setup/PSN logon before initiating the Steam side of the logon. - /// - public static void LogOnAndCreateNewSteamAccountIfNeeded(bool bInteractive) { - InteropHelp.TestIfAvailableClient(); - NativeMethods.ISteamUser_LogOnAndCreateNewSteamAccountIfNeeded(bInteractive); - } - - /// - /// Returns a special SteamID that represents the user's PSN information. Can be used to query the user's PSN avatar, - /// online name, etc. through the standard Steamworks interfaces. - /// - public static CSteamID GetConsoleSteamID() { - InteropHelp.TestIfAvailableClient(); - return (CSteamID)NativeMethods.ISteamUser_GetConsoleSteamID(); - } -#endif - } -} \ No newline at end of file diff --git a/Assets/Plugins/Steamworks.NET/autogen/isteamuser.cs.meta b/Assets/Plugins/Steamworks.NET/autogen/isteamuser.cs.meta deleted file mode 100644 index 8935c41..0000000 --- a/Assets/Plugins/Steamworks.NET/autogen/isteamuser.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 9ded3e4249f78914d8454f4b29f11af4 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/Plugins/Steamworks.NET/autogen/isteamuserstats.cs b/Assets/Plugins/Steamworks.NET/autogen/isteamuserstats.cs deleted file mode 100644 index b6e0e05..0000000 --- a/Assets/Plugins/Steamworks.NET/autogen/isteamuserstats.cs +++ /dev/null @@ -1,486 +0,0 @@ -// This file is provided under The MIT License as part of Steamworks.NET. -// Copyright (c) 2013-2015 Riley Labrecque -// Please see the included LICENSE.txt for additional information. - -// This file is automatically generated. -// Changes to this file will be reverted when you update Steamworks.NET - -using System; -using System.Runtime.InteropServices; - -namespace Steamworks { - public static class SteamUserStats { - /// - /// Ask the server to send down this user's data and achievements for this game - /// - public static bool RequestCurrentStats() { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamUserStats_RequestCurrentStats(); - } - - /// - /// Data accessors - /// - public static bool GetStat(string pchName, out int pData) { - InteropHelp.TestIfAvailableClient(); - using (var pchName2 = new InteropHelp.UTF8StringHandle(pchName)) { - return NativeMethods.ISteamUserStats_GetStat(pchName2, out pData); - } - } - - public static bool GetStat(string pchName, out float pData) { - InteropHelp.TestIfAvailableClient(); - using (var pchName2 = new InteropHelp.UTF8StringHandle(pchName)) { - return NativeMethods.ISteamUserStats_GetStat_(pchName2, out pData); - } - } - - /// - /// Set / update data - /// - public static bool SetStat(string pchName, int nData) { - InteropHelp.TestIfAvailableClient(); - using (var pchName2 = new InteropHelp.UTF8StringHandle(pchName)) { - return NativeMethods.ISteamUserStats_SetStat(pchName2, nData); - } - } - - public static bool SetStat(string pchName, float fData) { - InteropHelp.TestIfAvailableClient(); - using (var pchName2 = new InteropHelp.UTF8StringHandle(pchName)) { - return NativeMethods.ISteamUserStats_SetStat_(pchName2, fData); - } - } - - public static bool UpdateAvgRateStat(string pchName, float flCountThisSession, double dSessionLength) { - InteropHelp.TestIfAvailableClient(); - using (var pchName2 = new InteropHelp.UTF8StringHandle(pchName)) { - return NativeMethods.ISteamUserStats_UpdateAvgRateStat(pchName2, flCountThisSession, dSessionLength); - } - } - - /// - /// Achievement flag accessors - /// - public static bool GetAchievement(string pchName, out bool pbAchieved) { - InteropHelp.TestIfAvailableClient(); - using (var pchName2 = new InteropHelp.UTF8StringHandle(pchName)) { - return NativeMethods.ISteamUserStats_GetAchievement(pchName2, out pbAchieved); - } - } - - public static bool SetAchievement(string pchName) { - InteropHelp.TestIfAvailableClient(); - using (var pchName2 = new InteropHelp.UTF8StringHandle(pchName)) { - return NativeMethods.ISteamUserStats_SetAchievement(pchName2); - } - } - - public static bool ClearAchievement(string pchName) { - InteropHelp.TestIfAvailableClient(); - using (var pchName2 = new InteropHelp.UTF8StringHandle(pchName)) { - return NativeMethods.ISteamUserStats_ClearAchievement(pchName2); - } - } - - /// - /// Get the achievement status, and the time it was unlocked if unlocked. - /// If the return value is true, but the unlock time is zero, that means it was unlocked before Steam - /// began tracking achievement unlock times (December 2009). Time is seconds since January 1, 1970. - /// - public static bool GetAchievementAndUnlockTime(string pchName, out bool pbAchieved, out uint punUnlockTime) { - InteropHelp.TestIfAvailableClient(); - using (var pchName2 = new InteropHelp.UTF8StringHandle(pchName)) { - return NativeMethods.ISteamUserStats_GetAchievementAndUnlockTime(pchName2, out pbAchieved, out punUnlockTime); - } - } - - /// - /// Store the current data on the server, will get a callback when set - /// And one callback for every new achievement - /// If the callback has a result of k_EResultInvalidParam, one or more stats - /// uploaded has been rejected, either because they broke constraints - /// or were out of date. In this case the server sends back updated values. - /// The stats should be re-iterated to keep in sync. - /// - public static bool StoreStats() { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamUserStats_StoreStats(); - } - - /// - /// Achievement / GroupAchievement metadata - /// Gets the icon of the achievement, which is a handle to be used in ISteamUtils::GetImageRGBA(), or 0 if none set. - /// A return value of 0 may indicate we are still fetching data, and you can wait for the UserAchievementIconFetched_t callback - /// which will notify you when the bits are ready. If the callback still returns zero, then there is no image set for the - /// specified achievement. - /// - public static int GetAchievementIcon(string pchName) { - InteropHelp.TestIfAvailableClient(); - using (var pchName2 = new InteropHelp.UTF8StringHandle(pchName)) { - return NativeMethods.ISteamUserStats_GetAchievementIcon(pchName2); - } - } - - /// - /// Get general attributes for an achievement. Accepts the following keys: - /// - "name" and "desc" for retrieving the localized achievement name and description (returned in UTF8) - /// - "hidden" for retrieving if an achievement is hidden (returns "0" when not hidden, "1" when hidden) - /// - public static string GetAchievementDisplayAttribute(string pchName, string pchKey) { - InteropHelp.TestIfAvailableClient(); - using (var pchName2 = new InteropHelp.UTF8StringHandle(pchName)) - using (var pchKey2 = new InteropHelp.UTF8StringHandle(pchKey)) { - return InteropHelp.PtrToStringUTF8(NativeMethods.ISteamUserStats_GetAchievementDisplayAttribute(pchName2, pchKey2)); - } - } - - /// - /// Achievement progress - triggers an AchievementProgress callback, that is all. - /// Calling this w/ N out of N progress will NOT set the achievement, the game must still do that. - /// - public static bool IndicateAchievementProgress(string pchName, uint nCurProgress, uint nMaxProgress) { - InteropHelp.TestIfAvailableClient(); - using (var pchName2 = new InteropHelp.UTF8StringHandle(pchName)) { - return NativeMethods.ISteamUserStats_IndicateAchievementProgress(pchName2, nCurProgress, nMaxProgress); - } - } - - /// - /// Used for iterating achievements. In general games should not need these functions because they should have a - /// list of existing achievements compiled into them - /// - public static uint GetNumAchievements() { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamUserStats_GetNumAchievements(); - } - - /// - /// Get achievement name iAchievement in [0,GetNumAchievements) - /// - public static string GetAchievementName(uint iAchievement) { - InteropHelp.TestIfAvailableClient(); - return InteropHelp.PtrToStringUTF8(NativeMethods.ISteamUserStats_GetAchievementName(iAchievement)); - } - - /// - /// Friends stats & achievements - /// downloads stats for the user - /// returns a UserStatsReceived_t received when completed - /// if the other user has no stats, UserStatsReceived_t.m_eResult will be set to k_EResultFail - /// these stats won't be auto-updated; you'll need to call RequestUserStats() again to refresh any data - /// - public static SteamAPICall_t RequestUserStats(CSteamID steamIDUser) { - InteropHelp.TestIfAvailableClient(); - return (SteamAPICall_t)NativeMethods.ISteamUserStats_RequestUserStats(steamIDUser); - } - - /// - /// requests stat information for a user, usable after a successful call to RequestUserStats() - /// - public static bool GetUserStat(CSteamID steamIDUser, string pchName, out int pData) { - InteropHelp.TestIfAvailableClient(); - using (var pchName2 = new InteropHelp.UTF8StringHandle(pchName)) { - return NativeMethods.ISteamUserStats_GetUserStat(steamIDUser, pchName2, out pData); - } - } - - public static bool GetUserStat(CSteamID steamIDUser, string pchName, out float pData) { - InteropHelp.TestIfAvailableClient(); - using (var pchName2 = new InteropHelp.UTF8StringHandle(pchName)) { - return NativeMethods.ISteamUserStats_GetUserStat_(steamIDUser, pchName2, out pData); - } - } - - public static bool GetUserAchievement(CSteamID steamIDUser, string pchName, out bool pbAchieved) { - InteropHelp.TestIfAvailableClient(); - using (var pchName2 = new InteropHelp.UTF8StringHandle(pchName)) { - return NativeMethods.ISteamUserStats_GetUserAchievement(steamIDUser, pchName2, out pbAchieved); - } - } - - /// - /// See notes for GetAchievementAndUnlockTime above - /// - public static bool GetUserAchievementAndUnlockTime(CSteamID steamIDUser, string pchName, out bool pbAchieved, out uint punUnlockTime) { - InteropHelp.TestIfAvailableClient(); - using (var pchName2 = new InteropHelp.UTF8StringHandle(pchName)) { - return NativeMethods.ISteamUserStats_GetUserAchievementAndUnlockTime(steamIDUser, pchName2, out pbAchieved, out punUnlockTime); - } - } - - /// - /// Reset stats - /// - public static bool ResetAllStats(bool bAchievementsToo) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamUserStats_ResetAllStats(bAchievementsToo); - } - - /// - /// Leaderboard functions - /// asks the Steam back-end for a leaderboard by name, and will create it if it's not yet - /// This call is asynchronous, with the result returned in LeaderboardFindResult_t - /// - public static SteamAPICall_t FindOrCreateLeaderboard(string pchLeaderboardName, ELeaderboardSortMethod eLeaderboardSortMethod, ELeaderboardDisplayType eLeaderboardDisplayType) { - InteropHelp.TestIfAvailableClient(); - using (var pchLeaderboardName2 = new InteropHelp.UTF8StringHandle(pchLeaderboardName)) { - return (SteamAPICall_t)NativeMethods.ISteamUserStats_FindOrCreateLeaderboard(pchLeaderboardName2, eLeaderboardSortMethod, eLeaderboardDisplayType); - } - } - - /// - /// as above, but won't create the leaderboard if it's not found - /// This call is asynchronous, with the result returned in LeaderboardFindResult_t - /// - public static SteamAPICall_t FindLeaderboard(string pchLeaderboardName) { - InteropHelp.TestIfAvailableClient(); - using (var pchLeaderboardName2 = new InteropHelp.UTF8StringHandle(pchLeaderboardName)) { - return (SteamAPICall_t)NativeMethods.ISteamUserStats_FindLeaderboard(pchLeaderboardName2); - } - } - - /// - /// returns the name of a leaderboard - /// - public static string GetLeaderboardName(SteamLeaderboard_t hSteamLeaderboard) { - InteropHelp.TestIfAvailableClient(); - return InteropHelp.PtrToStringUTF8(NativeMethods.ISteamUserStats_GetLeaderboardName(hSteamLeaderboard)); - } - - /// - /// returns the total number of entries in a leaderboard, as of the last request - /// - public static int GetLeaderboardEntryCount(SteamLeaderboard_t hSteamLeaderboard) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamUserStats_GetLeaderboardEntryCount(hSteamLeaderboard); - } - - /// - /// returns the sort method of the leaderboard - /// - public static ELeaderboardSortMethod GetLeaderboardSortMethod(SteamLeaderboard_t hSteamLeaderboard) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamUserStats_GetLeaderboardSortMethod(hSteamLeaderboard); - } - - /// - /// returns the display type of the leaderboard - /// - public static ELeaderboardDisplayType GetLeaderboardDisplayType(SteamLeaderboard_t hSteamLeaderboard) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamUserStats_GetLeaderboardDisplayType(hSteamLeaderboard); - } - - /// - /// Asks the Steam back-end for a set of rows in the leaderboard. - /// This call is asynchronous, with the result returned in LeaderboardScoresDownloaded_t - /// LeaderboardScoresDownloaded_t will contain a handle to pull the results from GetDownloadedLeaderboardEntries() (below) - /// You can ask for more entries than exist, and it will return as many as do exist. - /// k_ELeaderboardDataRequestGlobal requests rows in the leaderboard from the full table, with nRangeStart & nRangeEnd in the range [1, TotalEntries] - /// k_ELeaderboardDataRequestGlobalAroundUser requests rows around the current user, nRangeStart being negate - /// e.g. DownloadLeaderboardEntries( hLeaderboard, k_ELeaderboardDataRequestGlobalAroundUser, -3, 3 ) will return 7 rows, 3 before the user, 3 after - /// k_ELeaderboardDataRequestFriends requests all the rows for friends of the current user - /// - public static SteamAPICall_t DownloadLeaderboardEntries(SteamLeaderboard_t hSteamLeaderboard, ELeaderboardDataRequest eLeaderboardDataRequest, int nRangeStart, int nRangeEnd) { - InteropHelp.TestIfAvailableClient(); - return (SteamAPICall_t)NativeMethods.ISteamUserStats_DownloadLeaderboardEntries(hSteamLeaderboard, eLeaderboardDataRequest, nRangeStart, nRangeEnd); - } - - /// - /// as above, but downloads leaderboard entries for an arbitrary set of users - ELeaderboardDataRequest is k_ELeaderboardDataRequestUsers - /// if a user doesn't have a leaderboard entry, they won't be included in the result - /// a max of 100 users can be downloaded at a time, with only one outstanding call at a time - /// - public static SteamAPICall_t DownloadLeaderboardEntriesForUsers(SteamLeaderboard_t hSteamLeaderboard, CSteamID[] prgUsers, int cUsers) { - InteropHelp.TestIfAvailableClient(); - return (SteamAPICall_t)NativeMethods.ISteamUserStats_DownloadLeaderboardEntriesForUsers(hSteamLeaderboard, prgUsers, cUsers); - } - - /// - /// Returns data about a single leaderboard entry - /// use a for loop from 0 to LeaderboardScoresDownloaded_t::m_cEntryCount to get all the downloaded entries - /// e.g. - /// void OnLeaderboardScoresDownloaded( LeaderboardScoresDownloaded_t *pLeaderboardScoresDownloaded ) - /// { - /// for ( int index = 0; index < pLeaderboardScoresDownloaded->m_cEntryCount; index++ ) - /// { - /// LeaderboardEntry_t leaderboardEntry; - /// int32 details[3]; // we know this is how many we've stored previously - /// GetDownloadedLeaderboardEntry( pLeaderboardScoresDownloaded->m_hSteamLeaderboardEntries, index, &leaderboardEntry, details, 3 ); - /// assert( leaderboardEntry.m_cDetails == 3 ); - /// ... - /// } - /// once you've accessed all the entries, the data will be free'd, and the SteamLeaderboardEntries_t handle will become invalid - /// - public static bool GetDownloadedLeaderboardEntry(SteamLeaderboardEntries_t hSteamLeaderboardEntries, int index, out LeaderboardEntry_t pLeaderboardEntry, int[] pDetails, int cDetailsMax) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamUserStats_GetDownloadedLeaderboardEntry(hSteamLeaderboardEntries, index, out pLeaderboardEntry, pDetails, cDetailsMax); - } - - /// - /// Uploads a user score to the Steam back-end. - /// This call is asynchronous, with the result returned in LeaderboardScoreUploaded_t - /// Details are extra game-defined information regarding how the user got that score - /// pScoreDetails points to an array of int32's, cScoreDetailsCount is the number of int32's in the list - /// - public static SteamAPICall_t UploadLeaderboardScore(SteamLeaderboard_t hSteamLeaderboard, ELeaderboardUploadScoreMethod eLeaderboardUploadScoreMethod, int nScore, int[] pScoreDetails, int cScoreDetailsCount) { - InteropHelp.TestIfAvailableClient(); - return (SteamAPICall_t)NativeMethods.ISteamUserStats_UploadLeaderboardScore(hSteamLeaderboard, eLeaderboardUploadScoreMethod, nScore, pScoreDetails, cScoreDetailsCount); - } - - /// - /// Attaches a piece of user generated content the user's entry on a leaderboard. - /// hContent is a handle to a piece of user generated content that was shared using ISteamUserRemoteStorage::FileShare(). - /// This call is asynchronous, with the result returned in LeaderboardUGCSet_t. - /// - public static SteamAPICall_t AttachLeaderboardUGC(SteamLeaderboard_t hSteamLeaderboard, UGCHandle_t hUGC) { - InteropHelp.TestIfAvailableClient(); - return (SteamAPICall_t)NativeMethods.ISteamUserStats_AttachLeaderboardUGC(hSteamLeaderboard, hUGC); - } - - /// - /// Retrieves the number of players currently playing your game (online + offline) - /// This call is asynchronous, with the result returned in NumberOfCurrentPlayers_t - /// - public static SteamAPICall_t GetNumberOfCurrentPlayers() { - InteropHelp.TestIfAvailableClient(); - return (SteamAPICall_t)NativeMethods.ISteamUserStats_GetNumberOfCurrentPlayers(); - } - - /// - /// Requests that Steam fetch data on the percentage of players who have received each achievement - /// for the game globally. - /// This call is asynchronous, with the result returned in GlobalAchievementPercentagesReady_t. - /// - public static SteamAPICall_t RequestGlobalAchievementPercentages() { - InteropHelp.TestIfAvailableClient(); - return (SteamAPICall_t)NativeMethods.ISteamUserStats_RequestGlobalAchievementPercentages(); - } - - /// - /// Get the info on the most achieved achievement for the game, returns an iterator index you can use to fetch - /// the next most achieved afterwards. Will return -1 if there is no data on achievement - /// percentages (ie, you haven't called RequestGlobalAchievementPercentages and waited on the callback). - /// - public static int GetMostAchievedAchievementInfo(out string pchName, uint unNameBufLen, out float pflPercent, out bool pbAchieved) { - InteropHelp.TestIfAvailableClient(); - IntPtr pchName2 = Marshal.AllocHGlobal((int)unNameBufLen); - int ret = NativeMethods.ISteamUserStats_GetMostAchievedAchievementInfo(pchName2, unNameBufLen, out pflPercent, out pbAchieved); - pchName = ret != -1 ? InteropHelp.PtrToStringUTF8(pchName2) : null; - Marshal.FreeHGlobal(pchName2); - return ret; - } - - /// - /// Get the info on the next most achieved achievement for the game. Call this after GetMostAchievedAchievementInfo or another - /// GetNextMostAchievedAchievementInfo call passing the iterator from the previous call. Returns -1 after the last - /// achievement has been iterated. - /// - public static int GetNextMostAchievedAchievementInfo(int iIteratorPrevious, out string pchName, uint unNameBufLen, out float pflPercent, out bool pbAchieved) { - InteropHelp.TestIfAvailableClient(); - IntPtr pchName2 = Marshal.AllocHGlobal((int)unNameBufLen); - int ret = NativeMethods.ISteamUserStats_GetNextMostAchievedAchievementInfo(iIteratorPrevious, pchName2, unNameBufLen, out pflPercent, out pbAchieved); - pchName = ret != -1 ? InteropHelp.PtrToStringUTF8(pchName2) : null; - Marshal.FreeHGlobal(pchName2); - return ret; - } - - /// - /// Returns the percentage of users who have achieved the specified achievement. - /// - public static bool GetAchievementAchievedPercent(string pchName, out float pflPercent) { - InteropHelp.TestIfAvailableClient(); - using (var pchName2 = new InteropHelp.UTF8StringHandle(pchName)) { - return NativeMethods.ISteamUserStats_GetAchievementAchievedPercent(pchName2, out pflPercent); - } - } - - /// - /// Requests global stats data, which is available for stats marked as "aggregated". - /// This call is asynchronous, with the results returned in GlobalStatsReceived_t. - /// nHistoryDays specifies how many days of day-by-day history to retrieve in addition - /// to the overall totals. The limit is 60. - /// - public static SteamAPICall_t RequestGlobalStats(int nHistoryDays) { - InteropHelp.TestIfAvailableClient(); - return (SteamAPICall_t)NativeMethods.ISteamUserStats_RequestGlobalStats(nHistoryDays); - } - - /// - /// Gets the lifetime totals for an aggregated stat - /// - public static bool GetGlobalStat(string pchStatName, out long pData) { - InteropHelp.TestIfAvailableClient(); - using (var pchStatName2 = new InteropHelp.UTF8StringHandle(pchStatName)) { - return NativeMethods.ISteamUserStats_GetGlobalStat(pchStatName2, out pData); - } - } - - public static bool GetGlobalStat(string pchStatName, out double pData) { - InteropHelp.TestIfAvailableClient(); - using (var pchStatName2 = new InteropHelp.UTF8StringHandle(pchStatName)) { - return NativeMethods.ISteamUserStats_GetGlobalStat_(pchStatName2, out pData); - } - } - - /// - /// Gets history for an aggregated stat. pData will be filled with daily values, starting with today. - /// So when called, pData[0] will be today, pData[1] will be yesterday, and pData[2] will be two days ago, - /// etc. cubData is the size in bytes of the pubData buffer. Returns the number of - /// elements actually set. - /// - public static int GetGlobalStatHistory(string pchStatName, long[] pData, uint cubData) { - InteropHelp.TestIfAvailableClient(); - using (var pchStatName2 = new InteropHelp.UTF8StringHandle(pchStatName)) { - return NativeMethods.ISteamUserStats_GetGlobalStatHistory(pchStatName2, pData, cubData); - } - } - - public static int GetGlobalStatHistory(string pchStatName, double[] pData, uint cubData) { - InteropHelp.TestIfAvailableClient(); - using (var pchStatName2 = new InteropHelp.UTF8StringHandle(pchStatName)) { - return NativeMethods.ISteamUserStats_GetGlobalStatHistory_(pchStatName2, pData, cubData); - } - } -#if _PS3 - /// - /// Call to kick off installation of the PS3 trophies. This call is asynchronous, and the results will be returned in a PS3TrophiesInstalled_t - /// callback. - /// - public static bool InstallPS3Trophies() { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamUserStats_InstallPS3Trophies(); - } - - /// - /// Returns the amount of space required at boot to install trophies. This value can be used when comparing the amount of space needed - /// by the game to the available space value passed to the game at boot. The value is set during InstallPS3Trophies(). - /// - public static ulong GetTrophySpaceRequiredBeforeInstall() { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamUserStats_GetTrophySpaceRequiredBeforeInstall(); - } - - /// - /// On PS3, user stats & achievement progress through Steam must be stored with the user's saved game data. - /// At startup, before calling RequestCurrentStats(), you must pass the user's stats data to Steam via this method. - /// If you do not have any user data, call this function with pvData = NULL and cubData = 0 - /// - public static bool SetUserStatsData(IntPtr pvData, uint cubData) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamUserStats_SetUserStatsData(pvData, cubData); - } - - /// - /// Call to get the user's current stats data. You should retrieve this data after receiving successful UserStatsReceived_t & UserStatsStored_t - /// callbacks, and store the data with the user's save game data. You can call this method with pvData = NULL and cubData = 0 to get the required - /// buffer size. - /// - public static bool GetUserStatsData(IntPtr pvData, uint cubData, out uint pcubWritten) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamUserStats_GetUserStatsData(pvData, cubData, out pcubWritten); - } -#endif - } -} \ No newline at end of file diff --git a/Assets/Plugins/Steamworks.NET/autogen/isteamuserstats.cs.meta b/Assets/Plugins/Steamworks.NET/autogen/isteamuserstats.cs.meta deleted file mode 100644 index e9c7046..0000000 --- a/Assets/Plugins/Steamworks.NET/autogen/isteamuserstats.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 13e9787c38dee4842844ccfdf9a078d3 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/Plugins/Steamworks.NET/autogen/isteamutils.cs b/Assets/Plugins/Steamworks.NET/autogen/isteamutils.cs deleted file mode 100644 index 6447ff0..0000000 --- a/Assets/Plugins/Steamworks.NET/autogen/isteamutils.cs +++ /dev/null @@ -1,273 +0,0 @@ -// This file is provided under The MIT License as part of Steamworks.NET. -// Copyright (c) 2013-2015 Riley Labrecque -// Please see the included LICENSE.txt for additional information. - -// This file is automatically generated. -// Changes to this file will be reverted when you update Steamworks.NET - -using System; -using System.Runtime.InteropServices; - -namespace Steamworks { - public static class SteamUtils { - /// - /// return the number of seconds since the user - /// - public static uint GetSecondsSinceAppActive() { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamUtils_GetSecondsSinceAppActive(); - } - - public static uint GetSecondsSinceComputerActive() { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamUtils_GetSecondsSinceComputerActive(); - } - - /// - /// the universe this client is connecting to - /// - public static EUniverse GetConnectedUniverse() { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamUtils_GetConnectedUniverse(); - } - - /// - /// Steam server time - in PST, number of seconds since January 1, 1970 (i.e unix time) - /// - public static uint GetServerRealTime() { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamUtils_GetServerRealTime(); - } - - /// - /// returns the 2 digit ISO 3166-1-alpha-2 format country code this client is running in (as looked up via an IP-to-location database) - /// e.g "US" or "UK". - /// - public static string GetIPCountry() { - InteropHelp.TestIfAvailableClient(); - return InteropHelp.PtrToStringUTF8(NativeMethods.ISteamUtils_GetIPCountry()); - } - - /// - /// returns true if the image exists, and valid sizes were filled out - /// - public static bool GetImageSize(int iImage, out uint pnWidth, out uint pnHeight) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamUtils_GetImageSize(iImage, out pnWidth, out pnHeight); - } - - /// - /// returns true if the image exists, and the buffer was successfully filled out - /// results are returned in RGBA format - /// the destination buffer size should be 4 * height * width * sizeof(char) - /// - public static bool GetImageRGBA(int iImage, byte[] pubDest, int nDestBufferSize) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamUtils_GetImageRGBA(iImage, pubDest, nDestBufferSize); - } - - /// - /// returns the IP of the reporting server for valve - currently only used in Source engine games - /// - public static bool GetCSERIPPort(out uint unIP, out ushort usPort) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamUtils_GetCSERIPPort(out unIP, out usPort); - } - - /// - /// return the amount of battery power left in the current system in % [0..100], 255 for being on AC power - /// - public static byte GetCurrentBatteryPower() { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamUtils_GetCurrentBatteryPower(); - } - - /// - /// returns the appID of the current process - /// - public static AppId_t GetAppID() { - InteropHelp.TestIfAvailableClient(); - return (AppId_t)NativeMethods.ISteamUtils_GetAppID(); - } - - /// - /// Sets the position where the overlay instance for the currently calling game should show notifications. - /// This position is per-game and if this function is called from outside of a game context it will do nothing. - /// - public static void SetOverlayNotificationPosition(ENotificationPosition eNotificationPosition) { - InteropHelp.TestIfAvailableClient(); - NativeMethods.ISteamUtils_SetOverlayNotificationPosition(eNotificationPosition); - } - - /// - /// API asynchronous call results - /// can be used directly, but more commonly used via the callback dispatch API (see steam_api.h) - /// - public static bool IsAPICallCompleted(SteamAPICall_t hSteamAPICall, out bool pbFailed) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamUtils_IsAPICallCompleted(hSteamAPICall, out pbFailed); - } - - public static ESteamAPICallFailure GetAPICallFailureReason(SteamAPICall_t hSteamAPICall) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamUtils_GetAPICallFailureReason(hSteamAPICall); - } - - public static bool GetAPICallResult(SteamAPICall_t hSteamAPICall, IntPtr pCallback, int cubCallback, int iCallbackExpected, out bool pbFailed) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamUtils_GetAPICallResult(hSteamAPICall, pCallback, cubCallback, iCallbackExpected, out pbFailed); - } - - /// - /// this needs to be called every frame to process matchmaking results - /// redundant if you're already calling SteamAPI_RunCallbacks() - /// - public static void RunFrame() { - InteropHelp.TestIfAvailableClient(); - NativeMethods.ISteamUtils_RunFrame(); - } - - /// - /// returns the number of IPC calls made since the last time this function was called - /// Used for perf debugging so you can understand how many IPC calls your game makes per frame - /// Every IPC call is at minimum a thread context switch if not a process one so you want to rate - /// control how often you do them. - /// - public static uint GetIPCCallCount() { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamUtils_GetIPCCallCount(); - } - - /// - /// API warning handling - /// 'int' is the severity; 0 for msg, 1 for warning - /// 'const char *' is the text of the message - /// callbacks will occur directly after the API function is called that generated the warning or message - /// - public static void SetWarningMessageHook(SteamAPIWarningMessageHook_t pFunction) { - InteropHelp.TestIfAvailableClient(); - NativeMethods.ISteamUtils_SetWarningMessageHook(pFunction); - } - - /// - /// Returns true if the overlay is running & the user can access it. The overlay process could take a few seconds to - /// start & hook the game process, so this function will initially return false while the overlay is loading. - /// - public static bool IsOverlayEnabled() { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamUtils_IsOverlayEnabled(); - } - - /// - /// Normally this call is unneeded if your game has a constantly running frame loop that calls the - /// D3D Present API, or OGL SwapBuffers API every frame. - /// However, if you have a game that only refreshes the screen on an event driven basis then that can break - /// the overlay, as it uses your Present/SwapBuffers calls to drive it's internal frame loop and it may also - /// need to Present() to the screen any time an even needing a notification happens or when the overlay is - /// brought up over the game by a user. You can use this API to ask the overlay if it currently need a present - /// in that case, and then you can check for this periodically (roughly 33hz is desirable) and make sure you - /// refresh the screen with Present or SwapBuffers to allow the overlay to do it's work. - /// - public static bool BOverlayNeedsPresent() { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamUtils_BOverlayNeedsPresent(); - } -#if !_PS3 - /// - /// Asynchronous call to check if an executable file has been signed using the public key set on the signing tab - /// of the partner site, for example to refuse to load modified executable files. - /// The result is returned in CheckFileSignature_t. - /// k_ECheckFileSignatureNoSignaturesFoundForThisApp - This app has not been configured on the signing tab of the partner site to enable this function. - /// k_ECheckFileSignatureNoSignaturesFoundForThisFile - This file is not listed on the signing tab for the partner site. - /// k_ECheckFileSignatureFileNotFound - The file does not exist on disk. - /// k_ECheckFileSignatureInvalidSignature - The file exists, and the signing tab has been set for this file, but the file is either not signed or the signature does not match. - /// k_ECheckFileSignatureValidSignature - The file is signed and the signature is valid. - /// - public static SteamAPICall_t CheckFileSignature(string szFileName) { - InteropHelp.TestIfAvailableClient(); - using (var szFileName2 = new InteropHelp.UTF8StringHandle(szFileName)) { - return (SteamAPICall_t)NativeMethods.ISteamUtils_CheckFileSignature(szFileName2); - } - } -#endif -#if _PS3 - public static void PostPS3SysutilCallback(ulong status, ulong param, IntPtr userdata) { - InteropHelp.TestIfAvailableClient(); - NativeMethods.ISteamUtils_PostPS3SysutilCallback(status, param, userdata); - } - - public static bool BIsReadyToShutdown() { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamUtils_BIsReadyToShutdown(); - } - - public static bool BIsPSNOnline() { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamUtils_BIsPSNOnline(); - } - - /// - /// Call this with localized strings for the language the game is running in, otherwise default english - /// strings will be used by Steam. - /// - public static void SetPSNGameBootInviteStrings(string pchSubject, string pchBody) { - InteropHelp.TestIfAvailableClient(); - using (var pchSubject2 = new InteropHelp.UTF8StringHandle(pchSubject)) - using (var pchBody2 = new InteropHelp.UTF8StringHandle(pchBody)) { - NativeMethods.ISteamUtils_SetPSNGameBootInviteStrings(pchSubject2, pchBody2); - } - } -#endif - /// - /// Activates the Big Picture text input dialog which only supports gamepad input - /// - public static bool ShowGamepadTextInput(EGamepadTextInputMode eInputMode, EGamepadTextInputLineMode eLineInputMode, string pchDescription, uint unCharMax, string pchExistingText) { - InteropHelp.TestIfAvailableClient(); - using (var pchDescription2 = new InteropHelp.UTF8StringHandle(pchDescription)) - using (var pchExistingText2 = new InteropHelp.UTF8StringHandle(pchExistingText)) { - return NativeMethods.ISteamUtils_ShowGamepadTextInput(eInputMode, eLineInputMode, pchDescription2, unCharMax, pchExistingText2); - } - } - - /// - /// Returns previously entered text & length - /// - public static uint GetEnteredGamepadTextLength() { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamUtils_GetEnteredGamepadTextLength(); - } - - public static bool GetEnteredGamepadTextInput(out string pchText, uint cchText) { - InteropHelp.TestIfAvailableClient(); - IntPtr pchText2 = Marshal.AllocHGlobal((int)cchText); - bool ret = NativeMethods.ISteamUtils_GetEnteredGamepadTextInput(pchText2, cchText); - pchText = ret ? InteropHelp.PtrToStringUTF8(pchText2) : null; - Marshal.FreeHGlobal(pchText2); - return ret; - } - - /// - /// returns the language the steam client is running in, you probably want ISteamApps::GetCurrentGameLanguage instead, this is for very special usage cases - /// - public static string GetSteamUILanguage() { - InteropHelp.TestIfAvailableClient(); - return InteropHelp.PtrToStringUTF8(NativeMethods.ISteamUtils_GetSteamUILanguage()); - } - - /// - /// returns true if Steam itself is running in VR mode - /// - public static bool IsSteamRunningInVR() { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamUtils_IsSteamRunningInVR(); - } - - /// - /// Sets the inset of the overlay notification from the corner specified by SetOverlayNotificationPosition. - /// - public static void SetOverlayNotificationInset(int nHorizontalInset, int nVerticalInset) { - InteropHelp.TestIfAvailableClient(); - NativeMethods.ISteamUtils_SetOverlayNotificationInset(nHorizontalInset, nVerticalInset); - } - } -} \ No newline at end of file diff --git a/Assets/Plugins/Steamworks.NET/autogen/isteamutils.cs.meta b/Assets/Plugins/Steamworks.NET/autogen/isteamutils.cs.meta deleted file mode 100644 index 9fa2ea6..0000000 --- a/Assets/Plugins/Steamworks.NET/autogen/isteamutils.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 002e0b83e3eab1f4dbdfad840de78ab7 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/Plugins/Steamworks.NET/autogen/isteamvideo.cs b/Assets/Plugins/Steamworks.NET/autogen/isteamvideo.cs deleted file mode 100644 index 6213da7..0000000 --- a/Assets/Plugins/Steamworks.NET/autogen/isteamvideo.cs +++ /dev/null @@ -1,29 +0,0 @@ -// This file is provided under The MIT License as part of Steamworks.NET. -// Copyright (c) 2013-2015 Riley Labrecque -// Please see the included LICENSE.txt for additional information. - -// This file is automatically generated. -// Changes to this file will be reverted when you update Steamworks.NET - -using System; -using System.Runtime.InteropServices; - -namespace Steamworks { - public static class SteamVideo { - /// - /// Get a URL suitable for streaming the given Video app ID's video - /// - public static void GetVideoURL(AppId_t unVideoAppID) { - InteropHelp.TestIfAvailableClient(); - NativeMethods.ISteamVideo_GetVideoURL(unVideoAppID); - } - - /// - /// returns true if user is uploading a live broadcast - /// - public static bool IsBroadcasting(out int pnNumViewers) { - InteropHelp.TestIfAvailableClient(); - return NativeMethods.ISteamVideo_IsBroadcasting(out pnNumViewers); - } - } -} \ No newline at end of file diff --git a/Assets/Plugins/Steamworks.NET/autogen/isteamvideo.cs.meta b/Assets/Plugins/Steamworks.NET/autogen/isteamvideo.cs.meta deleted file mode 100644 index 3f3bdec..0000000 --- a/Assets/Plugins/Steamworks.NET/autogen/isteamvideo.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 7d48e6f02e6055a48aa8cf58e0b75449 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/Plugins/Steamworks.NET/redist.meta b/Assets/Plugins/Steamworks.NET/redist.meta deleted file mode 100644 index 6083007..0000000 --- a/Assets/Plugins/Steamworks.NET/redist.meta +++ /dev/null @@ -1,5 +0,0 @@ -fileFormatVersion: 2 -guid: 75cc63220e801b74991c9ef6b92a9473 -folderAsset: yes -DefaultImporter: - userData: diff --git a/Assets/Plugins/Steamworks.NET/redist/steam_appid.txt b/Assets/Plugins/Steamworks.NET/redist/steam_appid.txt deleted file mode 100644 index 7ad8022..0000000 --- a/Assets/Plugins/Steamworks.NET/redist/steam_appid.txt +++ /dev/null @@ -1 +0,0 @@ -480 \ No newline at end of file diff --git a/Assets/Plugins/Steamworks.NET/redist/steam_appid.txt.meta b/Assets/Plugins/Steamworks.NET/redist/steam_appid.txt.meta deleted file mode 100644 index 1e501eb..0000000 --- a/Assets/Plugins/Steamworks.NET/redist/steam_appid.txt.meta +++ /dev/null @@ -1,4 +0,0 @@ -fileFormatVersion: 2 -guid: 49fd5f872055cef42bfc00efeae22015 -TextScriptImporter: - userData: diff --git a/Assets/Plugins/Steamworks.NET/types.meta b/Assets/Plugins/Steamworks.NET/types.meta deleted file mode 100644 index ad67041..0000000 --- a/Assets/Plugins/Steamworks.NET/types.meta +++ /dev/null @@ -1,5 +0,0 @@ -fileFormatVersion: 2 -guid: 37d2ac509e375284da1d34ea8cce8faa -folderAsset: yes -DefaultImporter: - userData: diff --git a/Assets/Plugins/Steamworks.NET/types/MatchmakingTypes.meta b/Assets/Plugins/Steamworks.NET/types/MatchmakingTypes.meta deleted file mode 100644 index 1087c4b..0000000 --- a/Assets/Plugins/Steamworks.NET/types/MatchmakingTypes.meta +++ /dev/null @@ -1,5 +0,0 @@ -fileFormatVersion: 2 -guid: 76c3eb8e8951a994d9e10b5bab3b5a57 -folderAsset: yes -DefaultImporter: - userData: diff --git a/Assets/Plugins/Steamworks.NET/types/MatchmakingTypes/gameserveritem_t.cs b/Assets/Plugins/Steamworks.NET/types/MatchmakingTypes/gameserveritem_t.cs deleted file mode 100644 index d8ddcf4..0000000 --- a/Assets/Plugins/Steamworks.NET/types/MatchmakingTypes/gameserveritem_t.cs +++ /dev/null @@ -1,94 +0,0 @@ -// This file is provided under The MIT License as part of Steamworks.NET. -// Copyright (c) 2013-2015 Riley Labrecque -// Please see the included LICENSE.txt for additional information. - -// Changes to this file will be reverted when you update Steamworks.NET - -using System.Runtime.InteropServices; -using System.Text; - -namespace Steamworks { - //----------------------------------------------------------------------------- - // Purpose: Data describing a single server - //----------------------------------------------------------------------------- - [StructLayout(LayoutKind.Sequential, Size = 372, Pack = 4)] - public class gameserveritem_t { - public string GetGameDir() { - return Encoding.UTF8.GetString(m_szGameDir, 0, System.Array.IndexOf(m_szGameDir, 0)); - } - - public void SetGameDir(string dir) { - m_szGameDir = Encoding.UTF8.GetBytes(dir + '\0'); - } - - public string GetMap() { - return Encoding.UTF8.GetString(m_szMap, 0, System.Array.IndexOf(m_szMap, 0)); - } - - public void SetMap(string map) { - m_szMap = Encoding.UTF8.GetBytes(map + '\0'); - } - - public string GetGameDescription() { - return Encoding.UTF8.GetString(m_szGameDescription, 0, System.Array.IndexOf(m_szGameDescription, 0)); - } - - public void SetGameDescription(string desc) { - m_szGameDescription = Encoding.UTF8.GetBytes(desc + '\0'); - } - - public string GetServerName() { - // Use the IP address as the name if nothing is set yet. - if (m_szServerName[0] == 0) - return m_NetAdr.GetConnectionAddressString(); - else - return Encoding.UTF8.GetString(m_szServerName, 0, System.Array.IndexOf(m_szServerName, 0)); - } - - public void SetServerName(string name) { - m_szServerName = Encoding.UTF8.GetBytes(name + '\0'); - } - - public string GetGameTags() { - return Encoding.UTF8.GetString(m_szGameTags, 0, System.Array.IndexOf(m_szGameTags, 0)); - } - - public void SetGameTags(string tags) { - m_szGameTags = Encoding.UTF8.GetBytes(tags + '\0'); - } - - public servernetadr_t m_NetAdr; ///< IP/Query Port/Connection Port for this server - public int m_nPing; ///< current ping time in milliseconds - [MarshalAs(UnmanagedType.I1)] - public bool m_bHadSuccessfulResponse; ///< server has responded successfully in the past - [MarshalAs(UnmanagedType.I1)] - public bool m_bDoNotRefresh; ///< server is marked as not responding and should no longer be refreshed - [MarshalAs(UnmanagedType.ByValArray, SizeConst = Constants.k_cbMaxGameServerGameDir)] - private byte[] m_szGameDir; ///< current game directory - [MarshalAs(UnmanagedType.ByValArray, SizeConst = Constants.k_cbMaxGameServerMapName)] - private byte[] m_szMap; ///< current map - [MarshalAs(UnmanagedType.ByValArray, SizeConst = Constants.k_cbMaxGameServerGameDescription)] - private byte[] m_szGameDescription; ///< game description - public uint m_nAppID; ///< Steam App ID of this server - public int m_nPlayers; ///< total number of players currently on the server. INCLUDES BOTS!! - public int m_nMaxPlayers; ///< Maximum players that can join this server - public int m_nBotPlayers; ///< Number of bots (i.e simulated players) on this server - [MarshalAs(UnmanagedType.I1)] - public bool m_bPassword; ///< true if this server needs a password to join - [MarshalAs(UnmanagedType.I1)] - public bool m_bSecure; ///< Is this server protected by VAC - public uint m_ulTimeLastPlayed; ///< time (in unix time) when this server was last played on (for favorite/history servers) - public int m_nServerVersion; ///< server version as reported to Steam - - // Game server name - [MarshalAs(UnmanagedType.ByValArray, SizeConst = Constants.k_cbMaxGameServerName)] - private byte[] m_szServerName; - - // the tags this server exposes - [MarshalAs(UnmanagedType.ByValArray, SizeConst = Constants.k_cbMaxGameServerTags)] - private byte[] m_szGameTags; - - // steamID of the game server - invalid if it's doesn't have one (old server, or not connected to Steam) - public CSteamID m_steamID; - } -} diff --git a/Assets/Plugins/Steamworks.NET/types/MatchmakingTypes/gameserveritem_t.cs.meta b/Assets/Plugins/Steamworks.NET/types/MatchmakingTypes/gameserveritem_t.cs.meta deleted file mode 100644 index 2c3a1ec..0000000 --- a/Assets/Plugins/Steamworks.NET/types/MatchmakingTypes/gameserveritem_t.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: b30bb27544428ca4fb0eab8a9acf9cc8 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/Plugins/Steamworks.NET/types/MatchmakingTypes/servernetadr_t.cs b/Assets/Plugins/Steamworks.NET/types/MatchmakingTypes/servernetadr_t.cs deleted file mode 100644 index 22750cc..0000000 --- a/Assets/Plugins/Steamworks.NET/types/MatchmakingTypes/servernetadr_t.cs +++ /dev/null @@ -1,104 +0,0 @@ -// This file is provided under The MIT License as part of Steamworks.NET. -// Copyright (c) 2013-2015 Riley Labrecque -// Please see the included LICENSE.txt for additional information. - -// Changes to this file will be reverted when you update Steamworks.NET - -namespace Steamworks { - // servernetadr_t is all the addressing info the serverbrowser needs to know about a game server, - // namely: its IP, its connection port, and its query port. - //[StructLayout(LayoutKind.Sequential)] - public struct servernetadr_t { - private ushort m_usConnectionPort; // (in HOST byte order) - private ushort m_usQueryPort; - private uint m_unIP; - - public void Init(uint ip, ushort usQueryPort, ushort usConnectionPort) { - m_unIP = ip; - m_usQueryPort = usQueryPort; - m_usConnectionPort = usConnectionPort; - } - -#if NETADR_H - public netadr_t GetIPAndQueryPort() { - return netadr_t( m_unIP, m_usQueryPort ); - } -#endif - - // Access the query port. - public ushort GetQueryPort() { - return m_usQueryPort; - } - - public void SetQueryPort(ushort usPort) { - m_usQueryPort = usPort; - } - - // Access the connection port. - public ushort GetConnectionPort() { - return m_usConnectionPort; - } - - public void SetConnectionPort(ushort usPort) { - m_usConnectionPort = usPort; - } - - // Access the IP - public uint GetIP() { - return m_unIP; - } - - public void SetIP(uint unIP) { - m_unIP = unIP; - } - - // This gets the 'a.b.c.d:port' string with the connection port (instead of the query port). - public string GetConnectionAddressString() { - return ToString(m_unIP, m_usConnectionPort); - } - - public string GetQueryAddressString() { - return ToString(m_unIP, m_usQueryPort); - } - - public static string ToString(uint unIP, ushort usPort) { -#if VALVE_BIG_ENDIAN - return string.Format("{0}.{1}.{2}.{3}:{4}", unIP & 0xFFul, (unIP >> 8) & 0xFFul, (unIP >> 16) & 0xFFul, (unIP >> 24) & 0xFFul, usPort); -#else - return string.Format("{0}.{1}.{2}.{3}:{4}", (unIP >> 24) & 0xFFul, (unIP >> 16) & 0xFFul, (unIP >> 8) & 0xFFul, unIP & 0xFFul, usPort); -#endif - } - - public static bool operator <(servernetadr_t x, servernetadr_t y) { - return (x.m_unIP < y.m_unIP) || (x.m_unIP == y.m_unIP && x.m_usQueryPort < y.m_usQueryPort); - } - - public static bool operator >(servernetadr_t x, servernetadr_t y) { - return (x.m_unIP > y.m_unIP) || (x.m_unIP == y.m_unIP && x.m_usQueryPort > y.m_usQueryPort); - } - - public override bool Equals(object other) { - return other is servernetadr_t && this == (servernetadr_t)other; - } - - public override int GetHashCode() { - return m_unIP.GetHashCode() + m_usQueryPort.GetHashCode() + m_usConnectionPort.GetHashCode(); - } - - public static bool operator ==(servernetadr_t x, servernetadr_t y) { - return (x.m_unIP == y.m_unIP) && (x.m_usQueryPort == y.m_usQueryPort) && (x.m_usConnectionPort == y.m_usConnectionPort); - } - - public static bool operator !=(servernetadr_t x, servernetadr_t y) { - return !(x == y); - } - - public bool Equals(servernetadr_t other) { - return (m_unIP == other.m_unIP) && (m_usQueryPort == other.m_usQueryPort) && (m_usConnectionPort == other.m_usConnectionPort); - } - - public int CompareTo(servernetadr_t other) { - return m_unIP.CompareTo(other.m_unIP) + m_usQueryPort.CompareTo(other.m_usQueryPort) + m_usConnectionPort.CompareTo(other.m_usConnectionPort); - } - } -} diff --git a/Assets/Plugins/Steamworks.NET/types/MatchmakingTypes/servernetadr_t.cs.meta b/Assets/Plugins/Steamworks.NET/types/MatchmakingTypes/servernetadr_t.cs.meta deleted file mode 100644 index 181c8ad..0000000 --- a/Assets/Plugins/Steamworks.NET/types/MatchmakingTypes/servernetadr_t.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 15332a231acb43948842abbf8bb4b2ef -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/Plugins/Steamworks.NET/types/SteamClient.meta b/Assets/Plugins/Steamworks.NET/types/SteamClient.meta deleted file mode 100644 index a52a1e9..0000000 --- a/Assets/Plugins/Steamworks.NET/types/SteamClient.meta +++ /dev/null @@ -1,5 +0,0 @@ -fileFormatVersion: 2 -guid: 386d59c2a5704e6428e987cfdfcc45a2 -folderAsset: yes -DefaultImporter: - userData: diff --git a/Assets/Plugins/Steamworks.NET/types/SteamClient/HSteamPipe.cs b/Assets/Plugins/Steamworks.NET/types/SteamClient/HSteamPipe.cs deleted file mode 100644 index e2086b0..0000000 --- a/Assets/Plugins/Steamworks.NET/types/SteamClient/HSteamPipe.cs +++ /dev/null @@ -1,51 +0,0 @@ -// This file is provided under The MIT License as part of Steamworks.NET. -// Copyright (c) 2013-2015 Riley Labrecque -// Please see the included LICENSE.txt for additional information. - -// Changes to this file will be reverted when you update Steamworks.NET - -namespace Steamworks { - public struct HSteamPipe : System.IEquatable, System.IComparable { - public int m_HSteamPipe; - - public HSteamPipe(int value) { - m_HSteamPipe = value; - } - - public override string ToString() { - return m_HSteamPipe.ToString(); - } - - public override bool Equals(object other) { - return other is HSteamPipe && this == (HSteamPipe)other; - } - - public override int GetHashCode() { - return m_HSteamPipe.GetHashCode(); - } - - public static bool operator ==(HSteamPipe x, HSteamPipe y) { - return x.m_HSteamPipe == y.m_HSteamPipe; - } - - public static bool operator !=(HSteamPipe x, HSteamPipe y) { - return !(x == y); - } - - public static explicit operator HSteamPipe(int value) { - return new HSteamPipe(value); - } - - public static explicit operator int(HSteamPipe that) { - return that.m_HSteamPipe; - } - - public bool Equals(HSteamPipe other) { - return m_HSteamPipe == other.m_HSteamPipe; - } - - public int CompareTo(HSteamPipe other) { - return m_HSteamPipe.CompareTo(other.m_HSteamPipe); - } - } -} diff --git a/Assets/Plugins/Steamworks.NET/types/SteamClient/HSteamPipe.cs.meta b/Assets/Plugins/Steamworks.NET/types/SteamClient/HSteamPipe.cs.meta deleted file mode 100644 index 276f839..0000000 --- a/Assets/Plugins/Steamworks.NET/types/SteamClient/HSteamPipe.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 75c03671f60997d489d3df45a581d55d -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/Plugins/Steamworks.NET/types/SteamClient/HSteamUser.cs b/Assets/Plugins/Steamworks.NET/types/SteamClient/HSteamUser.cs deleted file mode 100644 index da30a35..0000000 --- a/Assets/Plugins/Steamworks.NET/types/SteamClient/HSteamUser.cs +++ /dev/null @@ -1,51 +0,0 @@ -// This file is provided under The MIT License as part of Steamworks.NET. -// Copyright (c) 2013-2015 Riley Labrecque -// Please see the included LICENSE.txt for additional information. - -// Changes to this file will be reverted when you update Steamworks.NET - -namespace Steamworks { - public struct HSteamUser : System.IEquatable, System.IComparable { - public int m_HSteamUser; - - public HSteamUser(int value) { - m_HSteamUser = value; - } - - public override string ToString() { - return m_HSteamUser.ToString(); - } - - public override bool Equals(object other) { - return other is HSteamUser && this == (HSteamUser)other; - } - - public override int GetHashCode() { - return m_HSteamUser.GetHashCode(); - } - - public static bool operator ==(HSteamUser x, HSteamUser y) { - return x.m_HSteamUser == y.m_HSteamUser; - } - - public static bool operator !=(HSteamUser x, HSteamUser y) { - return !(x == y); - } - - public static explicit operator HSteamUser(int value) { - return new HSteamUser(value); - } - - public static explicit operator int(HSteamUser that) { - return that.m_HSteamUser; - } - - public bool Equals(HSteamUser other) { - return m_HSteamUser == other.m_HSteamUser; - } - - public int CompareTo(HSteamUser other) { - return m_HSteamUser.CompareTo(other.m_HSteamUser); - } - } -} diff --git a/Assets/Plugins/Steamworks.NET/types/SteamClient/HSteamUser.cs.meta b/Assets/Plugins/Steamworks.NET/types/SteamClient/HSteamUser.cs.meta deleted file mode 100644 index 0bcb11b..0000000 --- a/Assets/Plugins/Steamworks.NET/types/SteamClient/HSteamUser.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 63a71901f4608d4429dfcd82880ea995 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/Plugins/Steamworks.NET/types/SteamClient/SteamAPIWarningMessageHook_t.cs b/Assets/Plugins/Steamworks.NET/types/SteamClient/SteamAPIWarningMessageHook_t.cs deleted file mode 100644 index 0eec6a8..0000000 --- a/Assets/Plugins/Steamworks.NET/types/SteamClient/SteamAPIWarningMessageHook_t.cs +++ /dev/null @@ -1,10 +0,0 @@ -// This file is provided under The MIT License as part of Steamworks.NET. -// Copyright (c) 2013-2015 Riley Labrecque -// Please see the included LICENSE.txt for additional information. - -// Changes to this file will be reverted when you update Steamworks.NET - -namespace Steamworks { - [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.Cdecl)] - public delegate void SteamAPIWarningMessageHook_t(int nSeverity, System.Text.StringBuilder pchDebugText); -} diff --git a/Assets/Plugins/Steamworks.NET/types/SteamClient/SteamAPIWarningMessageHook_t.cs.meta b/Assets/Plugins/Steamworks.NET/types/SteamClient/SteamAPIWarningMessageHook_t.cs.meta deleted file mode 100644 index 09c7ae1..0000000 --- a/Assets/Plugins/Steamworks.NET/types/SteamClient/SteamAPIWarningMessageHook_t.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 0a82e6a4b70ec954aaf1ee0d23b75fc0 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/Plugins/Steamworks.NET/types/SteamClient/SteamAPI_CheckCallbackRegistered_t.cs b/Assets/Plugins/Steamworks.NET/types/SteamClient/SteamAPI_CheckCallbackRegistered_t.cs deleted file mode 100644 index 95e23be..0000000 --- a/Assets/Plugins/Steamworks.NET/types/SteamClient/SteamAPI_CheckCallbackRegistered_t.cs +++ /dev/null @@ -1,10 +0,0 @@ -// This file is provided under The MIT License as part of Steamworks.NET. -// Copyright (c) 2013-2015 Riley Labrecque -// Please see the included LICENSE.txt for additional information. - -// Changes to this file will be reverted when you update Steamworks.NET - -namespace Steamworks { - [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)] // TODO: This is probably wrong, will likely crash on some platform. - public delegate void SteamAPI_CheckCallbackRegistered_t(int iCallbackNum); -} diff --git a/Assets/Plugins/Steamworks.NET/types/SteamClient/SteamAPI_CheckCallbackRegistered_t.cs.meta b/Assets/Plugins/Steamworks.NET/types/SteamClient/SteamAPI_CheckCallbackRegistered_t.cs.meta deleted file mode 100644 index 07c26a9..0000000 --- a/Assets/Plugins/Steamworks.NET/types/SteamClient/SteamAPI_CheckCallbackRegistered_t.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 861bc5356efdea24da10dfb866c8fe13 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/Plugins/Steamworks.NET/types/SteamClient/SteamAPI_PostAPIResultInProcess_t.cs b/Assets/Plugins/Steamworks.NET/types/SteamClient/SteamAPI_PostAPIResultInProcess_t.cs deleted file mode 100644 index 39e6f97..0000000 --- a/Assets/Plugins/Steamworks.NET/types/SteamClient/SteamAPI_PostAPIResultInProcess_t.cs +++ /dev/null @@ -1,10 +0,0 @@ -// This file is provided under The MIT License as part of Steamworks.NET. -// Copyright (c) 2013-2015 Riley Labrecque -// Please see the included LICENSE.txt for additional information. - -// Changes to this file will be reverted when you update Steamworks.NET - -namespace Steamworks { - [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)] // TODO: This is probably wrong, will likely crash on some platform. - public delegate void SteamAPI_PostAPIResultInProcess_t(SteamAPICall_t callHandle, System.IntPtr pUnknown, uint unCallbackSize, int iCallbackNum); -} diff --git a/Assets/Plugins/Steamworks.NET/types/SteamClient/SteamAPI_PostAPIResultInProcess_t.cs.meta b/Assets/Plugins/Steamworks.NET/types/SteamClient/SteamAPI_PostAPIResultInProcess_t.cs.meta deleted file mode 100644 index c740874..0000000 --- a/Assets/Plugins/Steamworks.NET/types/SteamClient/SteamAPI_PostAPIResultInProcess_t.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: dc50858bc6ac8994c9036af9f78ac28b -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/Plugins/Steamworks.NET/types/SteamClientPublic.meta b/Assets/Plugins/Steamworks.NET/types/SteamClientPublic.meta deleted file mode 100644 index e805a51..0000000 --- a/Assets/Plugins/Steamworks.NET/types/SteamClientPublic.meta +++ /dev/null @@ -1,5 +0,0 @@ -fileFormatVersion: 2 -guid: eb29d0ce1169f98448400065ec5d821c -folderAsset: yes -DefaultImporter: - userData: diff --git a/Assets/Plugins/Steamworks.NET/types/SteamClientPublic/CGameID.cs b/Assets/Plugins/Steamworks.NET/types/SteamClientPublic/CGameID.cs deleted file mode 100644 index 83ff29c..0000000 --- a/Assets/Plugins/Steamworks.NET/types/SteamClientPublic/CGameID.cs +++ /dev/null @@ -1,141 +0,0 @@ -// This file is provided under The MIT License as part of Steamworks.NET. -// Copyright (c) 2013-2015 Riley Labrecque -// Please see the included LICENSE.txt for additional information. - -// Changes to this file will be reverted when you update Steamworks.NET - -namespace Steamworks { - public struct CGameID : System.IEquatable, System.IComparable { - public ulong m_GameID; - - public enum EGameIDType { - k_EGameIDTypeApp = 0, - k_EGameIDTypeGameMod = 1, - k_EGameIDTypeShortcut = 2, - k_EGameIDTypeP2P = 3, - }; - - public CGameID(ulong GameID) { - m_GameID = GameID; - } - - public CGameID(AppId_t nAppID) { - m_GameID = 0; - SetAppID(nAppID); - } - - public CGameID(AppId_t nAppID, uint nModID) { - m_GameID = 0; - SetAppID(nAppID); - SetType(EGameIDType.k_EGameIDTypeGameMod); - SetModID(nModID); - } - - public bool IsSteamApp() { - return Type() == EGameIDType.k_EGameIDTypeApp; - } - - public bool IsMod() { - return Type() == EGameIDType.k_EGameIDTypeGameMod; - } - - public bool IsShortcut() { - return Type() == EGameIDType.k_EGameIDTypeShortcut; - } - - public bool IsP2PFile() { - return Type() == EGameIDType.k_EGameIDTypeP2P; - } - - public AppId_t AppID() { - return new AppId_t((uint)(m_GameID & 0xFFFFFFul)); - } - - public EGameIDType Type() { - return (EGameIDType)((m_GameID >> 24) & 0xFFul); - } - - public uint ModID() { - return (uint)((m_GameID >> 32) & 0xFFFFFFFFul); - } - - public bool IsValid() { - // Each type has it's own invalid fixed point: - switch (Type()) { - case EGameIDType.k_EGameIDTypeApp: - return AppID() != AppId_t.Invalid; - - case EGameIDType.k_EGameIDTypeGameMod: - return AppID() != AppId_t.Invalid && (ModID() & 0x80000000) != 0; - - case EGameIDType.k_EGameIDTypeShortcut: - return (ModID() & 0x80000000) != 0; - - case EGameIDType.k_EGameIDTypeP2P: - return AppID() == AppId_t.Invalid && (ModID() & 0x80000000) != 0; - - default: - return false; - } - } - - public void Reset() { - m_GameID = 0; - } - - public void Set(ulong GameID) { - m_GameID = GameID; - } - - #region Private Setters for internal use - private void SetAppID(AppId_t other) { - m_GameID = (m_GameID & ~(0xFFFFFFul << (ushort)0)) | (((ulong)(other) & 0xFFFFFFul) << (ushort)0); - } - - private void SetType(EGameIDType other) { - m_GameID = (m_GameID & ~(0xFFul << (ushort)24)) | (((ulong)(other) & 0xFFul) << (ushort)24); - } - - private void SetModID(uint other) { - m_GameID = (m_GameID & ~(0xFFFFFFFFul << (ushort)32)) | (((ulong)(other) & 0xFFFFFFFFul) << (ushort)32); - } - #endregion - - #region Overrides - public override string ToString() { - return m_GameID.ToString(); - } - - public override bool Equals(object other) { - return other is CGameID && this == (CGameID)other; - } - - public override int GetHashCode() { - return m_GameID.GetHashCode(); - } - - public static bool operator ==(CGameID x, CGameID y) { - return x.m_GameID == y.m_GameID; - } - - public static bool operator !=(CGameID x, CGameID y) { - return !(x == y); - } - - public static explicit operator CGameID(ulong value) { - return new CGameID(value); - } - public static explicit operator ulong(CGameID that) { - return that.m_GameID; - } - - public bool Equals(CGameID other) { - return m_GameID == other.m_GameID; - } - - public int CompareTo(CGameID other) { - return m_GameID.CompareTo(other.m_GameID); - } - #endregion - } -} diff --git a/Assets/Plugins/Steamworks.NET/types/SteamClientPublic/CGameID.cs.meta b/Assets/Plugins/Steamworks.NET/types/SteamClientPublic/CGameID.cs.meta deleted file mode 100644 index 485d26a..0000000 --- a/Assets/Plugins/Steamworks.NET/types/SteamClientPublic/CGameID.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: f3ca933b3a524bc4ba4850496840eb1a -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/Plugins/Steamworks.NET/types/SteamClientPublic/CSteamID.cs b/Assets/Plugins/Steamworks.NET/types/SteamClientPublic/CSteamID.cs deleted file mode 100644 index 5955e01..0000000 --- a/Assets/Plugins/Steamworks.NET/types/SteamClientPublic/CSteamID.cs +++ /dev/null @@ -1,265 +0,0 @@ -// This file is provided under The MIT License as part of Steamworks.NET. -// Copyright (c) 2013-2015 Riley Labrecque -// Please see the included LICENSE.txt for additional information. - -// Changes to this file will be reverted when you update Steamworks.NET - -namespace Steamworks { - public struct CSteamID : System.IEquatable, System.IComparable { - public static readonly CSteamID Nil = new CSteamID(); - public static readonly CSteamID OutofDateGS = new CSteamID(new AccountID_t(0), 0, EUniverse.k_EUniverseInvalid, EAccountType.k_EAccountTypeInvalid); - public static readonly CSteamID LanModeGS = new CSteamID(new AccountID_t(0), 0, EUniverse.k_EUniversePublic, EAccountType.k_EAccountTypeInvalid); - public static readonly CSteamID NotInitYetGS = new CSteamID(new AccountID_t(1), 0, EUniverse.k_EUniverseInvalid, EAccountType.k_EAccountTypeInvalid); - public static readonly CSteamID NonSteamGS = new CSteamID(new AccountID_t(2), 0, EUniverse.k_EUniverseInvalid, EAccountType.k_EAccountTypeInvalid); - public ulong m_SteamID; - - public CSteamID(AccountID_t unAccountID, EUniverse eUniverse, EAccountType eAccountType) { - m_SteamID = 0; - Set(unAccountID, eUniverse, eAccountType); - } - - public CSteamID(AccountID_t unAccountID, uint unAccountInstance, EUniverse eUniverse, EAccountType eAccountType) { - m_SteamID = 0; -#if _SERVER && Assert - Assert( ! ( ( EAccountType.k_EAccountTypeIndividual == eAccountType ) && ( unAccountInstance > k_unSteamUserWebInstance ) ) ); // enforce that for individual accounts, instance is always 1 -#endif // _SERVER - InstancedSet(unAccountID, unAccountInstance, eUniverse, eAccountType); - } - - public CSteamID(ulong ulSteamID) { - m_SteamID = ulSteamID; - } - - public void Set(AccountID_t unAccountID, EUniverse eUniverse, EAccountType eAccountType) { - SetAccountID(unAccountID); - SetEUniverse(eUniverse); - SetEAccountType(eAccountType); - - if (eAccountType == EAccountType.k_EAccountTypeClan || eAccountType == EAccountType.k_EAccountTypeGameServer) { - SetAccountInstance(0); - } - else { - // by default we pick the desktop instance - SetAccountInstance(Constants.k_unSteamUserDesktopInstance); - } - } - - public void InstancedSet(AccountID_t unAccountID, uint unInstance, EUniverse eUniverse, EAccountType eAccountType) { - SetAccountID(unAccountID); - SetEUniverse(eUniverse); - SetEAccountType(eAccountType); - SetAccountInstance(unInstance); - } - - public void Clear() { - m_SteamID = 0; - } - - public void CreateBlankAnonLogon(EUniverse eUniverse) { - SetAccountID(new AccountID_t(0)); - SetEUniverse(eUniverse); - SetEAccountType(EAccountType.k_EAccountTypeAnonGameServer); - SetAccountInstance(0); - } - - public void CreateBlankAnonUserLogon(EUniverse eUniverse) { - SetAccountID(new AccountID_t(0)); - SetEUniverse(eUniverse); - SetEAccountType(EAccountType.k_EAccountTypeAnonUser); - SetAccountInstance(0); - } - - //----------------------------------------------------------------------------- - // Purpose: Is this an anonymous game server login that will be filled in? - //----------------------------------------------------------------------------- - public bool BBlankAnonAccount() { - return GetAccountID() == new AccountID_t(0) && BAnonAccount() && GetUnAccountInstance() == 0; - } - - //----------------------------------------------------------------------------- - // Purpose: Is this a game server account id? (Either persistent or anonymous) - //----------------------------------------------------------------------------- - public bool BGameServerAccount() { - return GetEAccountType() == EAccountType.k_EAccountTypeGameServer || GetEAccountType() == EAccountType.k_EAccountTypeAnonGameServer; - } - - //----------------------------------------------------------------------------- - // Purpose: Is this a persistent (not anonymous) game server account id? - //----------------------------------------------------------------------------- - public bool BPersistentGameServerAccount() { - return GetEAccountType() == EAccountType.k_EAccountTypeGameServer; - } - - //----------------------------------------------------------------------------- - // Purpose: Is this an anonymous game server account id? - //----------------------------------------------------------------------------- - public bool BAnonGameServerAccount() { - return GetEAccountType() == EAccountType.k_EAccountTypeAnonGameServer; - } - - //----------------------------------------------------------------------------- - // Purpose: Is this a content server account id? - //----------------------------------------------------------------------------- - public bool BContentServerAccount() { - return GetEAccountType() == EAccountType.k_EAccountTypeContentServer; - } - - - //----------------------------------------------------------------------------- - // Purpose: Is this a clan account id? - //----------------------------------------------------------------------------- - public bool BClanAccount() { - return GetEAccountType() == EAccountType.k_EAccountTypeClan; - } - - - //----------------------------------------------------------------------------- - // Purpose: Is this a chat account id? - //----------------------------------------------------------------------------- - public bool BChatAccount() { - return GetEAccountType() == EAccountType.k_EAccountTypeChat; - } - - //----------------------------------------------------------------------------- - // Purpose: Is this a chat account id? - //----------------------------------------------------------------------------- - public bool IsLobby() { - return (GetEAccountType() == EAccountType.k_EAccountTypeChat) - && (GetUnAccountInstance() & (int)EChatSteamIDInstanceFlags.k_EChatInstanceFlagLobby) != 0; - } - - - //----------------------------------------------------------------------------- - // Purpose: Is this an individual user account id? - //----------------------------------------------------------------------------- - public bool BIndividualAccount() { - return GetEAccountType() == EAccountType.k_EAccountTypeIndividual || GetEAccountType() == EAccountType.k_EAccountTypeConsoleUser; - } - - - //----------------------------------------------------------------------------- - // Purpose: Is this an anonymous account? - //----------------------------------------------------------------------------- - public bool BAnonAccount() { - return GetEAccountType() == EAccountType.k_EAccountTypeAnonUser || GetEAccountType() == EAccountType.k_EAccountTypeAnonGameServer; - } - - //----------------------------------------------------------------------------- - // Purpose: Is this an anonymous user account? ( used to create an account or reset a password ) - //----------------------------------------------------------------------------- - public bool BAnonUserAccount() { - return GetEAccountType() == EAccountType.k_EAccountTypeAnonUser; - } - - //----------------------------------------------------------------------------- - // Purpose: Is this a faked up Steam ID for a PSN friend account? - //----------------------------------------------------------------------------- - public bool BConsoleUserAccount() { - return GetEAccountType() == EAccountType.k_EAccountTypeConsoleUser; - } - - public void SetAccountID(AccountID_t other) { - m_SteamID = (m_SteamID & ~(0xFFFFFFFFul << (ushort)0)) | (((ulong)(other) & 0xFFFFFFFFul) << (ushort)0); - } - - public void SetAccountInstance(uint other) { - m_SteamID = (m_SteamID & ~(0xFFFFFul << (ushort)32)) | (((ulong)(other) & 0xFFFFFul) << (ushort)32); - } - - // This is a non standard/custom function not found in C++ Steamworks - public void SetEAccountType(EAccountType other) { - m_SteamID = (m_SteamID & ~(0xFul << (ushort)52)) | (((ulong)(other) & 0xFul) << (ushort)52); - } - - public void SetEUniverse(EUniverse other) { - m_SteamID = (m_SteamID & ~(0xFFul << (ushort)56)) | (((ulong)(other) & 0xFFul) << (ushort)56); - } - - public void ClearIndividualInstance() { - if (BIndividualAccount()) - SetAccountInstance(0); - } - - public bool HasNoIndividualInstance() { - return BIndividualAccount() && (GetUnAccountInstance() == 0); - } - - public AccountID_t GetAccountID() { - return new AccountID_t((uint)(m_SteamID & 0xFFFFFFFFul)); - } - - public uint GetUnAccountInstance() { - return (uint)((m_SteamID >> 32) & 0xFFFFFul); - } - - public EAccountType GetEAccountType() { - return (EAccountType)((m_SteamID >> 52) & 0xFul); - } - - public EUniverse GetEUniverse() { - return (EUniverse)((m_SteamID >> 56) & 0xFFul); - } - - public bool IsValid() { - if (GetEAccountType() <= EAccountType.k_EAccountTypeInvalid || GetEAccountType() >= EAccountType.k_EAccountTypeMax) - return false; - - if (GetEUniverse() <= EUniverse.k_EUniverseInvalid || GetEUniverse() >= EUniverse.k_EUniverseMax) - return false; - - if (GetEAccountType() == EAccountType.k_EAccountTypeIndividual) { - if (GetAccountID() == new AccountID_t(0) || GetUnAccountInstance() > Constants.k_unSteamUserWebInstance) - return false; - } - - if (GetEAccountType() == EAccountType.k_EAccountTypeClan) { - if (GetAccountID() == new AccountID_t(0) || GetUnAccountInstance() != 0) - return false; - } - - if (GetEAccountType() == EAccountType.k_EAccountTypeGameServer) { - if (GetAccountID() == new AccountID_t(0)) - return false; - // Any limit on instances? We use them for local users and bots - } - return true; - } - - #region Overrides - public override string ToString() { - return m_SteamID.ToString(); - } - - public override bool Equals(object other) { - return other is CSteamID && this == (CSteamID)other; - } - - public override int GetHashCode() { - return m_SteamID.GetHashCode(); - } - - public static bool operator ==(CSteamID x, CSteamID y) { - return x.m_SteamID == y.m_SteamID; - } - - public static bool operator !=(CSteamID x, CSteamID y) { - return !(x == y); - } - - public static explicit operator CSteamID(ulong value) { - return new CSteamID(value); - } - public static explicit operator ulong(CSteamID that) { - return that.m_SteamID; - } - - public bool Equals(CSteamID other) { - return m_SteamID == other.m_SteamID; - } - - public int CompareTo(CSteamID other) { - return m_SteamID.CompareTo(other.m_SteamID); - } - #endregion - } -} diff --git a/Assets/Plugins/Steamworks.NET/types/SteamClientPublic/CSteamID.cs.meta b/Assets/Plugins/Steamworks.NET/types/SteamClientPublic/CSteamID.cs.meta deleted file mode 100644 index 40ccbd3..0000000 --- a/Assets/Plugins/Steamworks.NET/types/SteamClientPublic/CSteamID.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: cd1d6cfad7eb87f4f8c7d4ca3a7c5e3b -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/Plugins/Steamworks.NET/types/SteamClientPublic/HAuthTicket.cs b/Assets/Plugins/Steamworks.NET/types/SteamClientPublic/HAuthTicket.cs deleted file mode 100644 index 0a92e76..0000000 --- a/Assets/Plugins/Steamworks.NET/types/SteamClientPublic/HAuthTicket.cs +++ /dev/null @@ -1,52 +0,0 @@ -// This file is provided under The MIT License as part of Steamworks.NET. -// Copyright (c) 2013-2015 Riley Labrecque -// Please see the included LICENSE.txt for additional information. - -// Changes to this file will be reverted when you update Steamworks.NET - -namespace Steamworks { - public struct HAuthTicket : System.IEquatable, System.IComparable { - public static readonly HAuthTicket Invalid = new HAuthTicket(0); - public uint m_HAuthTicket; - - public HAuthTicket(uint value) { - m_HAuthTicket = value; - } - - public override string ToString() { - return m_HAuthTicket.ToString(); - } - - public override bool Equals(object other) { - return other is HAuthTicket && this == (HAuthTicket)other; - } - - public override int GetHashCode() { - return m_HAuthTicket.GetHashCode(); - } - - public static bool operator ==(HAuthTicket x, HAuthTicket y) { - return x.m_HAuthTicket == y.m_HAuthTicket; - } - - public static bool operator !=(HAuthTicket x, HAuthTicket y) { - return !(x == y); - } - - public static explicit operator HAuthTicket(uint value) { - return new HAuthTicket(value); - } - - public static explicit operator uint(HAuthTicket that) { - return that.m_HAuthTicket; - } - - public bool Equals(HAuthTicket other) { - return m_HAuthTicket == other.m_HAuthTicket; - } - - public int CompareTo(HAuthTicket other) { - return m_HAuthTicket.CompareTo(other.m_HAuthTicket); - } - } -} diff --git a/Assets/Plugins/Steamworks.NET/types/SteamClientPublic/HAuthTicket.cs.meta b/Assets/Plugins/Steamworks.NET/types/SteamClientPublic/HAuthTicket.cs.meta deleted file mode 100644 index 9d7c51d..0000000 --- a/Assets/Plugins/Steamworks.NET/types/SteamClientPublic/HAuthTicket.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 1685339e538bf2440b64091ad5b9afb0 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/Plugins/Steamworks.NET/types/SteamFriends.meta b/Assets/Plugins/Steamworks.NET/types/SteamFriends.meta deleted file mode 100644 index 6d04a5d..0000000 --- a/Assets/Plugins/Steamworks.NET/types/SteamFriends.meta +++ /dev/null @@ -1,5 +0,0 @@ -fileFormatVersion: 2 -guid: a31292044d4026e4786d57d10ab21681 -folderAsset: yes -DefaultImporter: - userData: diff --git a/Assets/Plugins/Steamworks.NET/types/SteamFriends/FriendsGroupID_t.cs b/Assets/Plugins/Steamworks.NET/types/SteamFriends/FriendsGroupID_t.cs deleted file mode 100644 index a34d5f7..0000000 --- a/Assets/Plugins/Steamworks.NET/types/SteamFriends/FriendsGroupID_t.cs +++ /dev/null @@ -1,52 +0,0 @@ -// This file is provided under The MIT License as part of Steamworks.NET. -// Copyright (c) 2013-2015 Riley Labrecque -// Please see the included LICENSE.txt for additional information. - -// Changes to this file will be reverted when you update Steamworks.NET - -namespace Steamworks { - public struct FriendsGroupID_t : System.IEquatable, System.IComparable { - public static readonly FriendsGroupID_t Invalid = new FriendsGroupID_t(-1); - public short m_FriendsGroupID; - - public FriendsGroupID_t(short value) { - m_FriendsGroupID = value; - } - - public override string ToString() { - return m_FriendsGroupID.ToString(); - } - - public override bool Equals(object other) { - return other is FriendsGroupID_t && this == (FriendsGroupID_t)other; - } - - public override int GetHashCode() { - return m_FriendsGroupID.GetHashCode(); - } - - public static bool operator ==(FriendsGroupID_t x, FriendsGroupID_t y) { - return x.m_FriendsGroupID == y.m_FriendsGroupID; - } - - public static bool operator !=(FriendsGroupID_t x, FriendsGroupID_t y) { - return !(x == y); - } - - public static explicit operator FriendsGroupID_t(short value) { - return new FriendsGroupID_t(value); - } - - public static explicit operator short(FriendsGroupID_t that) { - return that.m_FriendsGroupID; - } - - public bool Equals(FriendsGroupID_t other) { - return m_FriendsGroupID == other.m_FriendsGroupID; - } - - public int CompareTo(FriendsGroupID_t other) { - return m_FriendsGroupID.CompareTo(other.m_FriendsGroupID); - } - } -} diff --git a/Assets/Plugins/Steamworks.NET/types/SteamFriends/FriendsGroupID_t.cs.meta b/Assets/Plugins/Steamworks.NET/types/SteamFriends/FriendsGroupID_t.cs.meta deleted file mode 100644 index ac0e89a..0000000 --- a/Assets/Plugins/Steamworks.NET/types/SteamFriends/FriendsGroupID_t.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 200c2b61ed971664883218a605c3d968 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/Plugins/Steamworks.NET/types/SteamHTMLSurface.meta b/Assets/Plugins/Steamworks.NET/types/SteamHTMLSurface.meta deleted file mode 100644 index 3af4637..0000000 --- a/Assets/Plugins/Steamworks.NET/types/SteamHTMLSurface.meta +++ /dev/null @@ -1,5 +0,0 @@ -fileFormatVersion: 2 -guid: 27b9e0e0837d42442a8da8f377f87e49 -folderAsset: yes -DefaultImporter: - userData: diff --git a/Assets/Plugins/Steamworks.NET/types/SteamHTMLSurface/HHTMLBrowser.cs b/Assets/Plugins/Steamworks.NET/types/SteamHTMLSurface/HHTMLBrowser.cs deleted file mode 100644 index f155167..0000000 --- a/Assets/Plugins/Steamworks.NET/types/SteamHTMLSurface/HHTMLBrowser.cs +++ /dev/null @@ -1,52 +0,0 @@ -// This file is provided under The MIT License as part of Steamworks.NET. -// Copyright (c) 2013-2015 Riley Labrecque -// Please see the included LICENSE.txt for additional information. - -// Changes to this file will be reverted when you update Steamworks.NET - -namespace Steamworks { - public struct HHTMLBrowser : System.IEquatable, System.IComparable { - public static readonly HHTMLBrowser Invalid = new HHTMLBrowser(0); - public uint m_HHTMLBrowser; - - public HHTMLBrowser(uint value) { - m_HHTMLBrowser = value; - } - - public override string ToString() { - return m_HHTMLBrowser.ToString(); - } - - public override bool Equals(object other) { - return other is HHTMLBrowser && this == (HHTMLBrowser)other; - } - - public override int GetHashCode() { - return m_HHTMLBrowser.GetHashCode(); - } - - public static bool operator ==(HHTMLBrowser x, HHTMLBrowser y) { - return x.m_HHTMLBrowser == y.m_HHTMLBrowser; - } - - public static bool operator !=(HHTMLBrowser x, HHTMLBrowser y) { - return !(x == y); - } - - public static explicit operator HHTMLBrowser(uint value) { - return new HHTMLBrowser(value); - } - - public static explicit operator uint(HHTMLBrowser that) { - return that.m_HHTMLBrowser; - } - - public bool Equals(HHTMLBrowser other) { - return m_HHTMLBrowser == other.m_HHTMLBrowser; - } - - public int CompareTo(HHTMLBrowser other) { - return m_HHTMLBrowser.CompareTo(other.m_HHTMLBrowser); - } - } -} diff --git a/Assets/Plugins/Steamworks.NET/types/SteamHTMLSurface/HHTMLBrowser.cs.meta b/Assets/Plugins/Steamworks.NET/types/SteamHTMLSurface/HHTMLBrowser.cs.meta deleted file mode 100644 index f16175d..0000000 --- a/Assets/Plugins/Steamworks.NET/types/SteamHTMLSurface/HHTMLBrowser.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 3e1966511819cbf42994e387cbfca77e -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/Plugins/Steamworks.NET/types/SteamHTTP.meta b/Assets/Plugins/Steamworks.NET/types/SteamHTTP.meta deleted file mode 100644 index 565ea61..0000000 --- a/Assets/Plugins/Steamworks.NET/types/SteamHTTP.meta +++ /dev/null @@ -1,5 +0,0 @@ -fileFormatVersion: 2 -guid: c6d1173a80849d64cb27f6e3f7bdb738 -folderAsset: yes -DefaultImporter: - userData: diff --git a/Assets/Plugins/Steamworks.NET/types/SteamHTTP/HTTPCookieContainerHandle.cs b/Assets/Plugins/Steamworks.NET/types/SteamHTTP/HTTPCookieContainerHandle.cs deleted file mode 100644 index 9a8ccd2..0000000 --- a/Assets/Plugins/Steamworks.NET/types/SteamHTTP/HTTPCookieContainerHandle.cs +++ /dev/null @@ -1,52 +0,0 @@ -// This file is provided under The MIT License as part of Steamworks.NET. -// Copyright (c) 2013-2015 Riley Labrecque -// Please see the included LICENSE.txt for additional information. - -// Changes to this file will be reverted when you update Steamworks.NET - -namespace Steamworks { - public struct HTTPCookieContainerHandle : System.IEquatable, System.IComparable { - public static readonly HTTPCookieContainerHandle Invalid = new HTTPCookieContainerHandle(0); - public uint m_HTTPCookieContainerHandle; - - public HTTPCookieContainerHandle(uint value) { - m_HTTPCookieContainerHandle = value; - } - - public override string ToString() { - return m_HTTPCookieContainerHandle.ToString(); - } - - public override bool Equals(object other) { - return other is HTTPCookieContainerHandle && this == (HTTPCookieContainerHandle)other; - } - - public override int GetHashCode() { - return m_HTTPCookieContainerHandle.GetHashCode(); - } - - public static bool operator ==(HTTPCookieContainerHandle x, HTTPCookieContainerHandle y) { - return x.m_HTTPCookieContainerHandle == y.m_HTTPCookieContainerHandle; - } - - public static bool operator !=(HTTPCookieContainerHandle x, HTTPCookieContainerHandle y) { - return !(x == y); - } - - public static explicit operator HTTPCookieContainerHandle(uint value) { - return new HTTPCookieContainerHandle(value); - } - - public static explicit operator uint(HTTPCookieContainerHandle that) { - return that.m_HTTPCookieContainerHandle; - } - - public bool Equals(HTTPCookieContainerHandle other) { - return m_HTTPCookieContainerHandle == other.m_HTTPCookieContainerHandle; - } - - public int CompareTo(HTTPCookieContainerHandle other) { - return m_HTTPCookieContainerHandle.CompareTo(other.m_HTTPCookieContainerHandle); - } - } -} diff --git a/Assets/Plugins/Steamworks.NET/types/SteamHTTP/HTTPCookieContainerHandle.cs.meta b/Assets/Plugins/Steamworks.NET/types/SteamHTTP/HTTPCookieContainerHandle.cs.meta deleted file mode 100644 index d161045..0000000 --- a/Assets/Plugins/Steamworks.NET/types/SteamHTTP/HTTPCookieContainerHandle.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 58a562124a80bad4aa3d496bb5e3d7b9 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/Plugins/Steamworks.NET/types/SteamHTTP/HTTPRequestHandle.cs b/Assets/Plugins/Steamworks.NET/types/SteamHTTP/HTTPRequestHandle.cs deleted file mode 100644 index 1f23508..0000000 --- a/Assets/Plugins/Steamworks.NET/types/SteamHTTP/HTTPRequestHandle.cs +++ /dev/null @@ -1,52 +0,0 @@ -// This file is provided under The MIT License as part of Steamworks.NET. -// Copyright (c) 2013-2015 Riley Labrecque -// Please see the included LICENSE.txt for additional information. - -// Changes to this file will be reverted when you update Steamworks.NET - -namespace Steamworks { - public struct HTTPRequestHandle : System.IEquatable, System.IComparable { - public static readonly HTTPRequestHandle Invalid = new HTTPRequestHandle(0); - public uint m_HTTPRequestHandle; - - public HTTPRequestHandle(uint value) { - m_HTTPRequestHandle = value; - } - - public override string ToString() { - return m_HTTPRequestHandle.ToString(); - } - - public override bool Equals(object other) { - return other is HTTPRequestHandle && this == (HTTPRequestHandle)other; - } - - public override int GetHashCode() { - return m_HTTPRequestHandle.GetHashCode(); - } - - public static bool operator ==(HTTPRequestHandle x, HTTPRequestHandle y) { - return x.m_HTTPRequestHandle == y.m_HTTPRequestHandle; - } - - public static bool operator !=(HTTPRequestHandle x, HTTPRequestHandle y) { - return !(x == y); - } - - public static explicit operator HTTPRequestHandle(uint value) { - return new HTTPRequestHandle(value); - } - - public static explicit operator uint(HTTPRequestHandle that) { - return that.m_HTTPRequestHandle; - } - - public bool Equals(HTTPRequestHandle other) { - return m_HTTPRequestHandle == other.m_HTTPRequestHandle; - } - - public int CompareTo(HTTPRequestHandle other) { - return m_HTTPRequestHandle.CompareTo(other.m_HTTPRequestHandle); - } - } -} diff --git a/Assets/Plugins/Steamworks.NET/types/SteamHTTP/HTTPRequestHandle.cs.meta b/Assets/Plugins/Steamworks.NET/types/SteamHTTP/HTTPRequestHandle.cs.meta deleted file mode 100644 index 1bb62d0..0000000 --- a/Assets/Plugins/Steamworks.NET/types/SteamHTTP/HTTPRequestHandle.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: c9edd009723fb97438dd53013aff534c -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/Plugins/Steamworks.NET/types/SteamInventory.meta b/Assets/Plugins/Steamworks.NET/types/SteamInventory.meta deleted file mode 100644 index e339781..0000000 --- a/Assets/Plugins/Steamworks.NET/types/SteamInventory.meta +++ /dev/null @@ -1,5 +0,0 @@ -fileFormatVersion: 2 -guid: 6d18f58846cca594794c86bd498065d5 -folderAsset: yes -DefaultImporter: - userData: diff --git a/Assets/Plugins/Steamworks.NET/types/SteamInventory/SteamInventoryResult_t.cs b/Assets/Plugins/Steamworks.NET/types/SteamInventory/SteamInventoryResult_t.cs deleted file mode 100644 index 946a44f..0000000 --- a/Assets/Plugins/Steamworks.NET/types/SteamInventory/SteamInventoryResult_t.cs +++ /dev/null @@ -1,52 +0,0 @@ -// This file is provided under The MIT License as part of Steamworks.NET. -// Copyright (c) 2013-2015 Riley Labrecque -// Please see the included LICENSE.txt for additional information. - -// Changes to this file will be reverted when you update Steamworks.NET - -namespace Steamworks { - public struct SteamInventoryResult_t : System.IEquatable, System.IComparable { - public static readonly SteamInventoryResult_t Invalid = new SteamInventoryResult_t(-1); - public int m_SteamInventoryResult; - - public SteamInventoryResult_t(int value) { - m_SteamInventoryResult = value; - } - - public override string ToString() { - return m_SteamInventoryResult.ToString(); - } - - public override bool Equals(object other) { - return other is SteamInventoryResult_t && this == (SteamInventoryResult_t)other; - } - - public override int GetHashCode() { - return m_SteamInventoryResult.GetHashCode(); - } - - public static bool operator ==(SteamInventoryResult_t x, SteamInventoryResult_t y) { - return x.m_SteamInventoryResult == y.m_SteamInventoryResult; - } - - public static bool operator !=(SteamInventoryResult_t x, SteamInventoryResult_t y) { - return !(x == y); - } - - public static explicit operator SteamInventoryResult_t(int value) { - return new SteamInventoryResult_t(value); - } - - public static explicit operator int(SteamInventoryResult_t that) { - return that.m_SteamInventoryResult; - } - - public bool Equals(SteamInventoryResult_t other) { - return m_SteamInventoryResult == other.m_SteamInventoryResult; - } - - public int CompareTo(SteamInventoryResult_t other) { - return m_SteamInventoryResult.CompareTo(other.m_SteamInventoryResult); - } - } -} diff --git a/Assets/Plugins/Steamworks.NET/types/SteamInventory/SteamInventoryResult_t.cs.meta b/Assets/Plugins/Steamworks.NET/types/SteamInventory/SteamInventoryResult_t.cs.meta deleted file mode 100644 index c119ed5..0000000 --- a/Assets/Plugins/Steamworks.NET/types/SteamInventory/SteamInventoryResult_t.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 73ac96bbfbe7a7f45aa90848c7575523 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/Plugins/Steamworks.NET/types/SteamInventory/SteamItemDef_t.cs b/Assets/Plugins/Steamworks.NET/types/SteamInventory/SteamItemDef_t.cs deleted file mode 100644 index 15ca489..0000000 --- a/Assets/Plugins/Steamworks.NET/types/SteamInventory/SteamItemDef_t.cs +++ /dev/null @@ -1,51 +0,0 @@ -// This file is provided under The MIT License as part of Steamworks.NET. -// Copyright (c) 2013-2015 Riley Labrecque -// Please see the included LICENSE.txt for additional information. - -// Changes to this file will be reverted when you update Steamworks.NET - -namespace Steamworks { - public struct SteamItemDef_t : System.IEquatable, System.IComparable { - public int m_SteamItemDef; - - public SteamItemDef_t(int value) { - m_SteamItemDef = value; - } - - public override string ToString() { - return m_SteamItemDef.ToString(); - } - - public override bool Equals(object other) { - return other is SteamItemDef_t && this == (SteamItemDef_t)other; - } - - public override int GetHashCode() { - return m_SteamItemDef.GetHashCode(); - } - - public static bool operator ==(SteamItemDef_t x, SteamItemDef_t y) { - return x.m_SteamItemDef == y.m_SteamItemDef; - } - - public static bool operator !=(SteamItemDef_t x, SteamItemDef_t y) { - return !(x == y); - } - - public static explicit operator SteamItemDef_t(int value) { - return new SteamItemDef_t(value); - } - - public static explicit operator int(SteamItemDef_t that) { - return that.m_SteamItemDef; - } - - public bool Equals(SteamItemDef_t other) { - return m_SteamItemDef == other.m_SteamItemDef; - } - - public int CompareTo(SteamItemDef_t other) { - return m_SteamItemDef.CompareTo(other.m_SteamItemDef); - } - } -} diff --git a/Assets/Plugins/Steamworks.NET/types/SteamInventory/SteamItemDef_t.cs.meta b/Assets/Plugins/Steamworks.NET/types/SteamInventory/SteamItemDef_t.cs.meta deleted file mode 100644 index 73e6a58..0000000 --- a/Assets/Plugins/Steamworks.NET/types/SteamInventory/SteamItemDef_t.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 6f99d4f5557e12745ae5073ff02c166a -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/Plugins/Steamworks.NET/types/SteamInventory/SteamItemInstanceID_t.cs b/Assets/Plugins/Steamworks.NET/types/SteamInventory/SteamItemInstanceID_t.cs deleted file mode 100644 index fa7dfa2..0000000 --- a/Assets/Plugins/Steamworks.NET/types/SteamInventory/SteamItemInstanceID_t.cs +++ /dev/null @@ -1,52 +0,0 @@ -// This file is provided under The MIT License as part of Steamworks.NET. -// Copyright (c) 2013-2015 Riley Labrecque -// Please see the included LICENSE.txt for additional information. - -// Changes to this file will be reverted when you update Steamworks.NET - -namespace Steamworks { - public struct SteamItemInstanceID_t : System.IEquatable, System.IComparable { - public static readonly SteamItemInstanceID_t Invalid = new SteamItemInstanceID_t(0xFFFFFFFFFFFFFFFF); - public ulong m_SteamItemInstanceID; - - public SteamItemInstanceID_t(ulong value) { - m_SteamItemInstanceID = value; - } - - public override string ToString() { - return m_SteamItemInstanceID.ToString(); - } - - public override bool Equals(object other) { - return other is SteamItemInstanceID_t && this == (SteamItemInstanceID_t)other; - } - - public override int GetHashCode() { - return m_SteamItemInstanceID.GetHashCode(); - } - - public static bool operator ==(SteamItemInstanceID_t x, SteamItemInstanceID_t y) { - return x.m_SteamItemInstanceID == y.m_SteamItemInstanceID; - } - - public static bool operator !=(SteamItemInstanceID_t x, SteamItemInstanceID_t y) { - return !(x == y); - } - - public static explicit operator SteamItemInstanceID_t(ulong value) { - return new SteamItemInstanceID_t(value); - } - - public static explicit operator ulong(SteamItemInstanceID_t that) { - return that.m_SteamItemInstanceID; - } - - public bool Equals(SteamItemInstanceID_t other) { - return m_SteamItemInstanceID == other.m_SteamItemInstanceID; - } - - public int CompareTo(SteamItemInstanceID_t other) { - return m_SteamItemInstanceID.CompareTo(other.m_SteamItemInstanceID); - } - } -} diff --git a/Assets/Plugins/Steamworks.NET/types/SteamInventory/SteamItemInstanceID_t.cs.meta b/Assets/Plugins/Steamworks.NET/types/SteamInventory/SteamItemInstanceID_t.cs.meta deleted file mode 100644 index fe26b59..0000000 --- a/Assets/Plugins/Steamworks.NET/types/SteamInventory/SteamItemInstanceID_t.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 571600bf2753f4d4080237b34824f61a -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/Plugins/Steamworks.NET/types/SteamMatchmaking.meta b/Assets/Plugins/Steamworks.NET/types/SteamMatchmaking.meta deleted file mode 100644 index 05b7e92..0000000 --- a/Assets/Plugins/Steamworks.NET/types/SteamMatchmaking.meta +++ /dev/null @@ -1,5 +0,0 @@ -fileFormatVersion: 2 -guid: 62367fb8e3369c34aa74c8b01c9e5a06 -folderAsset: yes -DefaultImporter: - userData: diff --git a/Assets/Plugins/Steamworks.NET/types/SteamMatchmaking/HServerListRequest.cs b/Assets/Plugins/Steamworks.NET/types/SteamMatchmaking/HServerListRequest.cs deleted file mode 100644 index 1c507bb..0000000 --- a/Assets/Plugins/Steamworks.NET/types/SteamMatchmaking/HServerListRequest.cs +++ /dev/null @@ -1,48 +0,0 @@ -// This file is provided under The MIT License as part of Steamworks.NET. -// Copyright (c) 2013-2015 Riley Labrecque -// Please see the included LICENSE.txt for additional information. - -// Changes to this file will be reverted when you update Steamworks.NET - -namespace Steamworks { - public struct HServerListRequest : System.IEquatable { - public static readonly HServerListRequest Invalid = new HServerListRequest(System.IntPtr.Zero); - public System.IntPtr m_HServerListRequest; - - public HServerListRequest(System.IntPtr value) { - m_HServerListRequest = value; - } - - public override string ToString() { - return m_HServerListRequest.ToString(); - } - - public override bool Equals(object other) { - return other is HServerListRequest && this == (HServerListRequest)other; - } - - public override int GetHashCode() { - return m_HServerListRequest.GetHashCode(); - } - - public static bool operator ==(HServerListRequest x, HServerListRequest y) { - return x.m_HServerListRequest == y.m_HServerListRequest; - } - - public static bool operator !=(HServerListRequest x, HServerListRequest y) { - return !(x == y); - } - - public static explicit operator HServerListRequest(System.IntPtr value) { - return new HServerListRequest(value); - } - - public static explicit operator System.IntPtr(HServerListRequest that) { - return that.m_HServerListRequest; - } - - public bool Equals(HServerListRequest other) { - return m_HServerListRequest == other.m_HServerListRequest; - } - } -} diff --git a/Assets/Plugins/Steamworks.NET/types/SteamMatchmaking/HServerListRequest.cs.meta b/Assets/Plugins/Steamworks.NET/types/SteamMatchmaking/HServerListRequest.cs.meta deleted file mode 100644 index c161272..0000000 --- a/Assets/Plugins/Steamworks.NET/types/SteamMatchmaking/HServerListRequest.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 98e250075b5a85747b6d035f33607ef6 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/Plugins/Steamworks.NET/types/SteamMatchmaking/HServerQuery.cs b/Assets/Plugins/Steamworks.NET/types/SteamMatchmaking/HServerQuery.cs deleted file mode 100644 index 000d4b6..0000000 --- a/Assets/Plugins/Steamworks.NET/types/SteamMatchmaking/HServerQuery.cs +++ /dev/null @@ -1,52 +0,0 @@ -// This file is provided under The MIT License as part of Steamworks.NET. -// Copyright (c) 2013-2015 Riley Labrecque -// Please see the included LICENSE.txt for additional information. - -// Changes to this file will be reverted when you update Steamworks.NET - -namespace Steamworks { - public struct HServerQuery : System.IEquatable, System.IComparable { - public static readonly HServerQuery Invalid = new HServerQuery(-1); - public int m_HServerQuery; - - public HServerQuery(int value) { - m_HServerQuery = value; - } - - public override string ToString() { - return m_HServerQuery.ToString(); - } - - public override bool Equals(object other) { - return other is HServerQuery && this == (HServerQuery)other; - } - - public override int GetHashCode() { - return m_HServerQuery.GetHashCode(); - } - - public static bool operator ==(HServerQuery x, HServerQuery y) { - return x.m_HServerQuery == y.m_HServerQuery; - } - - public static bool operator !=(HServerQuery x, HServerQuery y) { - return !(x == y); - } - - public static explicit operator HServerQuery(int value) { - return new HServerQuery(value); - } - - public static explicit operator int(HServerQuery that) { - return that.m_HServerQuery; - } - - public bool Equals(HServerQuery other) { - return m_HServerQuery == other.m_HServerQuery; - } - - public int CompareTo(HServerQuery other) { - return m_HServerQuery.CompareTo(other.m_HServerQuery); - } - } -} diff --git a/Assets/Plugins/Steamworks.NET/types/SteamMatchmaking/HServerQuery.cs.meta b/Assets/Plugins/Steamworks.NET/types/SteamMatchmaking/HServerQuery.cs.meta deleted file mode 100644 index 2e23844..0000000 --- a/Assets/Plugins/Steamworks.NET/types/SteamMatchmaking/HServerQuery.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 8829612b3228614468043b2d29a4ee1d -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/Plugins/Steamworks.NET/types/SteamNetworking.meta b/Assets/Plugins/Steamworks.NET/types/SteamNetworking.meta deleted file mode 100644 index 8b5c326..0000000 --- a/Assets/Plugins/Steamworks.NET/types/SteamNetworking.meta +++ /dev/null @@ -1,5 +0,0 @@ -fileFormatVersion: 2 -guid: c2d6c3999f924a84284176a81ef507a3 -folderAsset: yes -DefaultImporter: - userData: diff --git a/Assets/Plugins/Steamworks.NET/types/SteamNetworking/SNetListenSocket_t.cs b/Assets/Plugins/Steamworks.NET/types/SteamNetworking/SNetListenSocket_t.cs deleted file mode 100644 index c671873..0000000 --- a/Assets/Plugins/Steamworks.NET/types/SteamNetworking/SNetListenSocket_t.cs +++ /dev/null @@ -1,51 +0,0 @@ -// This file is provided under The MIT License as part of Steamworks.NET. -// Copyright (c) 2013-2015 Riley Labrecque -// Please see the included LICENSE.txt for additional information. - -// Changes to this file will be reverted when you update Steamworks.NET - -namespace Steamworks { - public struct SNetListenSocket_t : System.IEquatable, System.IComparable { - public uint m_SNetListenSocket; - - public SNetListenSocket_t(uint value) { - m_SNetListenSocket = value; - } - - public override string ToString() { - return m_SNetListenSocket.ToString(); - } - - public override bool Equals(object other) { - return other is SNetListenSocket_t && this == (SNetListenSocket_t)other; - } - - public override int GetHashCode() { - return m_SNetListenSocket.GetHashCode(); - } - - public static bool operator ==(SNetListenSocket_t x, SNetListenSocket_t y) { - return x.m_SNetListenSocket == y.m_SNetListenSocket; - } - - public static bool operator !=(SNetListenSocket_t x, SNetListenSocket_t y) { - return !(x == y); - } - - public static explicit operator SNetListenSocket_t(uint value) { - return new SNetListenSocket_t(value); - } - - public static explicit operator uint(SNetListenSocket_t that) { - return that.m_SNetListenSocket; - } - - public bool Equals(SNetListenSocket_t other) { - return m_SNetListenSocket == other.m_SNetListenSocket; - } - - public int CompareTo(SNetListenSocket_t other) { - return m_SNetListenSocket.CompareTo(other.m_SNetListenSocket); - } - } -} diff --git a/Assets/Plugins/Steamworks.NET/types/SteamNetworking/SNetListenSocket_t.cs.meta b/Assets/Plugins/Steamworks.NET/types/SteamNetworking/SNetListenSocket_t.cs.meta deleted file mode 100644 index e158595..0000000 --- a/Assets/Plugins/Steamworks.NET/types/SteamNetworking/SNetListenSocket_t.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: f0606b21fdf0b06429dfd9c0398f1f36 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/Plugins/Steamworks.NET/types/SteamNetworking/SNetSocket_t.cs b/Assets/Plugins/Steamworks.NET/types/SteamNetworking/SNetSocket_t.cs deleted file mode 100644 index 983f4a1..0000000 --- a/Assets/Plugins/Steamworks.NET/types/SteamNetworking/SNetSocket_t.cs +++ /dev/null @@ -1,51 +0,0 @@ -// This file is provided under The MIT License as part of Steamworks.NET. -// Copyright (c) 2013-2015 Riley Labrecque -// Please see the included LICENSE.txt for additional information. - -// Changes to this file will be reverted when you update Steamworks.NET - -namespace Steamworks { - public struct SNetSocket_t : System.IEquatable, System.IComparable { - public uint m_SNetSocket; - - public SNetSocket_t(uint value) { - m_SNetSocket = value; - } - - public override string ToString() { - return m_SNetSocket.ToString(); - } - - public override bool Equals(object other) { - return other is SNetSocket_t && this == (SNetSocket_t)other; - } - - public override int GetHashCode() { - return m_SNetSocket.GetHashCode(); - } - - public static bool operator ==(SNetSocket_t x, SNetSocket_t y) { - return x.m_SNetSocket == y.m_SNetSocket; - } - - public static bool operator !=(SNetSocket_t x, SNetSocket_t y) { - return !(x == y); - } - - public static explicit operator SNetSocket_t(uint value) { - return new SNetSocket_t(value); - } - - public static explicit operator uint(SNetSocket_t that) { - return that.m_SNetSocket; - } - - public bool Equals(SNetSocket_t other) { - return m_SNetSocket == other.m_SNetSocket; - } - - public int CompareTo(SNetSocket_t other) { - return m_SNetSocket.CompareTo(other.m_SNetSocket); - } - } -} diff --git a/Assets/Plugins/Steamworks.NET/types/SteamNetworking/SNetSocket_t.cs.meta b/Assets/Plugins/Steamworks.NET/types/SteamNetworking/SNetSocket_t.cs.meta deleted file mode 100644 index fd0bfd7..0000000 --- a/Assets/Plugins/Steamworks.NET/types/SteamNetworking/SNetSocket_t.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: aa25fe75de3b6954aa77a7bbfe080ab8 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/Plugins/Steamworks.NET/types/SteamRemoteStorage.meta b/Assets/Plugins/Steamworks.NET/types/SteamRemoteStorage.meta deleted file mode 100644 index 9bbe047..0000000 --- a/Assets/Plugins/Steamworks.NET/types/SteamRemoteStorage.meta +++ /dev/null @@ -1,5 +0,0 @@ -fileFormatVersion: 2 -guid: b741e45a9d4a4ff4491587109c7a1ab3 -folderAsset: yes -DefaultImporter: - userData: diff --git a/Assets/Plugins/Steamworks.NET/types/SteamRemoteStorage/PublishedFileId_t.cs b/Assets/Plugins/Steamworks.NET/types/SteamRemoteStorage/PublishedFileId_t.cs deleted file mode 100644 index e8efa69..0000000 --- a/Assets/Plugins/Steamworks.NET/types/SteamRemoteStorage/PublishedFileId_t.cs +++ /dev/null @@ -1,52 +0,0 @@ -// This file is provided under The MIT License as part of Steamworks.NET. -// Copyright (c) 2013-2015 Riley Labrecque -// Please see the included LICENSE.txt for additional information. - -// Changes to this file will be reverted when you update Steamworks.NET - -namespace Steamworks { - public struct PublishedFileId_t : System.IEquatable, System.IComparable { - public static readonly PublishedFileId_t Invalid = new PublishedFileId_t(0); - public ulong m_PublishedFileId; - - public PublishedFileId_t(ulong value) { - m_PublishedFileId = value; - } - - public override string ToString() { - return m_PublishedFileId.ToString(); - } - - public override bool Equals(object other) { - return other is PublishedFileId_t && this == (PublishedFileId_t)other; - } - - public override int GetHashCode() { - return m_PublishedFileId.GetHashCode(); - } - - public static bool operator ==(PublishedFileId_t x, PublishedFileId_t y) { - return x.m_PublishedFileId == y.m_PublishedFileId; - } - - public static bool operator !=(PublishedFileId_t x, PublishedFileId_t y) { - return !(x == y); - } - - public static explicit operator PublishedFileId_t(ulong value) { - return new PublishedFileId_t(value); - } - - public static explicit operator ulong(PublishedFileId_t that) { - return that.m_PublishedFileId; - } - - public bool Equals(PublishedFileId_t other) { - return m_PublishedFileId == other.m_PublishedFileId; - } - - public int CompareTo(PublishedFileId_t other) { - return m_PublishedFileId.CompareTo(other.m_PublishedFileId); - } - } -} diff --git a/Assets/Plugins/Steamworks.NET/types/SteamRemoteStorage/PublishedFileId_t.cs.meta b/Assets/Plugins/Steamworks.NET/types/SteamRemoteStorage/PublishedFileId_t.cs.meta deleted file mode 100644 index 186dc60..0000000 --- a/Assets/Plugins/Steamworks.NET/types/SteamRemoteStorage/PublishedFileId_t.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 0778bb1050c34c5499664d3a3bc3a1d9 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/Plugins/Steamworks.NET/types/SteamRemoteStorage/PublishedFileUpdateHandle_t.cs b/Assets/Plugins/Steamworks.NET/types/SteamRemoteStorage/PublishedFileUpdateHandle_t.cs deleted file mode 100644 index 02ed1de..0000000 --- a/Assets/Plugins/Steamworks.NET/types/SteamRemoteStorage/PublishedFileUpdateHandle_t.cs +++ /dev/null @@ -1,52 +0,0 @@ -// This file is provided under The MIT License as part of Steamworks.NET. -// Copyright (c) 2013-2015 Riley Labrecque -// Please see the included LICENSE.txt for additional information. - -// Changes to this file will be reverted when you update Steamworks.NET - -namespace Steamworks { - public struct PublishedFileUpdateHandle_t : System.IEquatable, System.IComparable { - public static readonly PublishedFileUpdateHandle_t Invalid = new PublishedFileUpdateHandle_t(0xffffffffffffffff); - public ulong m_PublishedFileUpdateHandle; - - public PublishedFileUpdateHandle_t(ulong value) { - m_PublishedFileUpdateHandle = value; - } - - public override string ToString() { - return m_PublishedFileUpdateHandle.ToString(); - } - - public override bool Equals(object other) { - return other is PublishedFileUpdateHandle_t && this == (PublishedFileUpdateHandle_t)other; - } - - public override int GetHashCode() { - return m_PublishedFileUpdateHandle.GetHashCode(); - } - - public static bool operator ==(PublishedFileUpdateHandle_t x, PublishedFileUpdateHandle_t y) { - return x.m_PublishedFileUpdateHandle == y.m_PublishedFileUpdateHandle; - } - - public static bool operator !=(PublishedFileUpdateHandle_t x, PublishedFileUpdateHandle_t y) { - return !(x == y); - } - - public static explicit operator PublishedFileUpdateHandle_t(ulong value) { - return new PublishedFileUpdateHandle_t(value); - } - - public static explicit operator ulong(PublishedFileUpdateHandle_t that) { - return that.m_PublishedFileUpdateHandle; - } - - public bool Equals(PublishedFileUpdateHandle_t other) { - return m_PublishedFileUpdateHandle == other.m_PublishedFileUpdateHandle; - } - - public int CompareTo(PublishedFileUpdateHandle_t other) { - return m_PublishedFileUpdateHandle.CompareTo(other.m_PublishedFileUpdateHandle); - } - } -} diff --git a/Assets/Plugins/Steamworks.NET/types/SteamRemoteStorage/PublishedFileUpdateHandle_t.cs.meta b/Assets/Plugins/Steamworks.NET/types/SteamRemoteStorage/PublishedFileUpdateHandle_t.cs.meta deleted file mode 100644 index 396dd6e..0000000 --- a/Assets/Plugins/Steamworks.NET/types/SteamRemoteStorage/PublishedFileUpdateHandle_t.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 1c8610a536f27df40aeb40848ea46dbe -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/Plugins/Steamworks.NET/types/SteamRemoteStorage/UGCFileWriteStreamHandle_t.cs b/Assets/Plugins/Steamworks.NET/types/SteamRemoteStorage/UGCFileWriteStreamHandle_t.cs deleted file mode 100644 index d575f3f..0000000 --- a/Assets/Plugins/Steamworks.NET/types/SteamRemoteStorage/UGCFileWriteStreamHandle_t.cs +++ /dev/null @@ -1,52 +0,0 @@ -// This file is provided under The MIT License as part of Steamworks.NET. -// Copyright (c) 2013-2015 Riley Labrecque -// Please see the included LICENSE.txt for additional information. - -// Changes to this file will be reverted when you update Steamworks.NET - -namespace Steamworks { - public struct UGCFileWriteStreamHandle_t : System.IEquatable, System.IComparable { - public static readonly UGCFileWriteStreamHandle_t Invalid = new UGCFileWriteStreamHandle_t(0xffffffffffffffff); - public ulong m_UGCFileWriteStreamHandle; - - public UGCFileWriteStreamHandle_t(ulong value) { - m_UGCFileWriteStreamHandle = value; - } - - public override string ToString() { - return m_UGCFileWriteStreamHandle.ToString(); - } - - public override bool Equals(object other) { - return other is UGCFileWriteStreamHandle_t && this == (UGCFileWriteStreamHandle_t)other; - } - - public override int GetHashCode() { - return m_UGCFileWriteStreamHandle.GetHashCode(); - } - - public static bool operator ==(UGCFileWriteStreamHandle_t x, UGCFileWriteStreamHandle_t y) { - return x.m_UGCFileWriteStreamHandle == y.m_UGCFileWriteStreamHandle; - } - - public static bool operator !=(UGCFileWriteStreamHandle_t x, UGCFileWriteStreamHandle_t y) { - return !(x == y); - } - - public static explicit operator UGCFileWriteStreamHandle_t(ulong value) { - return new UGCFileWriteStreamHandle_t(value); - } - - public static explicit operator ulong(UGCFileWriteStreamHandle_t that) { - return that.m_UGCFileWriteStreamHandle; - } - - public bool Equals(UGCFileWriteStreamHandle_t other) { - return m_UGCFileWriteStreamHandle == other.m_UGCFileWriteStreamHandle; - } - - public int CompareTo(UGCFileWriteStreamHandle_t other) { - return m_UGCFileWriteStreamHandle.CompareTo(other.m_UGCFileWriteStreamHandle); - } - } -} diff --git a/Assets/Plugins/Steamworks.NET/types/SteamRemoteStorage/UGCFileWriteStreamHandle_t.cs.meta b/Assets/Plugins/Steamworks.NET/types/SteamRemoteStorage/UGCFileWriteStreamHandle_t.cs.meta deleted file mode 100644 index d355c90..0000000 --- a/Assets/Plugins/Steamworks.NET/types/SteamRemoteStorage/UGCFileWriteStreamHandle_t.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 9de8902ac5c5e9243b150e58b5d8e397 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/Plugins/Steamworks.NET/types/SteamRemoteStorage/UGCHandle_t.cs b/Assets/Plugins/Steamworks.NET/types/SteamRemoteStorage/UGCHandle_t.cs deleted file mode 100644 index 85902a5..0000000 --- a/Assets/Plugins/Steamworks.NET/types/SteamRemoteStorage/UGCHandle_t.cs +++ /dev/null @@ -1,52 +0,0 @@ -// This file is provided under The MIT License as part of Steamworks.NET. -// Copyright (c) 2013-2015 Riley Labrecque -// Please see the included LICENSE.txt for additional information. - -// Changes to this file will be reverted when you update Steamworks.NET - -namespace Steamworks { - public struct UGCHandle_t : System.IEquatable, System.IComparable { - public static readonly UGCHandle_t Invalid = new UGCHandle_t(0xffffffffffffffff); - public ulong m_UGCHandle; - - public UGCHandle_t(ulong value) { - m_UGCHandle = value; - } - - public override string ToString() { - return m_UGCHandle.ToString(); - } - - public override bool Equals(object other) { - return other is UGCHandle_t && this == (UGCHandle_t)other; - } - - public override int GetHashCode() { - return m_UGCHandle.GetHashCode(); - } - - public static bool operator ==(UGCHandle_t x, UGCHandle_t y) { - return x.m_UGCHandle == y.m_UGCHandle; - } - - public static bool operator !=(UGCHandle_t x, UGCHandle_t y) { - return !(x == y); - } - - public static explicit operator UGCHandle_t(ulong value) { - return new UGCHandle_t(value); - } - - public static explicit operator ulong(UGCHandle_t that) { - return that.m_UGCHandle; - } - - public bool Equals(UGCHandle_t other) { - return m_UGCHandle == other.m_UGCHandle; - } - - public int CompareTo(UGCHandle_t other) { - return m_UGCHandle.CompareTo(other.m_UGCHandle); - } - } -} diff --git a/Assets/Plugins/Steamworks.NET/types/SteamRemoteStorage/UGCHandle_t.cs.meta b/Assets/Plugins/Steamworks.NET/types/SteamRemoteStorage/UGCHandle_t.cs.meta deleted file mode 100644 index ad48b22..0000000 --- a/Assets/Plugins/Steamworks.NET/types/SteamRemoteStorage/UGCHandle_t.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 76b66d73b31662b4d92989591168c4d6 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/Plugins/Steamworks.NET/types/SteamScreenshots.meta b/Assets/Plugins/Steamworks.NET/types/SteamScreenshots.meta deleted file mode 100644 index 5e8f9c5..0000000 --- a/Assets/Plugins/Steamworks.NET/types/SteamScreenshots.meta +++ /dev/null @@ -1,5 +0,0 @@ -fileFormatVersion: 2 -guid: 4470a4c9462ad904c90af5a4fc3e7a9c -folderAsset: yes -DefaultImporter: - userData: diff --git a/Assets/Plugins/Steamworks.NET/types/SteamScreenshots/ScreenshotHandle.cs b/Assets/Plugins/Steamworks.NET/types/SteamScreenshots/ScreenshotHandle.cs deleted file mode 100644 index acb07a9..0000000 --- a/Assets/Plugins/Steamworks.NET/types/SteamScreenshots/ScreenshotHandle.cs +++ /dev/null @@ -1,52 +0,0 @@ -// This file is provided under The MIT License as part of Steamworks.NET. -// Copyright (c) 2013-2015 Riley Labrecque -// Please see the included LICENSE.txt for additional information. - -// Changes to this file will be reverted when you update Steamworks.NET - -namespace Steamworks { - public struct ScreenshotHandle : System.IEquatable, System.IComparable { - public static readonly ScreenshotHandle Invalid = new ScreenshotHandle(0); - public uint m_ScreenshotHandle; - - public ScreenshotHandle(uint value) { - m_ScreenshotHandle = value; - } - - public override string ToString() { - return m_ScreenshotHandle.ToString(); - } - - public override bool Equals(object other) { - return other is ScreenshotHandle && this == (ScreenshotHandle)other; - } - - public override int GetHashCode() { - return m_ScreenshotHandle.GetHashCode(); - } - - public static bool operator ==(ScreenshotHandle x, ScreenshotHandle y) { - return x.m_ScreenshotHandle == y.m_ScreenshotHandle; - } - - public static bool operator !=(ScreenshotHandle x, ScreenshotHandle y) { - return !(x == y); - } - - public static explicit operator ScreenshotHandle(uint value) { - return new ScreenshotHandle(value); - } - - public static explicit operator uint(ScreenshotHandle that) { - return that.m_ScreenshotHandle; - } - - public bool Equals(ScreenshotHandle other) { - return m_ScreenshotHandle == other.m_ScreenshotHandle; - } - - public int CompareTo(ScreenshotHandle other) { - return m_ScreenshotHandle.CompareTo(other.m_ScreenshotHandle); - } - } -} diff --git a/Assets/Plugins/Steamworks.NET/types/SteamScreenshots/ScreenshotHandle.cs.meta b/Assets/Plugins/Steamworks.NET/types/SteamScreenshots/ScreenshotHandle.cs.meta deleted file mode 100644 index e13ab13..0000000 --- a/Assets/Plugins/Steamworks.NET/types/SteamScreenshots/ScreenshotHandle.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 1e963a0db85f8364fb9c5136b40e1693 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/Plugins/Steamworks.NET/types/SteamTypes.meta b/Assets/Plugins/Steamworks.NET/types/SteamTypes.meta deleted file mode 100644 index 20938a2..0000000 --- a/Assets/Plugins/Steamworks.NET/types/SteamTypes.meta +++ /dev/null @@ -1,5 +0,0 @@ -fileFormatVersion: 2 -guid: 6fb77e488efdd554795f2bfcafadc51f -folderAsset: yes -DefaultImporter: - userData: diff --git a/Assets/Plugins/Steamworks.NET/types/SteamTypes/AccountID_t.cs b/Assets/Plugins/Steamworks.NET/types/SteamTypes/AccountID_t.cs deleted file mode 100644 index 729e2bb..0000000 --- a/Assets/Plugins/Steamworks.NET/types/SteamTypes/AccountID_t.cs +++ /dev/null @@ -1,51 +0,0 @@ -// This file is provided under The MIT License as part of Steamworks.NET. -// Copyright (c) 2013-2015 Riley Labrecque -// Please see the included LICENSE.txt for additional information. - -// Changes to this file will be reverted when you update Steamworks.NET - -namespace Steamworks { - public struct AccountID_t : System.IEquatable, System.IComparable { - public uint m_AccountID; - - public AccountID_t(uint value) { - m_AccountID = value; - } - - public override string ToString() { - return m_AccountID.ToString(); - } - - public override bool Equals(object other) { - return other is AccountID_t && this == (AccountID_t)other; - } - - public override int GetHashCode() { - return m_AccountID.GetHashCode(); - } - - public static bool operator ==(AccountID_t x, AccountID_t y) { - return x.m_AccountID == y.m_AccountID; - } - - public static bool operator !=(AccountID_t x, AccountID_t y) { - return !(x == y); - } - - public static explicit operator AccountID_t(uint value) { - return new AccountID_t(value); - } - - public static explicit operator uint(AccountID_t that) { - return that.m_AccountID; - } - - public bool Equals(AccountID_t other) { - return m_AccountID == other.m_AccountID; - } - - public int CompareTo(AccountID_t other) { - return m_AccountID.CompareTo(other.m_AccountID); - } - } -} diff --git a/Assets/Plugins/Steamworks.NET/types/SteamTypes/AccountID_t.cs.meta b/Assets/Plugins/Steamworks.NET/types/SteamTypes/AccountID_t.cs.meta deleted file mode 100644 index ecd338b..0000000 --- a/Assets/Plugins/Steamworks.NET/types/SteamTypes/AccountID_t.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 4b164be70eff468448af827f31060fbf -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/Plugins/Steamworks.NET/types/SteamTypes/AppId_t.cs b/Assets/Plugins/Steamworks.NET/types/SteamTypes/AppId_t.cs deleted file mode 100644 index 14df33b..0000000 --- a/Assets/Plugins/Steamworks.NET/types/SteamTypes/AppId_t.cs +++ /dev/null @@ -1,52 +0,0 @@ -// This file is provided under The MIT License as part of Steamworks.NET. -// Copyright (c) 2013-2015 Riley Labrecque -// Please see the included LICENSE.txt for additional information. - -// Changes to this file will be reverted when you update Steamworks.NET - -namespace Steamworks { - public struct AppId_t : System.IEquatable, System.IComparable { - public static readonly AppId_t Invalid = new AppId_t(0x0); - public uint m_AppId; - - public AppId_t(uint value) { - m_AppId = value; - } - - public override string ToString() { - return m_AppId.ToString(); - } - - public override bool Equals(object other) { - return other is AppId_t && this == (AppId_t)other; - } - - public override int GetHashCode() { - return m_AppId.GetHashCode(); - } - - public static bool operator ==(AppId_t x, AppId_t y) { - return x.m_AppId == y.m_AppId; - } - - public static bool operator !=(AppId_t x, AppId_t y) { - return !(x == y); - } - - public static explicit operator AppId_t(uint value) { - return new AppId_t(value); - } - - public static explicit operator uint(AppId_t that) { - return that.m_AppId; - } - - public bool Equals(AppId_t other) { - return m_AppId == other.m_AppId; - } - - public int CompareTo(AppId_t other) { - return m_AppId.CompareTo(other.m_AppId); - } - } -} diff --git a/Assets/Plugins/Steamworks.NET/types/SteamTypes/AppId_t.cs.meta b/Assets/Plugins/Steamworks.NET/types/SteamTypes/AppId_t.cs.meta deleted file mode 100644 index 457eba3..0000000 --- a/Assets/Plugins/Steamworks.NET/types/SteamTypes/AppId_t.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 9ec36edf9bcadae4795a546ce6adba87 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/Plugins/Steamworks.NET/types/SteamTypes/DepotId_t.cs b/Assets/Plugins/Steamworks.NET/types/SteamTypes/DepotId_t.cs deleted file mode 100644 index 6e22cee..0000000 --- a/Assets/Plugins/Steamworks.NET/types/SteamTypes/DepotId_t.cs +++ /dev/null @@ -1,52 +0,0 @@ -// This file is provided under The MIT License as part of Steamworks.NET. -// Copyright (c) 2013-2015 Riley Labrecque -// Please see the included LICENSE.txt for additional information. - -// Changes to this file will be reverted when you update Steamworks.NET - -namespace Steamworks { - public struct DepotId_t : System.IEquatable, System.IComparable { - public static readonly DepotId_t Invalid = new DepotId_t(0x0); - public uint m_DepotId; - - public DepotId_t(uint value) { - m_DepotId = value; - } - - public override string ToString() { - return m_DepotId.ToString(); - } - - public override bool Equals(object other) { - return other is DepotId_t && this == (DepotId_t)other; - } - - public override int GetHashCode() { - return m_DepotId.GetHashCode(); - } - - public static bool operator ==(DepotId_t x, DepotId_t y) { - return x.m_DepotId == y.m_DepotId; - } - - public static bool operator !=(DepotId_t x, DepotId_t y) { - return !(x == y); - } - - public static explicit operator DepotId_t(uint value) { - return new DepotId_t(value); - } - - public static explicit operator uint(DepotId_t that) { - return that.m_DepotId; - } - - public bool Equals(DepotId_t other) { - return m_DepotId == other.m_DepotId; - } - - public int CompareTo(DepotId_t other) { - return m_DepotId.CompareTo(other.m_DepotId); - } - } -} diff --git a/Assets/Plugins/Steamworks.NET/types/SteamTypes/DepotId_t.cs.meta b/Assets/Plugins/Steamworks.NET/types/SteamTypes/DepotId_t.cs.meta deleted file mode 100644 index 529d86b..0000000 --- a/Assets/Plugins/Steamworks.NET/types/SteamTypes/DepotId_t.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 8ad39d6e31d8fea45b52c216fb922f78 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/Plugins/Steamworks.NET/types/SteamTypes/ManifestId_t.cs b/Assets/Plugins/Steamworks.NET/types/SteamTypes/ManifestId_t.cs deleted file mode 100644 index d94ccc1..0000000 --- a/Assets/Plugins/Steamworks.NET/types/SteamTypes/ManifestId_t.cs +++ /dev/null @@ -1,52 +0,0 @@ -// This file is provided under The MIT License as part of Steamworks.NET. -// Copyright (c) 2013-2015 Riley Labrecque -// Please see the included LICENSE.txt for additional information. - -// Changes to this file will be reverted when you update Steamworks.NET - -namespace Steamworks { - public struct ManifestId_t : System.IEquatable, System.IComparable { - public static readonly ManifestId_t Invalid = new ManifestId_t(0x0); - public ulong m_ManifestId; - - public ManifestId_t(ulong value) { - m_ManifestId = value; - } - - public override string ToString() { - return m_ManifestId.ToString(); - } - - public override bool Equals(object other) { - return other is ManifestId_t && this == (ManifestId_t)other; - } - - public override int GetHashCode() { - return m_ManifestId.GetHashCode(); - } - - public static bool operator ==(ManifestId_t x, ManifestId_t y) { - return x.m_ManifestId == y.m_ManifestId; - } - - public static bool operator !=(ManifestId_t x, ManifestId_t y) { - return !(x == y); - } - - public static explicit operator ManifestId_t(ulong value) { - return new ManifestId_t(value); - } - - public static explicit operator ulong(ManifestId_t that) { - return that.m_ManifestId; - } - - public bool Equals(ManifestId_t other) { - return m_ManifestId == other.m_ManifestId; - } - - public int CompareTo(ManifestId_t other) { - return m_ManifestId.CompareTo(other.m_ManifestId); - } - } -} diff --git a/Assets/Plugins/Steamworks.NET/types/SteamTypes/ManifestId_t.cs.meta b/Assets/Plugins/Steamworks.NET/types/SteamTypes/ManifestId_t.cs.meta deleted file mode 100644 index 245a07d..0000000 --- a/Assets/Plugins/Steamworks.NET/types/SteamTypes/ManifestId_t.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 5531adad6e9dc7e4b99c1f0987524b3e -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/Plugins/Steamworks.NET/types/SteamTypes/SteamAPICall_t.cs b/Assets/Plugins/Steamworks.NET/types/SteamTypes/SteamAPICall_t.cs deleted file mode 100644 index 75c5c70..0000000 --- a/Assets/Plugins/Steamworks.NET/types/SteamTypes/SteamAPICall_t.cs +++ /dev/null @@ -1,52 +0,0 @@ -// This file is provided under The MIT License as part of Steamworks.NET. -// Copyright (c) 2013-2015 Riley Labrecque -// Please see the included LICENSE.txt for additional information. - -// Changes to this file will be reverted when you update Steamworks.NET - -namespace Steamworks { - public struct SteamAPICall_t : System.IEquatable, System.IComparable { - public static readonly SteamAPICall_t Invalid = new SteamAPICall_t(0x0); - public ulong m_SteamAPICall; - - public SteamAPICall_t(ulong value) { - m_SteamAPICall = value; - } - - public override string ToString() { - return m_SteamAPICall.ToString(); - } - - public override bool Equals(object other) { - return other is SteamAPICall_t && this == (SteamAPICall_t)other; - } - - public override int GetHashCode() { - return m_SteamAPICall.GetHashCode(); - } - - public static bool operator ==(SteamAPICall_t x, SteamAPICall_t y) { - return x.m_SteamAPICall == y.m_SteamAPICall; - } - - public static bool operator !=(SteamAPICall_t x, SteamAPICall_t y) { - return !(x == y); - } - - public static explicit operator SteamAPICall_t(ulong value) { - return new SteamAPICall_t(value); - } - - public static explicit operator ulong(SteamAPICall_t that) { - return that.m_SteamAPICall; - } - - public bool Equals(SteamAPICall_t other) { - return m_SteamAPICall == other.m_SteamAPICall; - } - - public int CompareTo(SteamAPICall_t other) { - return m_SteamAPICall.CompareTo(other.m_SteamAPICall); - } - } -} diff --git a/Assets/Plugins/Steamworks.NET/types/SteamTypes/SteamAPICall_t.cs.meta b/Assets/Plugins/Steamworks.NET/types/SteamTypes/SteamAPICall_t.cs.meta deleted file mode 100644 index 5da728a..0000000 --- a/Assets/Plugins/Steamworks.NET/types/SteamTypes/SteamAPICall_t.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: cd4f20a8f86503e4cb5f196c02879916 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/Plugins/Steamworks.NET/types/SteamUGC.meta b/Assets/Plugins/Steamworks.NET/types/SteamUGC.meta deleted file mode 100644 index 4dea4c9..0000000 --- a/Assets/Plugins/Steamworks.NET/types/SteamUGC.meta +++ /dev/null @@ -1,5 +0,0 @@ -fileFormatVersion: 2 -guid: 769a2cfd3f0236342a8e2880070e2679 -folderAsset: yes -DefaultImporter: - userData: diff --git a/Assets/Plugins/Steamworks.NET/types/SteamUGC/UGCQueryHandle_t.cs b/Assets/Plugins/Steamworks.NET/types/SteamUGC/UGCQueryHandle_t.cs deleted file mode 100644 index 8a490c8..0000000 --- a/Assets/Plugins/Steamworks.NET/types/SteamUGC/UGCQueryHandle_t.cs +++ /dev/null @@ -1,52 +0,0 @@ -// This file is provided under The MIT License as part of Steamworks.NET. -// Copyright (c) 2013-2015 Riley Labrecque -// Please see the included LICENSE.txt for additional information. - -// Changes to this file will be reverted when you update Steamworks.NET - -namespace Steamworks { - public struct UGCQueryHandle_t : System.IEquatable, System.IComparable { - public static readonly UGCQueryHandle_t Invalid = new UGCQueryHandle_t(0xffffffffffffffff); - public ulong m_UGCQueryHandle; - - public UGCQueryHandle_t(ulong value) { - m_UGCQueryHandle = value; - } - - public override string ToString() { - return m_UGCQueryHandle.ToString(); - } - - public override bool Equals(object other) { - return other is UGCQueryHandle_t && this == (UGCQueryHandle_t)other; - } - - public override int GetHashCode() { - return m_UGCQueryHandle.GetHashCode(); - } - - public static bool operator ==(UGCQueryHandle_t x, UGCQueryHandle_t y) { - return x.m_UGCQueryHandle == y.m_UGCQueryHandle; - } - - public static bool operator !=(UGCQueryHandle_t x, UGCQueryHandle_t y) { - return !(x == y); - } - - public static explicit operator UGCQueryHandle_t(ulong value) { - return new UGCQueryHandle_t(value); - } - - public static explicit operator ulong(UGCQueryHandle_t that) { - return that.m_UGCQueryHandle; - } - - public bool Equals(UGCQueryHandle_t other) { - return m_UGCQueryHandle == other.m_UGCQueryHandle; - } - - public int CompareTo(UGCQueryHandle_t other) { - return m_UGCQueryHandle.CompareTo(other.m_UGCQueryHandle); - } - } -} diff --git a/Assets/Plugins/Steamworks.NET/types/SteamUGC/UGCQueryHandle_t.cs.meta b/Assets/Plugins/Steamworks.NET/types/SteamUGC/UGCQueryHandle_t.cs.meta deleted file mode 100644 index cbc5f88..0000000 --- a/Assets/Plugins/Steamworks.NET/types/SteamUGC/UGCQueryHandle_t.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: ee79f62a129c57047bb2cced70d177a9 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/Plugins/Steamworks.NET/types/SteamUGC/UGCUpdateHandle_t.cs b/Assets/Plugins/Steamworks.NET/types/SteamUGC/UGCUpdateHandle_t.cs deleted file mode 100644 index 9049eb6..0000000 --- a/Assets/Plugins/Steamworks.NET/types/SteamUGC/UGCUpdateHandle_t.cs +++ /dev/null @@ -1,52 +0,0 @@ -// This file is provided under The MIT License as part of Steamworks.NET. -// Copyright (c) 2013-2015 Riley Labrecque -// Please see the included LICENSE.txt for additional information. - -// Changes to this file will be reverted when you update Steamworks.NET - -namespace Steamworks { - public struct UGCUpdateHandle_t : System.IEquatable, System.IComparable { - public static readonly UGCUpdateHandle_t Invalid = new UGCUpdateHandle_t(0xffffffffffffffff); - public ulong m_UGCUpdateHandle; - - public UGCUpdateHandle_t(ulong value) { - m_UGCUpdateHandle = value; - } - - public override string ToString() { - return m_UGCUpdateHandle.ToString(); - } - - public override bool Equals(object other) { - return other is UGCUpdateHandle_t && this == (UGCUpdateHandle_t)other; - } - - public override int GetHashCode() { - return m_UGCUpdateHandle.GetHashCode(); - } - - public static bool operator ==(UGCUpdateHandle_t x, UGCUpdateHandle_t y) { - return x.m_UGCUpdateHandle == y.m_UGCUpdateHandle; - } - - public static bool operator !=(UGCUpdateHandle_t x, UGCUpdateHandle_t y) { - return !(x == y); - } - - public static explicit operator UGCUpdateHandle_t(ulong value) { - return new UGCUpdateHandle_t(value); - } - - public static explicit operator ulong(UGCUpdateHandle_t that) { - return that.m_UGCUpdateHandle; - } - - public bool Equals(UGCUpdateHandle_t other) { - return m_UGCUpdateHandle == other.m_UGCUpdateHandle; - } - - public int CompareTo(UGCUpdateHandle_t other) { - return m_UGCUpdateHandle.CompareTo(other.m_UGCUpdateHandle); - } - } -} diff --git a/Assets/Plugins/Steamworks.NET/types/SteamUGC/UGCUpdateHandle_t.cs.meta b/Assets/Plugins/Steamworks.NET/types/SteamUGC/UGCUpdateHandle_t.cs.meta deleted file mode 100644 index 594e58c..0000000 --- a/Assets/Plugins/Steamworks.NET/types/SteamUGC/UGCUpdateHandle_t.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 8b2b808e859c4634b9b42ab1f549af71 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/Plugins/Steamworks.NET/types/SteamUnifiedMessages.meta b/Assets/Plugins/Steamworks.NET/types/SteamUnifiedMessages.meta deleted file mode 100644 index 2fca962..0000000 --- a/Assets/Plugins/Steamworks.NET/types/SteamUnifiedMessages.meta +++ /dev/null @@ -1,5 +0,0 @@ -fileFormatVersion: 2 -guid: 33ab2a82742c62e438c611daa093ec36 -folderAsset: yes -DefaultImporter: - userData: diff --git a/Assets/Plugins/Steamworks.NET/types/SteamUnifiedMessages/ClientUnifiedMessageHandle.cs b/Assets/Plugins/Steamworks.NET/types/SteamUnifiedMessages/ClientUnifiedMessageHandle.cs deleted file mode 100644 index 11b465a..0000000 --- a/Assets/Plugins/Steamworks.NET/types/SteamUnifiedMessages/ClientUnifiedMessageHandle.cs +++ /dev/null @@ -1,52 +0,0 @@ -// This file is provided under The MIT License as part of Steamworks.NET. -// Copyright (c) 2013-2015 Riley Labrecque -// Please see the included LICENSE.txt for additional information. - -// Changes to this file will be reverted when you update Steamworks.NET - -namespace Steamworks { - public struct ClientUnifiedMessageHandle : System.IEquatable, System.IComparable { - public static readonly ClientUnifiedMessageHandle Invalid = new ClientUnifiedMessageHandle(0); - public ulong m_ClientUnifiedMessageHandle; - - public ClientUnifiedMessageHandle(ulong value) { - m_ClientUnifiedMessageHandle = value; - } - - public override string ToString() { - return m_ClientUnifiedMessageHandle.ToString(); - } - - public override bool Equals(object other) { - return other is ClientUnifiedMessageHandle && this == (ClientUnifiedMessageHandle)other; - } - - public override int GetHashCode() { - return m_ClientUnifiedMessageHandle.GetHashCode(); - } - - public static bool operator ==(ClientUnifiedMessageHandle x, ClientUnifiedMessageHandle y) { - return x.m_ClientUnifiedMessageHandle == y.m_ClientUnifiedMessageHandle; - } - - public static bool operator !=(ClientUnifiedMessageHandle x, ClientUnifiedMessageHandle y) { - return !(x == y); - } - - public static explicit operator ClientUnifiedMessageHandle(ulong value) { - return new ClientUnifiedMessageHandle(value); - } - - public static explicit operator ulong(ClientUnifiedMessageHandle that) { - return that.m_ClientUnifiedMessageHandle; - } - - public bool Equals(ClientUnifiedMessageHandle other) { - return m_ClientUnifiedMessageHandle == other.m_ClientUnifiedMessageHandle; - } - - public int CompareTo(ClientUnifiedMessageHandle other) { - return m_ClientUnifiedMessageHandle.CompareTo(other.m_ClientUnifiedMessageHandle); - } - } -} diff --git a/Assets/Plugins/Steamworks.NET/types/SteamUnifiedMessages/ClientUnifiedMessageHandle.cs.meta b/Assets/Plugins/Steamworks.NET/types/SteamUnifiedMessages/ClientUnifiedMessageHandle.cs.meta deleted file mode 100644 index 94f38c2..0000000 --- a/Assets/Plugins/Steamworks.NET/types/SteamUnifiedMessages/ClientUnifiedMessageHandle.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 4da463d1297c3f843b0856e262bf4f74 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/Plugins/Steamworks.NET/types/SteamUserStats.meta b/Assets/Plugins/Steamworks.NET/types/SteamUserStats.meta deleted file mode 100644 index 626bbc4..0000000 --- a/Assets/Plugins/Steamworks.NET/types/SteamUserStats.meta +++ /dev/null @@ -1,5 +0,0 @@ -fileFormatVersion: 2 -guid: 705b9d947d825594fa9a669854e24345 -folderAsset: yes -DefaultImporter: - userData: diff --git a/Assets/Plugins/Steamworks.NET/types/SteamUserStats/SteamLeaderboardEntries_t.cs b/Assets/Plugins/Steamworks.NET/types/SteamUserStats/SteamLeaderboardEntries_t.cs deleted file mode 100644 index 6ac58dd..0000000 --- a/Assets/Plugins/Steamworks.NET/types/SteamUserStats/SteamLeaderboardEntries_t.cs +++ /dev/null @@ -1,51 +0,0 @@ -// This file is provided under The MIT License as part of Steamworks.NET. -// Copyright (c) 2013-2015 Riley Labrecque -// Please see the included LICENSE.txt for additional information. - -// Changes to this file will be reverted when you update Steamworks.NET - -namespace Steamworks { - public struct SteamLeaderboardEntries_t : System.IEquatable, System.IComparable { - public ulong m_SteamLeaderboardEntries; - - public SteamLeaderboardEntries_t(ulong value) { - m_SteamLeaderboardEntries = value; - } - - public override string ToString() { - return m_SteamLeaderboardEntries.ToString(); - } - - public override bool Equals(object other) { - return other is SteamLeaderboardEntries_t && this == (SteamLeaderboardEntries_t)other; - } - - public override int GetHashCode() { - return m_SteamLeaderboardEntries.GetHashCode(); - } - - public static bool operator ==(SteamLeaderboardEntries_t x, SteamLeaderboardEntries_t y) { - return x.m_SteamLeaderboardEntries == y.m_SteamLeaderboardEntries; - } - - public static bool operator !=(SteamLeaderboardEntries_t x, SteamLeaderboardEntries_t y) { - return !(x == y); - } - - public static explicit operator SteamLeaderboardEntries_t(ulong value) { - return new SteamLeaderboardEntries_t(value); - } - - public static explicit operator ulong(SteamLeaderboardEntries_t that) { - return that.m_SteamLeaderboardEntries; - } - - public bool Equals(SteamLeaderboardEntries_t other) { - return m_SteamLeaderboardEntries == other.m_SteamLeaderboardEntries; - } - - public int CompareTo(SteamLeaderboardEntries_t other) { - return m_SteamLeaderboardEntries.CompareTo(other.m_SteamLeaderboardEntries); - } - } -} diff --git a/Assets/Plugins/Steamworks.NET/types/SteamUserStats/SteamLeaderboardEntries_t.cs.meta b/Assets/Plugins/Steamworks.NET/types/SteamUserStats/SteamLeaderboardEntries_t.cs.meta deleted file mode 100644 index c94db91..0000000 --- a/Assets/Plugins/Steamworks.NET/types/SteamUserStats/SteamLeaderboardEntries_t.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: f46d9e61fc8b94e40a66438300c90b55 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/Plugins/Steamworks.NET/types/SteamUserStats/SteamLeaderboard_t.cs b/Assets/Plugins/Steamworks.NET/types/SteamUserStats/SteamLeaderboard_t.cs deleted file mode 100644 index 57f71a7..0000000 --- a/Assets/Plugins/Steamworks.NET/types/SteamUserStats/SteamLeaderboard_t.cs +++ /dev/null @@ -1,51 +0,0 @@ -// This file is provided under The MIT License as part of Steamworks.NET. -// Copyright (c) 2013-2015 Riley Labrecque -// Please see the included LICENSE.txt for additional information. - -// Changes to this file will be reverted when you update Steamworks.NET - -namespace Steamworks { - public struct SteamLeaderboard_t : System.IEquatable, System.IComparable { - public ulong m_SteamLeaderboard; - - public SteamLeaderboard_t(ulong value) { - m_SteamLeaderboard = value; - } - - public override string ToString() { - return m_SteamLeaderboard.ToString(); - } - - public override bool Equals(object other) { - return other is SteamLeaderboard_t && this == (SteamLeaderboard_t)other; - } - - public override int GetHashCode() { - return m_SteamLeaderboard.GetHashCode(); - } - - public static bool operator ==(SteamLeaderboard_t x, SteamLeaderboard_t y) { - return x.m_SteamLeaderboard == y.m_SteamLeaderboard; - } - - public static bool operator !=(SteamLeaderboard_t x, SteamLeaderboard_t y) { - return !(x == y); - } - - public static explicit operator SteamLeaderboard_t(ulong value) { - return new SteamLeaderboard_t(value); - } - - public static explicit operator ulong(SteamLeaderboard_t that) { - return that.m_SteamLeaderboard; - } - - public bool Equals(SteamLeaderboard_t other) { - return m_SteamLeaderboard == other.m_SteamLeaderboard; - } - - public int CompareTo(SteamLeaderboard_t other) { - return m_SteamLeaderboard.CompareTo(other.m_SteamLeaderboard); - } - } -} diff --git a/Assets/Plugins/Steamworks.NET/types/SteamUserStats/SteamLeaderboard_t.cs.meta b/Assets/Plugins/Steamworks.NET/types/SteamUserStats/SteamLeaderboard_t.cs.meta deleted file mode 100644 index d67685f..0000000 --- a/Assets/Plugins/Steamworks.NET/types/SteamUserStats/SteamLeaderboard_t.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 3972a90ddb5559843a701a4f9f6f75ec -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/Assets/Plugins/x86.meta b/Assets/Plugins/x86.meta deleted file mode 100644 index f7b1a1c..0000000 --- a/Assets/Plugins/x86.meta +++ /dev/null @@ -1,5 +0,0 @@ -fileFormatVersion: 2 -guid: e02f08bbfd56a3f4d95552379d8e472f -folderAsset: yes -DefaultImporter: - userData: diff --git a/Assets/Plugins/x86/CSteamworks.dll b/Assets/Plugins/x86/CSteamworks.dll deleted file mode 100644 index 006067d..0000000 Binary files a/Assets/Plugins/x86/CSteamworks.dll and /dev/null differ diff --git a/Assets/Plugins/x86/CSteamworks.dll.meta b/Assets/Plugins/x86/CSteamworks.dll.meta deleted file mode 100644 index 17036a4..0000000 --- a/Assets/Plugins/x86/CSteamworks.dll.meta +++ /dev/null @@ -1,4 +0,0 @@ -fileFormatVersion: 2 -guid: 49a703c2e06d22a459d7bc18152c603e -DefaultImporter: - userData: diff --git a/Assets/Plugins/x86/libCSteamworks.so b/Assets/Plugins/x86/libCSteamworks.so deleted file mode 100644 index 06d0a5b..0000000 Binary files a/Assets/Plugins/x86/libCSteamworks.so and /dev/null differ diff --git a/Assets/Plugins/x86/libCSteamworks.so.meta b/Assets/Plugins/x86/libCSteamworks.so.meta deleted file mode 100644 index 6b6004c..0000000 --- a/Assets/Plugins/x86/libCSteamworks.so.meta +++ /dev/null @@ -1,4 +0,0 @@ -fileFormatVersion: 2 -guid: abc8161132944334d95f6efe5153ce2d -DefaultImporter: - userData: diff --git a/Assets/Plugins/x86/libsteam_api.so b/Assets/Plugins/x86/libsteam_api.so deleted file mode 100644 index 2bb7a59..0000000 Binary files a/Assets/Plugins/x86/libsteam_api.so and /dev/null differ diff --git a/Assets/Plugins/x86/libsteam_api.so.meta b/Assets/Plugins/x86/libsteam_api.so.meta deleted file mode 100644 index 3598066..0000000 --- a/Assets/Plugins/x86/libsteam_api.so.meta +++ /dev/null @@ -1,4 +0,0 @@ -fileFormatVersion: 2 -guid: c3fdf34df3c356148978339d743b28d7 -DefaultImporter: - userData: diff --git a/Assets/Plugins/x86/steam_api.dll b/Assets/Plugins/x86/steam_api.dll deleted file mode 100644 index 8ac7a97..0000000 Binary files a/Assets/Plugins/x86/steam_api.dll and /dev/null differ diff --git a/Assets/Plugins/x86/steam_api.dll.meta b/Assets/Plugins/x86/steam_api.dll.meta deleted file mode 100644 index 938d544..0000000 --- a/Assets/Plugins/x86/steam_api.dll.meta +++ /dev/null @@ -1,4 +0,0 @@ -fileFormatVersion: 2 -guid: 242bc3c44eaa71847ab220a642d6b726 -DefaultImporter: - userData: diff --git a/Assets/Plugins/x86_64.meta b/Assets/Plugins/x86_64.meta deleted file mode 100644 index 95ea8f3..0000000 --- a/Assets/Plugins/x86_64.meta +++ /dev/null @@ -1,5 +0,0 @@ -fileFormatVersion: 2 -guid: 0998dd1993ea5c74aa8064701fbb0c24 -folderAsset: yes -DefaultImporter: - userData: diff --git a/Assets/Plugins/x86_64/CSteamworks.dll b/Assets/Plugins/x86_64/CSteamworks.dll deleted file mode 100644 index 0626a52..0000000 Binary files a/Assets/Plugins/x86_64/CSteamworks.dll and /dev/null differ diff --git a/Assets/Plugins/x86_64/CSteamworks.dll.meta b/Assets/Plugins/x86_64/CSteamworks.dll.meta deleted file mode 100644 index 0fd137d..0000000 --- a/Assets/Plugins/x86_64/CSteamworks.dll.meta +++ /dev/null @@ -1,4 +0,0 @@ -fileFormatVersion: 2 -guid: 4c1b08d695e51594eae6d4baa833d7b4 -DefaultImporter: - userData: diff --git a/Assets/Plugins/x86_64/libCSteamworks.so b/Assets/Plugins/x86_64/libCSteamworks.so deleted file mode 100644 index a07266e..0000000 Binary files a/Assets/Plugins/x86_64/libCSteamworks.so and /dev/null differ diff --git a/Assets/Plugins/x86_64/libCSteamworks.so.meta b/Assets/Plugins/x86_64/libCSteamworks.so.meta deleted file mode 100644 index bdf4f70..0000000 --- a/Assets/Plugins/x86_64/libCSteamworks.so.meta +++ /dev/null @@ -1,4 +0,0 @@ -fileFormatVersion: 2 -guid: 83f11aa3dcfbd2c48a1d56d44e2ffbac -DefaultImporter: - userData: diff --git a/Assets/Plugins/x86_64/libsteam_api.so b/Assets/Plugins/x86_64/libsteam_api.so deleted file mode 100644 index 357c9ab..0000000 Binary files a/Assets/Plugins/x86_64/libsteam_api.so and /dev/null differ diff --git a/Assets/Plugins/x86_64/libsteam_api.so.meta b/Assets/Plugins/x86_64/libsteam_api.so.meta deleted file mode 100644 index 4e69769..0000000 --- a/Assets/Plugins/x86_64/libsteam_api.so.meta +++ /dev/null @@ -1,4 +0,0 @@ -fileFormatVersion: 2 -guid: 3409233563c009e4daae880538ec3f3b -DefaultImporter: - userData: diff --git a/Assets/Plugins/x86_64/steam_api64.dll b/Assets/Plugins/x86_64/steam_api64.dll deleted file mode 100644 index e67d32e..0000000 Binary files a/Assets/Plugins/x86_64/steam_api64.dll and /dev/null differ diff --git a/Assets/Plugins/x86_64/steam_api64.dll.meta b/Assets/Plugins/x86_64/steam_api64.dll.meta deleted file mode 100644 index 176491c..0000000 --- a/Assets/Plugins/x86_64/steam_api64.dll.meta +++ /dev/null @@ -1,4 +0,0 @@ -fileFormatVersion: 2 -guid: 72b00848742832f45b39eb0efceef9b5 -DefaultImporter: - userData: diff --git a/Assets/Scenes/MainScene.unity b/Assets/Scenes/MainScene.unity index 3753b56..032866b 100644 --- a/Assets/Scenes/MainScene.unity +++ b/Assets/Scenes/MainScene.unity @@ -1,89 +1,139 @@ %YAML 1.1 %TAG !u! tag:unity3d.com,2011: --- !u!29 &1 -SceneSettings: +OcclusionCullingSettings: m_ObjectHideFlags: 0 - m_PVSData: - m_PVSObjectsArray: [] - m_PVSPortalsArray: [] + serializedVersion: 2 m_OcclusionBakeSettings: smallestOccluder: 5 - smallestHole: .25 + smallestHole: 0.25 backfaceThreshold: 100 + m_SceneGUID: 00000000000000000000000000000000 + m_OcclusionCullingData: {fileID: 0} --- !u!104 &2 RenderSettings: + m_ObjectHideFlags: 0 + serializedVersion: 9 m_Fog: 0 - m_FogColor: {r: .5, g: .5, b: .5, a: 1} + m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} m_FogMode: 3 - m_FogDensity: .00999999978 + m_FogDensity: 0.01 m_LinearFogStart: 0 m_LinearFogEnd: 300 - m_AmbientLight: {r: .200000003, g: .200000003, b: .200000003, a: 1} + m_AmbientSkyColor: {r: 0.2, g: 0.2, b: 0.2, a: 1} + m_AmbientEquatorColor: {r: 0.2, g: 0.2, b: 0.2, a: 1} + m_AmbientGroundColor: {r: 0.2, g: 0.2, b: 0.2, a: 1} + m_AmbientIntensity: 1 + m_AmbientMode: 3 + m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} m_SkyboxMaterial: {fileID: 0} - m_HaloStrength: .5 + m_HaloStrength: 0.5 m_FlareStrength: 1 m_FlareFadeSpeed: 3 m_HaloTexture: {fileID: 0} - m_SpotCookie: {fileID: 0} - m_ObjectHideFlags: 0 ---- !u!127 &3 -LevelGameManager: - m_ObjectHideFlags: 0 + m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} + m_DefaultReflectionMode: 0 + m_DefaultReflectionResolution: 128 + m_ReflectionBounces: 1 + m_ReflectionIntensity: 1 + m_CustomReflection: {fileID: 0} + m_Sun: {fileID: 0} + m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1} + m_UseRadianceAmbientProbe: 0 --- !u!157 &4 LightmapSettings: m_ObjectHideFlags: 0 - m_LightProbes: {fileID: 0} - m_Lightmaps: [] - m_LightmapsMode: 1 - m_BakedColorSpace: 0 - m_UseDualLightmapsInForward: 0 + serializedVersion: 12 + m_GIWorkflowMode: 1 + m_GISettings: + serializedVersion: 2 + m_BounceScale: 1 + m_IndirectOutputScale: 1 + m_AlbedoBoost: 1 + m_EnvironmentLightingMode: 0 + m_EnableBakedLightmaps: 0 + m_EnableRealtimeLightmaps: 0 m_LightmapEditorSettings: - m_Resolution: 50 - m_LastUsedResolution: 0 - m_TextureWidth: 1024 - m_TextureHeight: 1024 - m_BounceBoost: 1 - m_BounceIntensity: 1 - m_SkyLightColor: {r: .860000014, g: .930000007, b: 1, a: 1} - m_SkyLightIntensity: 0 - m_Quality: 0 - m_Bounces: 1 - m_FinalGatherRays: 1000 - m_FinalGatherContrastThreshold: .0500000007 - m_FinalGatherGradientThreshold: 0 - m_FinalGatherInterpolationPoints: 15 - m_AOAmount: 0 - m_AOMaxDistance: .100000001 - m_AOContrast: 1 - m_LODSurfaceMappingDistance: 1 - m_Padding: 0 + serializedVersion: 12 + m_Resolution: 1 + m_BakeResolution: 50 + m_AtlasSize: 1024 + m_AO: 1 + m_AOMaxDistance: 1 + m_CompAOExponent: 1 + m_CompAOExponentDirect: 0 + m_ExtractAmbientOcclusion: 0 + m_Padding: 2 + m_LightmapParameters: {fileID: 0} + m_LightmapsBakeMode: 1 m_TextureCompression: 0 - m_LockAtlas: 0 + m_FinalGather: 0 + m_FinalGatherFiltering: 1 + m_FinalGatherRayCount: 256 + m_ReflectionCompression: 2 + m_MixedBakeMode: 1 + m_BakeBackend: 0 + m_PVRSampling: 1 + m_PVRDirectSampleCount: 32 + m_PVRSampleCount: 500 + m_PVRBounces: 2 + m_PVREnvironmentSampleCount: 500 + m_PVREnvironmentReferencePointCount: 2048 + m_PVRFilteringMode: 0 + m_PVRDenoiserTypeDirect: 0 + m_PVRDenoiserTypeIndirect: 0 + m_PVRDenoiserTypeAO: 0 + m_PVRFilterTypeDirect: 0 + m_PVRFilterTypeIndirect: 0 + m_PVRFilterTypeAO: 0 + m_PVREnvironmentMIS: 0 + m_PVRCulling: 1 + m_PVRFilteringGaussRadiusDirect: 1 + m_PVRFilteringGaussRadiusIndirect: 5 + m_PVRFilteringGaussRadiusAO: 2 + m_PVRFilteringAtrousPositionSigmaDirect: 0.5 + m_PVRFilteringAtrousPositionSigmaIndirect: 2 + m_PVRFilteringAtrousPositionSigmaAO: 1 + m_ExportTrainingData: 0 + m_TrainingDataDestination: TrainingData + m_LightProbeSampleCountMultiplier: 4 + m_LightingDataAsset: {fileID: 0} + m_LightingSettings: {fileID: 383260289} --- !u!196 &5 NavMeshSettings: + serializedVersion: 2 m_ObjectHideFlags: 0 m_BuildSettings: - agentRadius: .5 + serializedVersion: 2 + agentTypeID: 0 + agentRadius: 0.5 agentHeight: 2 agentSlope: 45 - agentClimb: .400000006 + agentClimb: 0.4 ledgeDropHeight: 0 maxJumpAcrossDistance: 0 - accuratePlacement: 0 minRegionArea: 2 - widthInaccuracy: 16.666666 - heightInaccuracy: 10 - m_NavMesh: {fileID: 0} + manualCellSize: 0 + cellSize: 0.16666666 + manualTileSize: 0 + tileSize: 256 + accuratePlacement: 0 + maxJobWorkers: 0 + preserveTilesOutsideBounds: 0 + debug: + m_Flags: 0 + m_NavMeshData: {fileID: 0} --- !u!1 &27251771 GameObject: m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 4 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 m_Component: - - 4: {fileID: 27251774} - - 114: {fileID: 27251773} - - 114: {fileID: 27251772} + - component: {fileID: 27251774} + - component: {fileID: 27251773} + - component: {fileID: 27251772} m_Layer: 0 m_Name: GameController m_TagString: Untagged @@ -94,8 +144,9 @@ GameObject: --- !u!114 &27251772 MonoBehaviour: m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 27251771} m_Enabled: 1 m_EditorHideFlags: 0 @@ -105,8 +156,9 @@ MonoBehaviour: --- !u!114 &27251773 MonoBehaviour: m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 27251771} m_Enabled: 1 m_EditorHideFlags: 0 @@ -116,8 +168,9 @@ MonoBehaviour: --- !u!4 &27251774 Transform: m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 27251771} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} @@ -125,15 +178,100 @@ Transform: m_Children: [] m_Father: {fileID: 0} m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &195384397 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 195384400} + - component: {fileID: 195384399} + - component: {fileID: 195384398} + m_Layer: 0 + m_Name: Camera + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!81 &195384398 +AudioListener: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 195384397} + m_Enabled: 1 +--- !u!20 &195384399 +Camera: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 195384397} + m_Enabled: 1 + serializedVersion: 2 + m_ClearFlags: 2 + m_BackGroundColor: {r: 0, g: 0, b: 0, a: 0} + m_projectionMatrixMode: 1 + m_GateFitMode: 2 + m_FOVAxisMode: 0 + m_SensorSize: {x: 36, y: 24} + m_LensShift: {x: 0, y: 0} + m_FocalLength: 50 + m_NormalizedViewPortRect: + serializedVersion: 2 + x: 0 + y: 0 + width: 1 + height: 1 + near clip plane: 0.3 + far clip plane: 1000 + field of view: 60 + orthographic: 0 + orthographic size: 5 + m_Depth: 0 + m_CullingMask: + serializedVersion: 2 + m_Bits: 4294967295 + m_RenderingPath: -1 + m_TargetTexture: {fileID: 0} + m_TargetDisplay: 0 + m_TargetEye: 3 + m_HDR: 1 + m_AllowMSAA: 1 + m_AllowDynamicResolution: 0 + m_ForceIntoRT: 0 + m_OcclusionCulling: 1 + m_StereoConvergence: 10 + m_StereoSeparation: 0.022 +--- !u!4 &195384400 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 195384397} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 4 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1 &263849028 GameObject: m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 4 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 m_Component: - - 4: {fileID: 263849031} - - 114: {fileID: 263849029} + - component: {fileID: 263849031} + - component: {fileID: 263849029} m_Layer: 0 m_Name: SpaceWarClient m_TagString: Untagged @@ -144,8 +282,9 @@ GameObject: --- !u!114 &263849029 MonoBehaviour: m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 263849028} m_Enabled: 1 m_EditorHideFlags: 0 @@ -155,24 +294,88 @@ MonoBehaviour: --- !u!4 &263849031 Transform: m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 263849028} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 0} - m_RootOrder: 2 + m_RootOrder: 1 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!850595691 &383260289 +LightingSettings: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: Settings.lighting + serializedVersion: 3 + m_GIWorkflowMode: 1 + m_EnableBakedLightmaps: 0 + m_EnableRealtimeLightmaps: 0 + m_RealtimeEnvironmentLighting: 1 + m_BounceScale: 1 + m_AlbedoBoost: 1 + m_IndirectOutputScale: 1 + m_UsingShadowmask: 0 + m_BakeBackend: 0 + m_LightmapMaxSize: 1024 + m_BakeResolution: 50 + m_Padding: 2 + m_TextureCompression: 0 + m_AO: 1 + m_AOMaxDistance: 1 + m_CompAOExponent: 1 + m_CompAOExponentDirect: 0 + m_ExtractAO: 0 + m_MixedBakeMode: 1 + m_LightmapsBakeMode: 1 + m_FilterMode: 1 + m_LightmapParameters: {fileID: 15204, guid: 0000000000000000f000000000000000, type: 0} + m_ExportTrainingData: 0 + m_TrainingDataDestination: TrainingData + m_RealtimeResolution: 1 + m_ForceWhiteAlbedo: 0 + m_ForceUpdates: 0 + m_FinalGather: 0 + m_FinalGatherRayCount: 256 + m_FinalGatherFiltering: 1 + m_PVRCulling: 1 + m_PVRSampling: 1 + m_PVRDirectSampleCount: 32 + m_PVRSampleCount: 500 + m_PVREnvironmentSampleCount: 500 + m_PVREnvironmentReferencePointCount: 2048 + m_LightProbeSampleCountMultiplier: 4 + m_PVRBounces: 2 + m_PVRMinBounces: 2 + m_PVREnvironmentMIS: 0 + m_PVRFilteringMode: 0 + m_PVRDenoiserTypeDirect: 0 + m_PVRDenoiserTypeIndirect: 0 + m_PVRDenoiserTypeAO: 0 + m_PVRFilterTypeDirect: 0 + m_PVRFilterTypeIndirect: 0 + m_PVRFilterTypeAO: 0 + m_PVRFilteringGaussRadiusDirect: 1 + m_PVRFilteringGaussRadiusIndirect: 5 + m_PVRFilteringGaussRadiusAO: 2 + m_PVRFilteringAtrousPositionSigmaDirect: 0.5 + m_PVRFilteringAtrousPositionSigmaIndirect: 2 + m_PVRFilteringAtrousPositionSigmaAO: 1 --- !u!1 &423347163 GameObject: m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 4 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 m_Component: - - 4: {fileID: 423347165} - - 114: {fileID: 423347164} + - component: {fileID: 423347165} + - component: {fileID: 423347164} m_Layer: 0 m_Name: SteamManager m_TagString: Untagged @@ -183,119 +386,39 @@ GameObject: --- !u!114 &423347164 MonoBehaviour: m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 423347163} m_Enabled: 1 m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 03d4ed1ce33fe0a42bb1fcb3ebacea03, type: 3} + m_Script: {fileID: 11500000, guid: ef4bffeda13d7a748973ff9204401c07, type: 3} m_Name: m_EditorClassIdentifier: --- !u!4 &423347165 Transform: m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 423347163} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 0} - m_RootOrder: 4 ---- !u!1 &1435329737 -GameObject: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 4 - m_Component: - - 4: {fileID: 1435329742} - - 20: {fileID: 1435329741} - - 92: {fileID: 1435329740} - - 124: {fileID: 1435329739} - - 81: {fileID: 1435329738} - m_Layer: 0 - m_Name: Main Camera - m_TagString: MainCamera - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!81 &1435329738 -AudioListener: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1435329737} - m_Enabled: 1 ---- !u!124 &1435329739 -Behaviour: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1435329737} - m_Enabled: 1 ---- !u!92 &1435329740 -Behaviour: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1435329737} - m_Enabled: 1 ---- !u!20 &1435329741 -Camera: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1435329737} - m_Enabled: 1 - serializedVersion: 2 - m_ClearFlags: 1 - m_BackGroundColor: {r: .192156866, g: .301960796, b: .474509805, a: .0196078438} - m_NormalizedViewPortRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 - near clip plane: .300000012 - far clip plane: 1000 - field of view: 60 - orthographic: 0 - orthographic size: 100 - m_Depth: -1 - m_CullingMask: - serializedVersion: 2 - m_Bits: 4294967295 - m_RenderingPath: -1 - m_TargetTexture: {fileID: 0} - m_TargetDisplay: 0 - m_HDR: 0 - m_OcclusionCulling: 1 - m_StereoConvergence: 10 - m_StereoSeparation: .0219999999 ---- !u!4 &1435329742 -Transform: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1435329737} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 1, z: -10} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 1 + m_RootOrder: 3 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1 &1525750544 GameObject: m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 4 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 m_Component: - - 4: {fileID: 1525750546} - - 114: {fileID: 1525750545} + - component: {fileID: 1525750546} + - component: {fileID: 1525750545} m_Layer: 0 m_Name: StatsAndAchievements m_TagString: Untagged @@ -306,8 +429,9 @@ GameObject: --- !u!114 &1525750545 MonoBehaviour: m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1525750544} m_Enabled: 1 m_EditorHideFlags: 0 @@ -317,12 +441,14 @@ MonoBehaviour: --- !u!4 &1525750546 Transform: m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1525750544} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 0} - m_RootOrder: 3 + m_RootOrder: 2 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} diff --git a/Assets/Scripts/GameController/Logger.cs b/Assets/Scripts/GameController/Logger.cs index bb557d0..3b7d556 100644 --- a/Assets/Scripts/GameController/Logger.cs +++ b/Assets/Scripts/GameController/Logger.cs @@ -1,30 +1,31 @@ -using UnityEngine; -using System.Collections.Generic; - -public class Logger : MonoBehaviour { -#if !UNITY_EDITOR - static Queue queue = new Queue(6); - void OnEnable() { - Application.RegisterLogCallback(HandleLog); - } - - void OnDisable() { - Application.RegisterLogCallback(null); - } - - void OnGUI() { - GUILayout.BeginArea(new Rect(0, Screen.height - 140, Screen.width, 140)); - foreach (string s in queue) { - GUILayout.Label(s); - } - GUILayout.EndArea(); - } - - void HandleLog(string message, string stackTrace, LogType type) { - queue.Enqueue(Time.time + " - " + message); - if (queue.Count > 5) { - queue.Dequeue(); - } - } -#endif -} +using UnityEngine; +using System.Collections.Generic; + +public class Logger : MonoBehaviour { +#if !UNITY_EDITOR + static Queue queue = new Queue(6); + + void OnEnable() { + Application.logMessageReceived += HandleLog; + } + + void OnDisable() { + Application.logMessageReceived -= HandleLog; + } + + void OnGUI() { + GUILayout.BeginArea(new Rect(0, Screen.height - 140, Screen.width, 140)); + foreach (string s in queue) { + GUILayout.Label(s); + } + GUILayout.EndArea(); + } + + void HandleLog(string message, string stackTrace, LogType type) { + queue.Enqueue(Time.time + " - " + message); + if (queue.Count > 5) { + queue.Dequeue(); + } + } +#endif +} diff --git a/Assets/Scripts/GameController/QuitScript.cs b/Assets/Scripts/GameController/QuitScript.cs index aac6b88..9d2112f 100644 --- a/Assets/Scripts/GameController/QuitScript.cs +++ b/Assets/Scripts/GameController/QuitScript.cs @@ -1,11 +1,11 @@ -using UnityEngine; -using System.Collections; - -public class QuitScript : MonoBehaviour { - void Update() { - if (Input.GetKeyDown(KeyCode.Escape)) { - Application.Quit(); - return; - } - } -} +using UnityEngine; +using System.Collections; + +public class QuitScript : MonoBehaviour { + void Update() { + if (Input.GetKeyDown(KeyCode.Escape)) { + Application.Quit(); + return; + } + } +} diff --git a/Assets/Scripts/SpaceWarClient.cs b/Assets/Scripts/SpaceWarClient.cs index 464a0e0..ddff82e 100644 --- a/Assets/Scripts/SpaceWarClient.cs +++ b/Assets/Scripts/SpaceWarClient.cs @@ -1,38 +1,38 @@ -using UnityEngine; -using System.Collections; -using Steamworks; - -// Enum for possible game states on the client -enum EClientGameState { - k_EClientGameActive, - k_EClientGameWinner, - k_EClientGameLoser, -}; - -class SpaceWarClient : MonoBehaviour { - SteamStatsAndAchievements m_StatsAndAchievements; - - private void OnEnable() { - m_StatsAndAchievements = GameObject.FindObjectOfType(); - - m_StatsAndAchievements.OnGameStateChange(EClientGameState.k_EClientGameActive); - } - - private void OnGUI() { - m_StatsAndAchievements.Render(); - GUILayout.Space(10); - - if(GUILayout.Button("Set State to Active")) { - m_StatsAndAchievements.OnGameStateChange(EClientGameState.k_EClientGameActive); - } - if (GUILayout.Button("Set State to Winner")) { - m_StatsAndAchievements.OnGameStateChange(EClientGameState.k_EClientGameWinner); - } - if (GUILayout.Button("Set State to Loser")) { - m_StatsAndAchievements.OnGameStateChange(EClientGameState.k_EClientGameLoser); - } - if (GUILayout.Button("Add Distance Traveled +100")) { - m_StatsAndAchievements.AddDistanceTraveled(100.0f); - } - } -} +using UnityEngine; +using System.Collections; +using Steamworks; + +// Enum for possible game states on the client +enum EClientGameState { + k_EClientGameActive, + k_EClientGameWinner, + k_EClientGameLoser, +}; + +class SpaceWarClient : MonoBehaviour { + SteamStatsAndAchievements m_StatsAndAchievements; + + private void OnEnable() { + m_StatsAndAchievements = GameObject.FindObjectOfType(); + + m_StatsAndAchievements.OnGameStateChange(EClientGameState.k_EClientGameActive); + } + + private void OnGUI() { + m_StatsAndAchievements.Render(); + GUILayout.Space(10); + + if(GUILayout.Button("Set State to Active")) { + m_StatsAndAchievements.OnGameStateChange(EClientGameState.k_EClientGameActive); + } + if (GUILayout.Button("Set State to Winner")) { + m_StatsAndAchievements.OnGameStateChange(EClientGameState.k_EClientGameWinner); + } + if (GUILayout.Button("Set State to Loser")) { + m_StatsAndAchievements.OnGameStateChange(EClientGameState.k_EClientGameLoser); + } + if (GUILayout.Button("Add Distance Traveled +100")) { + m_StatsAndAchievements.AddDistanceTraveled(100.0f); + } + } +} diff --git a/Assets/Scripts/SteamStatsAndAchievements.cs b/Assets/Scripts/SteamStatsAndAchievements.cs index 93fb446..5c33045 100644 --- a/Assets/Scripts/SteamStatsAndAchievements.cs +++ b/Assets/Scripts/SteamStatsAndAchievements.cs @@ -1,339 +1,339 @@ -using UnityEngine; -using System.Collections; -using System.ComponentModel; -using Steamworks; - -// This is a port of StatsAndAchievements.cpp from SpaceWar, the official Steamworks Example. -class SteamStatsAndAchievements : MonoBehaviour { - private enum Achievement : int { - ACH_WIN_ONE_GAME, - ACH_WIN_100_GAMES, - ACH_HEAVY_FIRE, - ACH_TRAVEL_FAR_ACCUM, - ACH_TRAVEL_FAR_SINGLE, - }; - - private Achievement_t[] m_Achievements = new Achievement_t[] { - new Achievement_t(Achievement.ACH_WIN_ONE_GAME, "Winner", ""), - new Achievement_t(Achievement.ACH_WIN_100_GAMES, "Champion", ""), - new Achievement_t(Achievement.ACH_TRAVEL_FAR_ACCUM, "Interstellar", ""), - new Achievement_t(Achievement.ACH_TRAVEL_FAR_SINGLE, "Orbiter", "") - }; - - // Our GameID - private CGameID m_GameID; - - // Did we get the stats from Steam? - private bool m_bRequestedStats; - private bool m_bStatsValid; - - // Should we store stats this frame? - private bool m_bStoreStats; - - // Current Stat details - private float m_flGameFeetTraveled; - private float m_ulTickCountGameStart; - private double m_flGameDurationSeconds; - - // Persisted Stat details - private int m_nTotalGamesPlayed; - private int m_nTotalNumWins; - private int m_nTotalNumLosses; - private float m_flTotalFeetTraveled; - private float m_flMaxFeetTraveled; - private float m_flAverageSpeed; - - protected Callback m_UserStatsReceived; - protected Callback m_UserStatsStored; - protected Callback m_UserAchievementStored; - - void OnEnable() { - if (!SteamManager.Initialized) - return; - - // Cache the GameID for use in the Callbacks - m_GameID = new CGameID(SteamUtils.GetAppID()); - - m_UserStatsReceived = Callback.Create(OnUserStatsReceived); - m_UserStatsStored = Callback.Create(OnUserStatsStored); - m_UserAchievementStored = Callback.Create(OnAchievementStored); - - // These need to be reset to get the stats upon an Assembly reload in the Editor. - m_bRequestedStats = false; - m_bStatsValid = false; - } - - private void Update() { - if (!SteamManager.Initialized) - return; - - if (!m_bRequestedStats) { - // Is Steam Loaded? if no, can't get stats, done - if (!SteamManager.Initialized) { - m_bRequestedStats = true; - return; - } - - // If yes, request our stats - bool bSuccess = SteamUserStats.RequestCurrentStats(); - - // This function should only return false if we weren't logged in, and we already checked that. - // But handle it being false again anyway, just ask again later. - m_bRequestedStats = bSuccess; - } - - if (!m_bStatsValid) - return; - - // Get info from sources - - // Evaluate achievements - foreach (Achievement_t achievement in m_Achievements) { - if (achievement.m_bAchieved) - continue; - - switch (achievement.m_eAchievementID) { - case Achievement.ACH_WIN_ONE_GAME: - if (m_nTotalNumWins != 0) { - UnlockAchievement(achievement); - } - break; - case Achievement.ACH_WIN_100_GAMES: - if (m_nTotalNumWins >= 100) { - UnlockAchievement(achievement); - } - break; - case Achievement.ACH_TRAVEL_FAR_ACCUM: - if (m_flTotalFeetTraveled >= 5280) { - UnlockAchievement(achievement); - } - break; - case Achievement.ACH_TRAVEL_FAR_SINGLE: - if (m_flGameFeetTraveled >= 500) { - UnlockAchievement(achievement); - } - break; - } - } - - //Store stats in the Steam database if necessary - if (m_bStoreStats) { - // already set any achievements in UnlockAchievement - - // set stats - SteamUserStats.SetStat("NumGames", m_nTotalGamesPlayed); - SteamUserStats.SetStat("NumWins", m_nTotalNumWins); - SteamUserStats.SetStat("NumLosses", m_nTotalNumLosses); - SteamUserStats.SetStat("FeetTraveled", m_flTotalFeetTraveled); - SteamUserStats.SetStat("MaxFeetTraveled", m_flMaxFeetTraveled); - // Update average feet / second stat - SteamUserStats.UpdateAvgRateStat("AverageSpeed", m_flGameFeetTraveled, m_flGameDurationSeconds); - // The averaged result is calculated for us - SteamUserStats.GetStat("AverageSpeed", out m_flAverageSpeed); - - bool bSuccess = SteamUserStats.StoreStats(); - // If this failed, we never sent anything to the server, try - // again later. - m_bStoreStats = !bSuccess; - } - } - - //----------------------------------------------------------------------------- - // Purpose: Accumulate distance traveled - //----------------------------------------------------------------------------- - public void AddDistanceTraveled(float flDistance) { - m_flGameFeetTraveled += flDistance; - } - - //----------------------------------------------------------------------------- - // Purpose: Game state has changed - //----------------------------------------------------------------------------- - public void OnGameStateChange(EClientGameState eNewState) { - if (!m_bStatsValid) - return; - - if (eNewState == EClientGameState.k_EClientGameActive) { - // Reset per-game stats - m_flGameFeetTraveled = 0; - m_ulTickCountGameStart = Time.time; - } - else if (eNewState == EClientGameState.k_EClientGameWinner || eNewState == EClientGameState.k_EClientGameLoser) { - if (eNewState == EClientGameState.k_EClientGameWinner) { - m_nTotalNumWins++; - } - else { - m_nTotalNumLosses++; - } - - // Tally games - m_nTotalGamesPlayed++; - - // Accumulate distances - m_flTotalFeetTraveled += m_flGameFeetTraveled; - - // New max? - if (m_flGameFeetTraveled > m_flMaxFeetTraveled) - m_flMaxFeetTraveled = m_flGameFeetTraveled; - - // Calc game duration - m_flGameDurationSeconds = Time.time - m_ulTickCountGameStart; - - // We want to update stats the next frame. - m_bStoreStats = true; - } - } - - //----------------------------------------------------------------------------- - // Purpose: Unlock this achievement - //----------------------------------------------------------------------------- - private void UnlockAchievement(Achievement_t achievement) { - achievement.m_bAchieved = true; - - // the icon may change once it's unlocked - //achievement.m_iIconImage = 0; - - // mark it down - SteamUserStats.SetAchievement(achievement.m_eAchievementID.ToString()); - - // Store stats end of frame - m_bStoreStats = true; - } - - //----------------------------------------------------------------------------- - // Purpose: We have stats data from Steam. It is authoritative, so update - // our data with those results now. - //----------------------------------------------------------------------------- - private void OnUserStatsReceived(UserStatsReceived_t pCallback) { - if (!SteamManager.Initialized) - return; - - // we may get callbacks for other games' stats arriving, ignore them - if ((ulong)m_GameID == pCallback.m_nGameID) { - if (EResult.k_EResultOK == pCallback.m_eResult) { - Debug.Log("Received stats and achievements from Steam\n"); - - m_bStatsValid = true; - - // load achievements - foreach (Achievement_t ach in m_Achievements) { - bool ret = SteamUserStats.GetAchievement(ach.m_eAchievementID.ToString(), out ach.m_bAchieved); - if (ret) { - ach.m_strName = SteamUserStats.GetAchievementDisplayAttribute(ach.m_eAchievementID.ToString(), "name"); - ach.m_strDescription = SteamUserStats.GetAchievementDisplayAttribute(ach.m_eAchievementID.ToString(), "desc"); - } - else { - Debug.LogWarning("SteamUserStats.GetAchievement failed for Achievement " + ach.m_eAchievementID + "\nIs it registered in the Steam Partner site?"); - } - } - - // load stats - SteamUserStats.GetStat("NumGames", out m_nTotalGamesPlayed); - SteamUserStats.GetStat("NumWins", out m_nTotalNumWins); - SteamUserStats.GetStat("NumLosses", out m_nTotalNumLosses); - SteamUserStats.GetStat("FeetTraveled", out m_flTotalFeetTraveled); - SteamUserStats.GetStat("MaxFeetTraveled", out m_flMaxFeetTraveled); - SteamUserStats.GetStat("AverageSpeed", out m_flAverageSpeed); - } - else { - Debug.Log("RequestStats - failed, " + pCallback.m_eResult); - } - } - } - - //----------------------------------------------------------------------------- - // Purpose: Our stats data was stored! - //----------------------------------------------------------------------------- - private void OnUserStatsStored(UserStatsStored_t pCallback) { - // we may get callbacks for other games' stats arriving, ignore them - if ((ulong)m_GameID == pCallback.m_nGameID) { - if (EResult.k_EResultOK == pCallback.m_eResult) { - Debug.Log("StoreStats - success"); - } - else if (EResult.k_EResultInvalidParam == pCallback.m_eResult) { - // One or more stats we set broke a constraint. They've been reverted, - // and we should re-iterate the values now to keep in sync. - Debug.Log("StoreStats - some failed to validate"); - // Fake up a callback here so that we re-load the values. - UserStatsReceived_t callback = new UserStatsReceived_t(); - callback.m_eResult = EResult.k_EResultOK; - callback.m_nGameID = (ulong)m_GameID; - OnUserStatsReceived(callback); - } - else { - Debug.Log("StoreStats - failed, " + pCallback.m_eResult); - } - } - } - - //----------------------------------------------------------------------------- - // Purpose: An achievement was stored - //----------------------------------------------------------------------------- - private void OnAchievementStored(UserAchievementStored_t pCallback) { - // We may get callbacks for other games' stats arriving, ignore them - if ((ulong)m_GameID == pCallback.m_nGameID) { - if (0 == pCallback.m_nMaxProgress) { - Debug.Log("Achievement '" + pCallback.m_rgchAchievementName + "' unlocked!"); - } - else { - Debug.Log("Achievement '" + pCallback.m_rgchAchievementName + "' progress callback, (" + pCallback.m_nCurProgress + "," + pCallback.m_nMaxProgress + ")"); - } - } - } - - //----------------------------------------------------------------------------- - // Purpose: Display the user's stats and achievements - //----------------------------------------------------------------------------- - public void Render() { - if (!SteamManager.Initialized) { - GUILayout.Label("Steamworks not Initialized"); - return; - } - - GUILayout.Label("m_ulTickCountGameStart: " + m_ulTickCountGameStart); - GUILayout.Label("m_flGameDurationSeconds: " + m_flGameDurationSeconds); - GUILayout.Label("m_flGameFeetTraveled: " + m_flGameFeetTraveled); - GUILayout.Space(10); - GUILayout.Label("NumGames: " + m_nTotalGamesPlayed); - GUILayout.Label("NumWins: " + m_nTotalNumWins); - GUILayout.Label("NumLosses: " + m_nTotalNumLosses); - GUILayout.Label("FeetTraveled: " + m_flTotalFeetTraveled); - GUILayout.Label("MaxFeetTraveled: " + m_flMaxFeetTraveled); - GUILayout.Label("AverageSpeed: " + m_flAverageSpeed); - - GUILayout.BeginArea(new Rect(Screen.width - 300, 0, 300, 800)); - foreach(Achievement_t ach in m_Achievements) { - GUILayout.Label(ach.m_eAchievementID.ToString()); - GUILayout.Label(ach.m_strName + " - " + ach.m_strDescription); - GUILayout.Label("Achieved: " + ach.m_bAchieved); - GUILayout.Space(20); - } - - // FOR TESTING PURPOSES ONLY! - if (GUILayout.Button("RESET STATS AND ACHIEVEMENTS")) { - SteamUserStats.ResetAllStats(true); - SteamUserStats.RequestCurrentStats(); - OnGameStateChange(EClientGameState.k_EClientGameActive); - } - GUILayout.EndArea(); - } - - private class Achievement_t { - public Achievement m_eAchievementID; - public string m_strName; - public string m_strDescription; - public bool m_bAchieved; - - /// - /// Creates an Achievement. You must also mirror the data provided here in https://partner.steamgames.com/apps/achievements/yourappid - /// - /// The "API Name Progress Stat" used to uniquely identify the achievement. - /// The "Display Name" that will be shown to players in game and on the Steam Community. - /// The "Description" that will be shown to players in game and on the Steam Community. - public Achievement_t(Achievement achievementID, string name, string desc) { - m_eAchievementID = achievementID; - m_strName = name; - m_strDescription = desc; - m_bAchieved = false; - } - } -} +using UnityEngine; +using System.Collections; +using System.ComponentModel; +using Steamworks; + +// This is a port of StatsAndAchievements.cpp from SpaceWar, the official Steamworks Example. +class SteamStatsAndAchievements : MonoBehaviour { + private enum Achievement : int { + ACH_WIN_ONE_GAME, + ACH_WIN_100_GAMES, + ACH_HEAVY_FIRE, + ACH_TRAVEL_FAR_ACCUM, + ACH_TRAVEL_FAR_SINGLE, + }; + + private Achievement_t[] m_Achievements = new Achievement_t[] { + new Achievement_t(Achievement.ACH_WIN_ONE_GAME, "Winner", ""), + new Achievement_t(Achievement.ACH_WIN_100_GAMES, "Champion", ""), + new Achievement_t(Achievement.ACH_TRAVEL_FAR_ACCUM, "Interstellar", ""), + new Achievement_t(Achievement.ACH_TRAVEL_FAR_SINGLE, "Orbiter", "") + }; + + // Our GameID + private CGameID m_GameID; + + // Did we get the stats from Steam? + private bool m_bRequestedStats; + private bool m_bStatsValid; + + // Should we store stats this frame? + private bool m_bStoreStats; + + // Current Stat details + private float m_flGameFeetTraveled; + private float m_ulTickCountGameStart; + private double m_flGameDurationSeconds; + + // Persisted Stat details + private int m_nTotalGamesPlayed; + private int m_nTotalNumWins; + private int m_nTotalNumLosses; + private float m_flTotalFeetTraveled; + private float m_flMaxFeetTraveled; + private float m_flAverageSpeed; + + protected Callback m_UserStatsReceived; + protected Callback m_UserStatsStored; + protected Callback m_UserAchievementStored; + + void OnEnable() { + if (!SteamManager.Initialized) + return; + + // Cache the GameID for use in the Callbacks + m_GameID = new CGameID(SteamUtils.GetAppID()); + + m_UserStatsReceived = Callback.Create(OnUserStatsReceived); + m_UserStatsStored = Callback.Create(OnUserStatsStored); + m_UserAchievementStored = Callback.Create(OnAchievementStored); + + // These need to be reset to get the stats upon an Assembly reload in the Editor. + m_bRequestedStats = false; + m_bStatsValid = false; + } + + private void Update() { + if (!SteamManager.Initialized) + return; + + if (!m_bRequestedStats) { + // Is Steam Loaded? if no, can't get stats, done + if (!SteamManager.Initialized) { + m_bRequestedStats = true; + return; + } + + // If yes, request our stats + bool bSuccess = SteamUserStats.RequestCurrentStats(); + + // This function should only return false if we weren't logged in, and we already checked that. + // But handle it being false again anyway, just ask again later. + m_bRequestedStats = bSuccess; + } + + if (!m_bStatsValid) + return; + + // Get info from sources + + // Evaluate achievements + foreach (Achievement_t achievement in m_Achievements) { + if (achievement.m_bAchieved) + continue; + + switch (achievement.m_eAchievementID) { + case Achievement.ACH_WIN_ONE_GAME: + if (m_nTotalNumWins != 0) { + UnlockAchievement(achievement); + } + break; + case Achievement.ACH_WIN_100_GAMES: + if (m_nTotalNumWins >= 100) { + UnlockAchievement(achievement); + } + break; + case Achievement.ACH_TRAVEL_FAR_ACCUM: + if (m_flTotalFeetTraveled >= 5280) { + UnlockAchievement(achievement); + } + break; + case Achievement.ACH_TRAVEL_FAR_SINGLE: + if (m_flGameFeetTraveled >= 500) { + UnlockAchievement(achievement); + } + break; + } + } + + //Store stats in the Steam database if necessary + if (m_bStoreStats) { + // already set any achievements in UnlockAchievement + + // set stats + SteamUserStats.SetStat("NumGames", m_nTotalGamesPlayed); + SteamUserStats.SetStat("NumWins", m_nTotalNumWins); + SteamUserStats.SetStat("NumLosses", m_nTotalNumLosses); + SteamUserStats.SetStat("FeetTraveled", m_flTotalFeetTraveled); + SteamUserStats.SetStat("MaxFeetTraveled", m_flMaxFeetTraveled); + // Update average feet / second stat + SteamUserStats.UpdateAvgRateStat("AverageSpeed", m_flGameFeetTraveled, m_flGameDurationSeconds); + // The averaged result is calculated for us + SteamUserStats.GetStat("AverageSpeed", out m_flAverageSpeed); + + bool bSuccess = SteamUserStats.StoreStats(); + // If this failed, we never sent anything to the server, try + // again later. + m_bStoreStats = !bSuccess; + } + } + + //----------------------------------------------------------------------------- + // Purpose: Accumulate distance traveled + //----------------------------------------------------------------------------- + public void AddDistanceTraveled(float flDistance) { + m_flGameFeetTraveled += flDistance; + } + + //----------------------------------------------------------------------------- + // Purpose: Game state has changed + //----------------------------------------------------------------------------- + public void OnGameStateChange(EClientGameState eNewState) { + if (!m_bStatsValid) + return; + + if (eNewState == EClientGameState.k_EClientGameActive) { + // Reset per-game stats + m_flGameFeetTraveled = 0; + m_ulTickCountGameStart = Time.time; + } + else if (eNewState == EClientGameState.k_EClientGameWinner || eNewState == EClientGameState.k_EClientGameLoser) { + if (eNewState == EClientGameState.k_EClientGameWinner) { + m_nTotalNumWins++; + } + else { + m_nTotalNumLosses++; + } + + // Tally games + m_nTotalGamesPlayed++; + + // Accumulate distances + m_flTotalFeetTraveled += m_flGameFeetTraveled; + + // New max? + if (m_flGameFeetTraveled > m_flMaxFeetTraveled) + m_flMaxFeetTraveled = m_flGameFeetTraveled; + + // Calc game duration + m_flGameDurationSeconds = Time.time - m_ulTickCountGameStart; + + // We want to update stats the next frame. + m_bStoreStats = true; + } + } + + //----------------------------------------------------------------------------- + // Purpose: Unlock this achievement + //----------------------------------------------------------------------------- + private void UnlockAchievement(Achievement_t achievement) { + achievement.m_bAchieved = true; + + // the icon may change once it's unlocked + //achievement.m_iIconImage = 0; + + // mark it down + SteamUserStats.SetAchievement(achievement.m_eAchievementID.ToString()); + + // Store stats end of frame + m_bStoreStats = true; + } + + //----------------------------------------------------------------------------- + // Purpose: We have stats data from Steam. It is authoritative, so update + // our data with those results now. + //----------------------------------------------------------------------------- + private void OnUserStatsReceived(UserStatsReceived_t pCallback) { + if (!SteamManager.Initialized) + return; + + // we may get callbacks for other games' stats arriving, ignore them + if ((ulong)m_GameID == pCallback.m_nGameID) { + if (EResult.k_EResultOK == pCallback.m_eResult) { + Debug.Log("Received stats and achievements from Steam\n"); + + m_bStatsValid = true; + + // load achievements + foreach (Achievement_t ach in m_Achievements) { + bool ret = SteamUserStats.GetAchievement(ach.m_eAchievementID.ToString(), out ach.m_bAchieved); + if (ret) { + ach.m_strName = SteamUserStats.GetAchievementDisplayAttribute(ach.m_eAchievementID.ToString(), "name"); + ach.m_strDescription = SteamUserStats.GetAchievementDisplayAttribute(ach.m_eAchievementID.ToString(), "desc"); + } + else { + Debug.LogWarning("SteamUserStats.GetAchievement failed for Achievement " + ach.m_eAchievementID + "\nIs it registered in the Steam Partner site?"); + } + } + + // load stats + SteamUserStats.GetStat("NumGames", out m_nTotalGamesPlayed); + SteamUserStats.GetStat("NumWins", out m_nTotalNumWins); + SteamUserStats.GetStat("NumLosses", out m_nTotalNumLosses); + SteamUserStats.GetStat("FeetTraveled", out m_flTotalFeetTraveled); + SteamUserStats.GetStat("MaxFeetTraveled", out m_flMaxFeetTraveled); + SteamUserStats.GetStat("AverageSpeed", out m_flAverageSpeed); + } + else { + Debug.Log("RequestStats - failed, " + pCallback.m_eResult); + } + } + } + + //----------------------------------------------------------------------------- + // Purpose: Our stats data was stored! + //----------------------------------------------------------------------------- + private void OnUserStatsStored(UserStatsStored_t pCallback) { + // we may get callbacks for other games' stats arriving, ignore them + if ((ulong)m_GameID == pCallback.m_nGameID) { + if (EResult.k_EResultOK == pCallback.m_eResult) { + Debug.Log("StoreStats - success"); + } + else if (EResult.k_EResultInvalidParam == pCallback.m_eResult) { + // One or more stats we set broke a constraint. They've been reverted, + // and we should re-iterate the values now to keep in sync. + Debug.Log("StoreStats - some failed to validate"); + // Fake up a callback here so that we re-load the values. + UserStatsReceived_t callback = new UserStatsReceived_t(); + callback.m_eResult = EResult.k_EResultOK; + callback.m_nGameID = (ulong)m_GameID; + OnUserStatsReceived(callback); + } + else { + Debug.Log("StoreStats - failed, " + pCallback.m_eResult); + } + } + } + + //----------------------------------------------------------------------------- + // Purpose: An achievement was stored + //----------------------------------------------------------------------------- + private void OnAchievementStored(UserAchievementStored_t pCallback) { + // We may get callbacks for other games' stats arriving, ignore them + if ((ulong)m_GameID == pCallback.m_nGameID) { + if (0 == pCallback.m_nMaxProgress) { + Debug.Log("Achievement '" + pCallback.m_rgchAchievementName + "' unlocked!"); + } + else { + Debug.Log("Achievement '" + pCallback.m_rgchAchievementName + "' progress callback, (" + pCallback.m_nCurProgress + "," + pCallback.m_nMaxProgress + ")"); + } + } + } + + //----------------------------------------------------------------------------- + // Purpose: Display the user's stats and achievements + //----------------------------------------------------------------------------- + public void Render() { + if (!SteamManager.Initialized) { + GUILayout.Label("Steamworks not Initialized"); + return; + } + + GUILayout.Label("m_ulTickCountGameStart: " + m_ulTickCountGameStart); + GUILayout.Label("m_flGameDurationSeconds: " + m_flGameDurationSeconds); + GUILayout.Label("m_flGameFeetTraveled: " + m_flGameFeetTraveled); + GUILayout.Space(10); + GUILayout.Label("NumGames: " + m_nTotalGamesPlayed); + GUILayout.Label("NumWins: " + m_nTotalNumWins); + GUILayout.Label("NumLosses: " + m_nTotalNumLosses); + GUILayout.Label("FeetTraveled: " + m_flTotalFeetTraveled); + GUILayout.Label("MaxFeetTraveled: " + m_flMaxFeetTraveled); + GUILayout.Label("AverageSpeed: " + m_flAverageSpeed); + + GUILayout.BeginArea(new Rect(Screen.width - 300, 0, 300, 800)); + foreach(Achievement_t ach in m_Achievements) { + GUILayout.Label(ach.m_eAchievementID.ToString()); + GUILayout.Label(ach.m_strName + " - " + ach.m_strDescription); + GUILayout.Label("Achieved: " + ach.m_bAchieved); + GUILayout.Space(20); + } + + // FOR TESTING PURPOSES ONLY! + if (GUILayout.Button("RESET STATS AND ACHIEVEMENTS")) { + SteamUserStats.ResetAllStats(true); + SteamUserStats.RequestCurrentStats(); + OnGameStateChange(EClientGameState.k_EClientGameActive); + } + GUILayout.EndArea(); + } + + private class Achievement_t { + public Achievement m_eAchievementID; + public string m_strName; + public string m_strDescription; + public bool m_bAchieved; + + /// + /// Creates an Achievement. You must also mirror the data provided here in https://partner.steamgames.com/apps/achievements/yourappid + /// + /// The "API Name Progress Stat" used to uniquely identify the achievement. + /// The "Display Name" that will be shown to players in game and on the Steam Community. + /// The "Description" that will be shown to players in game and on the Steam Community. + public Achievement_t(Achievement achievementID, string name, string desc) { + m_eAchievementID = achievementID; + m_strName = name; + m_strDescription = desc; + m_bAchieved = false; + } + } +} diff --git a/Assets/Scripts/Steamwork.NET.meta b/Assets/Scripts/Steamwork.NET.meta deleted file mode 100644 index 629f9d5..0000000 --- a/Assets/Scripts/Steamwork.NET.meta +++ /dev/null @@ -1,5 +0,0 @@ -fileFormatVersion: 2 -guid: cbb7ec2c620a19d468fffebbc41e0bb4 -folderAsset: yes -DefaultImporter: - userData: diff --git a/Assets/Scripts/Steamwork.NET/SteamManager.cs b/Assets/Scripts/Steamwork.NET/SteamManager.cs deleted file mode 100644 index 30b4873..0000000 --- a/Assets/Scripts/Steamwork.NET/SteamManager.cs +++ /dev/null @@ -1,149 +0,0 @@ -// The SteamManager is designed to work with Steamworks.NET -// This file is released into the public domain. -// Where that dedication is not recognized you are granted a perpetual, -// irrevokable license to copy and modify this files as you see fit. -// -// Version: 1.0.3 - -using UnityEngine; -using System.Collections; -using Steamworks; - -// -// The SteamManager provides a base implementation of Steamworks.NET on which you can build upon. -// It handles the basics of starting up and shutting down the SteamAPI for use. -// -[DisallowMultipleComponent] -class SteamManager : MonoBehaviour { - private static SteamManager s_instance; - private static SteamManager Instance { - get { - return s_instance ?? new GameObject("SteamManager").AddComponent(); - } - } - - private static bool s_EverInialized; - - private bool m_bInitialized; - public static bool Initialized { - get { - return Instance.m_bInitialized; - } - } - - private SteamAPIWarningMessageHook_t m_SteamAPIWarningMessageHook; - private static void SteamAPIDebugTextHook(int nSeverity, System.Text.StringBuilder pchDebugText) { - Debug.LogWarning(pchDebugText); - } - - private void Awake() { - // Only one instance of SteamManager at a time! - if (s_instance != null) { - Destroy(gameObject); - return; - } - s_instance = this; - - if(s_EverInialized) { - // This is almost always an error. - // The most common case where this happens is the SteamManager getting desstroyed via Application.Quit() and having some code in some OnDestroy which gets called afterwards, creating a new SteamManager. - throw new System.Exception("Tried to Initialize the SteamAPI twice in one session!"); - } - - // We want our SteamManager Instance to persist across scenes. - DontDestroyOnLoad(gameObject); - - if (!Packsize.Test()) { - Debug.LogError("[Steamworks.NET] Packsize Test returned false, the wrong version of Steamworks.NET is being run in this platform.", this); - } - - if (!DllCheck.Test()) { - Debug.LogError("[Steamworks.NET] DllCheck Test returned false, One or more of the Steamworks binaries seems to be the wrong version.", this); - } - - try { - // If Steam is not running or the game wasn't started through Steam, SteamAPI_RestartAppIfNecessary starts the - // Steam client and also launches this game again if the User owns it. This can act as a rudimentary form of DRM. - - // Once you get a Steam AppID assigned by Valve, you need to replace AppId_t.Invalid with it and - // remove steam_appid.txt from the game depot. eg: "(AppId_t)480" or "new AppId_t(480)". - // See the Valve documentation for more information: https://partner.steamgames.com/documentation/drm#FAQ - if (SteamAPI.RestartAppIfNecessary(AppId_t.Invalid)) { - Application.Quit(); - return; - } - } - catch (System.DllNotFoundException e) { // We catch this exception here, as it will be the first occurence of it. - Debug.LogError("[Steamworks.NET] Could not load [lib]steam_api.dll/so/dylib. It's likely not in the correct location. Refer to the README for more details.\n" + e, this); - - Application.Quit(); - return; - } - - // Initialize the SteamAPI, if Init() returns false this can happen for many reasons. - // Some examples include: - // Steam Client is not running. - // Launching from outside of steam without a steam_appid.txt file in place. - // Running under a different OS User or Access level (for example running "as administrator") - // Valve's documentation for this is located here: - // https://partner.steamgames.com/documentation/getting_started - // https://partner.steamgames.com/documentation/example // Under: Common Build Problems - // https://partner.steamgames.com/documentation/bootstrap_stats // At the very bottom - - // If you're running into Init issues try running DbgView prior to launching to get the internal output from Steam. - // http://technet.microsoft.com/en-us/sysinternals/bb896647.aspx - m_bInitialized = SteamAPI.Init(); - if (!m_bInitialized) { - Debug.LogError("[Steamworks.NET] SteamAPI_Init() failed. Refer to Valve's documentation or the comment above this line for more information.", this); - - return; - } - - s_EverInialized = true; - } - - // This should only ever get called on first load and after an Assembly reload, You should never Disable the Steamworks Manager yourself. - private void OnEnable() { - if (s_instance == null) { - s_instance = this; - } - - if (!m_bInitialized) { - return; - } - - if (m_SteamAPIWarningMessageHook == null) { - // Set up our callback to recieve warning messages from Steam. - // You must launch with "-debug_steamapi" in the launch args to recieve warnings. - m_SteamAPIWarningMessageHook = new SteamAPIWarningMessageHook_t(SteamAPIDebugTextHook); - SteamClient.SetWarningMessageHook(m_SteamAPIWarningMessageHook); - } - } - - - // OnApplicationQuit gets called too early to shutdown the SteamAPI. - // Because the SteamManager should be persistent and never disabled or destroyed we can shutdown the SteamAPI here. - // Thus it is not recommended to perform any Steamworks work in other OnDestroy functions as the order of execution can not be garenteed upon Shutdown. Prefer OnDisable(). - private void OnDestroy() { - if (s_instance != this) { - return; - } - - s_instance = null; - - if (!m_bInitialized) { - return; - } - - SteamAPI.Shutdown(); - } - - private void Update() { - if (!m_bInitialized) { - return; - } - - // Run Steam client callbacks - SteamAPI.RunCallbacks(); - } -} diff --git a/Assets/Scripts/Steamworks.NET.meta b/Assets/Scripts/Steamworks.NET.meta new file mode 100644 index 0000000..81fff1c --- /dev/null +++ b/Assets/Scripts/Steamworks.NET.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: a90117251854fed498bab6075c0bd75d +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/Steamworks.NET/SteamManager.cs b/Assets/Scripts/Steamworks.NET/SteamManager.cs new file mode 100644 index 0000000..3a462c5 --- /dev/null +++ b/Assets/Scripts/Steamworks.NET/SteamManager.cs @@ -0,0 +1,182 @@ +// The SteamManager is designed to work with Steamworks.NET +// This file is released into the public domain. +// Where that dedication is not recognized you are granted a perpetual, +// irrevocable license to copy and modify this file as you see fit. +// +// Version: 1.0.13 + +#if !(UNITY_STANDALONE_WIN || UNITY_STANDALONE_LINUX || UNITY_STANDALONE_OSX || STEAMWORKS_WIN || STEAMWORKS_LIN_OSX) +#define DISABLESTEAMWORKS +#endif + +using UnityEngine; +#if !DISABLESTEAMWORKS +using System.Collections; +using Steamworks; +#endif + +// +// The SteamManager provides a base implementation of Steamworks.NET on which you can build upon. +// It handles the basics of starting up and shutting down the SteamAPI for use. +// +[DisallowMultipleComponent] +public class SteamManager : MonoBehaviour { +#if !DISABLESTEAMWORKS + protected static bool s_EverInitialized = false; + + protected static SteamManager s_instance; + protected static SteamManager Instance { + get { + if (s_instance == null) { + return new GameObject("SteamManager").AddComponent(); + } + else { + return s_instance; + } + } + } + + protected bool m_bInitialized = false; + public static bool Initialized { + get { + return Instance.m_bInitialized; + } + } + + protected SteamAPIWarningMessageHook_t m_SteamAPIWarningMessageHook; + + [AOT.MonoPInvokeCallback(typeof(SteamAPIWarningMessageHook_t))] + protected static void SteamAPIDebugTextHook(int nSeverity, System.Text.StringBuilder pchDebugText) { + Debug.LogWarning(pchDebugText); + } + +#if UNITY_2019_3_OR_NEWER + // In case of disabled Domain Reload, reset static members before entering Play Mode. + [RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.SubsystemRegistration)] + private static void InitOnPlayMode() + { + s_EverInitialized = false; + s_instance = null; + } +#endif + + protected virtual void Awake() { + // Only one instance of SteamManager at a time! + if (s_instance != null) { + Destroy(gameObject); + return; + } + s_instance = this; + + if(s_EverInitialized) { + // This is almost always an error. + // The most common case where this happens is when SteamManager gets destroyed because of Application.Quit(), + // and then some Steamworks code in some other OnDestroy gets called afterwards, creating a new SteamManager. + // You should never call Steamworks functions in OnDestroy, always prefer OnDisable if possible. + throw new System.Exception("Tried to Initialize the SteamAPI twice in one session!"); + } + + // We want our SteamManager Instance to persist across scenes. + DontDestroyOnLoad(gameObject); + + if (!Packsize.Test()) { + Debug.LogError("[Steamworks.NET] Packsize Test returned false, the wrong version of Steamworks.NET is being run in this platform.", this); + } + + if (!DllCheck.Test()) { + Debug.LogError("[Steamworks.NET] DllCheck Test returned false, One or more of the Steamworks binaries seems to be the wrong version.", this); + } + + try { + // If Steam is not running or the game wasn't started through Steam, SteamAPI_RestartAppIfNecessary starts the + // Steam client and also launches this game again if the User owns it. This can act as a rudimentary form of DRM. + // Note that this will run which ever version you have installed in steam. Which may not be the precise executable + // we were currently running. + + // Once you get a Steam AppID assigned by Valve, you need to replace AppId_t.Invalid with it and + // remove steam_appid.txt from the game depot. eg: "(AppId_t)480" or "new AppId_t(480)". + // See the Valve documentation for more information: https://partner.steamgames.com/doc/sdk/api#initialization_and_shutdown + if (SteamAPI.RestartAppIfNecessary(AppId_t.Invalid)) { + Debug.Log("[Steamworks.NET] Shutting down because RestartAppIfNecessary returned true. Steam will restart the application."); + + Application.Quit(); + return; + } + } + catch (System.DllNotFoundException e) { // We catch this exception here, as it will be the first occurrence of it. + Debug.LogError("[Steamworks.NET] Could not load [lib]steam_api.dll/so/dylib. It's likely not in the correct location. Refer to the README for more details.\n" + e, this); + + Application.Quit(); + return; + } + + // Initializes the Steamworks API. + // If this returns false then this indicates one of the following conditions: + // [*] The Steam client isn't running. A running Steam client is required to provide implementations of the various Steamworks interfaces. + // [*] The Steam client couldn't determine the App ID of game. If you're running your application from the executable or debugger directly then you must have a [code-inline]steam_appid.txt[/code-inline] in your game directory next to the executable, with your app ID in it and nothing else. Steam will look for this file in the current working directory. If you are running your executable from a different directory you may need to relocate the [code-inline]steam_appid.txt[/code-inline] file. + // [*] Your application is not running under the same OS user context as the Steam client, such as a different user or administration access level. + // [*] Ensure that you own a license for the App ID on the currently active Steam account. Your game must show up in your Steam library. + // [*] Your App ID is not completely set up, i.e. in Release State: Unavailable, or it's missing default packages. + // Valve's documentation for this is located here: + // https://partner.steamgames.com/doc/sdk/api#initialization_and_shutdown + m_bInitialized = SteamAPI.Init(); + if (!m_bInitialized) { + Debug.LogError("[Steamworks.NET] SteamAPI_Init() failed. Refer to Valve's documentation or the comment above this line for more information.", this); + + return; + } + + s_EverInitialized = true; + } + + // This should only ever get called on first load and after an Assembly reload, You should never Disable the Steamworks Manager yourself. + protected virtual void OnEnable() { + if (s_instance == null) { + s_instance = this; + } + + if (!m_bInitialized) { + return; + } + + if (m_SteamAPIWarningMessageHook == null) { + // Set up our callback to receive warning messages from Steam. + // You must launch with "-debug_steamapi" in the launch args to receive warnings. + m_SteamAPIWarningMessageHook = new SteamAPIWarningMessageHook_t(SteamAPIDebugTextHook); + SteamClient.SetWarningMessageHook(m_SteamAPIWarningMessageHook); + } + } + + // OnApplicationQuit gets called too early to shutdown the SteamAPI. + // Because the SteamManager should be persistent and never disabled or destroyed we can shutdown the SteamAPI here. + // Thus it is not recommended to perform any Steamworks work in other OnDestroy functions as the order of execution can not be garenteed upon Shutdown. Prefer OnDisable(). + protected virtual void OnDestroy() { + if (s_instance != this) { + return; + } + + s_instance = null; + + if (!m_bInitialized) { + return; + } + + SteamAPI.Shutdown(); + } + + protected virtual void Update() { + if (!m_bInitialized) { + return; + } + + // Run Steam client callbacks + SteamAPI.RunCallbacks(); + } +#else + public static bool Initialized { + get { + return false; + } + } +#endif // !DISABLESTEAMWORKS +} diff --git a/Assets/Scripts/Steamwork.NET/SteamManager.cs.meta b/Assets/Scripts/Steamworks.NET/SteamManager.cs.meta similarity index 78% rename from Assets/Scripts/Steamwork.NET/SteamManager.cs.meta rename to Assets/Scripts/Steamworks.NET/SteamManager.cs.meta index a43eefc..9281178 100644 --- a/Assets/Scripts/Steamwork.NET/SteamManager.cs.meta +++ b/Assets/Scripts/Steamworks.NET/SteamManager.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 03d4ed1ce33fe0a42bb1fcb3ebacea03 +guid: ef4bffeda13d7a748973ff9204401c07 MonoImporter: serializedVersion: 2 defaultReferences: [] diff --git a/LICENSE.txt b/LICENSE.txt index d692d84..b0a72fb 100644 --- a/LICENSE.txt +++ b/LICENSE.txt @@ -1,5 +1,24 @@ - * Riley Labrecque - 2015 - Public Domain - * - * This software is in the public domain. Where that dedication is not - * recognized, you are granted a perpetual, irrevokable license to copy - * and modify these files as you see fit. +This is free and unencumbered software released into the public domain. + +Anyone is free to copy, modify, publish, use, compile, sell, or +distribute this software, either in source code form or as a compiled +binary, for any purpose, commercial or non-commercial, and by any +means. + +In jurisdictions that recognize copyright laws, the author or authors +of this software dedicate any and all copyright interest in the +software to the public domain. We make this dedication for the benefit +of the public at large and to the detriment of our heirs and +successors. We intend this dedication to be an overt act of +relinquishment in perpetuity of all present and future rights to this +software under copyright law. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR +OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, +ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. + +For more information, please refer to \ No newline at end of file diff --git a/Packages/manifest.json b/Packages/manifest.json new file mode 100644 index 0000000..ff9582e --- /dev/null +++ b/Packages/manifest.json @@ -0,0 +1,40 @@ +{ + "dependencies": { + "com.rlabrecque.steamworks.net": "https://github.com/rlabrecque/Steamworks.NET.git?path=/com.rlabrecque.steamworks.net", + "com.unity.ide.rider": "3.0.12", + "com.unity.ide.visualstudio": "2.0.15", + "com.unity.ide.vscode": "1.2.5", + "com.unity.toolchain.win-x86_64-linux-x86_64": "1.0.0", + "com.unity.modules.ai": "1.0.0", + "com.unity.modules.androidjni": "1.0.0", + "com.unity.modules.animation": "1.0.0", + "com.unity.modules.assetbundle": "1.0.0", + "com.unity.modules.audio": "1.0.0", + "com.unity.modules.cloth": "1.0.0", + "com.unity.modules.director": "1.0.0", + "com.unity.modules.imageconversion": "1.0.0", + "com.unity.modules.imgui": "1.0.0", + "com.unity.modules.jsonserialize": "1.0.0", + "com.unity.modules.particlesystem": "1.0.0", + "com.unity.modules.physics": "1.0.0", + "com.unity.modules.physics2d": "1.0.0", + "com.unity.modules.screencapture": "1.0.0", + "com.unity.modules.terrain": "1.0.0", + "com.unity.modules.terrainphysics": "1.0.0", + "com.unity.modules.tilemap": "1.0.0", + "com.unity.modules.ui": "1.0.0", + "com.unity.modules.uielements": "1.0.0", + "com.unity.modules.umbra": "1.0.0", + "com.unity.modules.unityanalytics": "1.0.0", + "com.unity.modules.unitywebrequest": "1.0.0", + "com.unity.modules.unitywebrequestassetbundle": "1.0.0", + "com.unity.modules.unitywebrequestaudio": "1.0.0", + "com.unity.modules.unitywebrequesttexture": "1.0.0", + "com.unity.modules.unitywebrequestwww": "1.0.0", + "com.unity.modules.vehicles": "1.0.0", + "com.unity.modules.video": "1.0.0", + "com.unity.modules.vr": "1.0.0", + "com.unity.modules.wind": "1.0.0", + "com.unity.modules.xr": "1.0.0" + } +} diff --git a/Packages/packages-lock.json b/Packages/packages-lock.json new file mode 100644 index 0000000..92237ba --- /dev/null +++ b/Packages/packages-lock.json @@ -0,0 +1,322 @@ +{ + "dependencies": { + "com.rlabrecque.steamworks.net": { + "version": "https://github.com/rlabrecque/Steamworks.NET.git?path=/com.rlabrecque.steamworks.net", + "depth": 0, + "source": "git", + "dependencies": {}, + "hash": "4a54dc77a56fa37f195e5344422cff30a2805f3c" + }, + "com.unity.ext.nunit": { + "version": "1.0.6", + "depth": 1, + "source": "registry", + "dependencies": {}, + "url": "https://packages.unity.com" + }, + "com.unity.ide.rider": { + "version": "3.0.12", + "depth": 0, + "source": "registry", + "dependencies": { + "com.unity.ext.nunit": "1.0.6" + }, + "url": "https://packages.unity.com" + }, + "com.unity.ide.visualstudio": { + "version": "2.0.15", + "depth": 0, + "source": "registry", + "dependencies": { + "com.unity.test-framework": "1.1.9" + }, + "url": "https://packages.unity.com" + }, + "com.unity.ide.vscode": { + "version": "1.2.5", + "depth": 0, + "source": "registry", + "dependencies": {}, + "url": "https://packages.unity.com" + }, + "com.unity.sysroot": { + "version": "1.0.0", + "depth": 1, + "source": "registry", + "dependencies": {}, + "url": "https://packages.unity.com" + }, + "com.unity.sysroot.linux-x86_64": { + "version": "1.0.0", + "depth": 1, + "source": "registry", + "dependencies": { + "com.unity.sysroot": "1.0.0" + }, + "url": "https://packages.unity.com" + }, + "com.unity.test-framework": { + "version": "1.1.31", + "depth": 1, + "source": "registry", + "dependencies": { + "com.unity.ext.nunit": "1.0.6", + "com.unity.modules.imgui": "1.0.0", + "com.unity.modules.jsonserialize": "1.0.0" + }, + "url": "https://packages.unity.com" + }, + "com.unity.toolchain.win-x86_64-linux-x86_64": { + "version": "1.0.0", + "depth": 0, + "source": "registry", + "dependencies": { + "com.unity.sysroot": "1.0.0", + "com.unity.sysroot.linux-x86_64": "1.0.0" + }, + "url": "https://packages.unity.com" + }, + "com.unity.modules.ai": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": {} + }, + "com.unity.modules.androidjni": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": {} + }, + "com.unity.modules.animation": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": {} + }, + "com.unity.modules.assetbundle": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": {} + }, + "com.unity.modules.audio": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": {} + }, + "com.unity.modules.cloth": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": { + "com.unity.modules.physics": "1.0.0" + } + }, + "com.unity.modules.director": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": { + "com.unity.modules.audio": "1.0.0", + "com.unity.modules.animation": "1.0.0" + } + }, + "com.unity.modules.imageconversion": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": {} + }, + "com.unity.modules.imgui": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": {} + }, + "com.unity.modules.jsonserialize": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": {} + }, + "com.unity.modules.particlesystem": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": {} + }, + "com.unity.modules.physics": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": {} + }, + "com.unity.modules.physics2d": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": {} + }, + "com.unity.modules.screencapture": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": { + "com.unity.modules.imageconversion": "1.0.0" + } + }, + "com.unity.modules.subsystems": { + "version": "1.0.0", + "depth": 1, + "source": "builtin", + "dependencies": { + "com.unity.modules.jsonserialize": "1.0.0" + } + }, + "com.unity.modules.terrain": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": {} + }, + "com.unity.modules.terrainphysics": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": { + "com.unity.modules.physics": "1.0.0", + "com.unity.modules.terrain": "1.0.0" + } + }, + "com.unity.modules.tilemap": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": { + "com.unity.modules.physics2d": "1.0.0" + } + }, + "com.unity.modules.ui": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": {} + }, + "com.unity.modules.uielements": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": { + "com.unity.modules.imgui": "1.0.0", + "com.unity.modules.jsonserialize": "1.0.0" + } + }, + "com.unity.modules.umbra": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": {} + }, + "com.unity.modules.unityanalytics": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": { + "com.unity.modules.unitywebrequest": "1.0.0", + "com.unity.modules.jsonserialize": "1.0.0" + } + }, + "com.unity.modules.unitywebrequest": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": {} + }, + "com.unity.modules.unitywebrequestassetbundle": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": { + "com.unity.modules.assetbundle": "1.0.0", + "com.unity.modules.unitywebrequest": "1.0.0" + } + }, + "com.unity.modules.unitywebrequestaudio": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": { + "com.unity.modules.unitywebrequest": "1.0.0", + "com.unity.modules.audio": "1.0.0" + } + }, + "com.unity.modules.unitywebrequesttexture": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": { + "com.unity.modules.unitywebrequest": "1.0.0", + "com.unity.modules.imageconversion": "1.0.0" + } + }, + "com.unity.modules.unitywebrequestwww": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": { + "com.unity.modules.unitywebrequest": "1.0.0", + "com.unity.modules.unitywebrequestassetbundle": "1.0.0", + "com.unity.modules.unitywebrequestaudio": "1.0.0", + "com.unity.modules.audio": "1.0.0", + "com.unity.modules.assetbundle": "1.0.0", + "com.unity.modules.imageconversion": "1.0.0" + } + }, + "com.unity.modules.vehicles": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": { + "com.unity.modules.physics": "1.0.0" + } + }, + "com.unity.modules.video": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": { + "com.unity.modules.audio": "1.0.0", + "com.unity.modules.ui": "1.0.0", + "com.unity.modules.unitywebrequest": "1.0.0" + } + }, + "com.unity.modules.vr": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": { + "com.unity.modules.jsonserialize": "1.0.0", + "com.unity.modules.physics": "1.0.0", + "com.unity.modules.xr": "1.0.0" + } + }, + "com.unity.modules.wind": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": {} + }, + "com.unity.modules.xr": { + "version": "1.0.0", + "depth": 0, + "source": "builtin", + "dependencies": { + "com.unity.modules.physics": "1.0.0", + "com.unity.modules.jsonserialize": "1.0.0", + "com.unity.modules.subsystems": "1.0.0" + } + } + } +} diff --git a/ProjectSettings/ClusterInputManager.asset b/ProjectSettings/ClusterInputManager.asset new file mode 100644 index 0000000..e7886b2 --- /dev/null +++ b/ProjectSettings/ClusterInputManager.asset @@ -0,0 +1,6 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!236 &1 +ClusterInputManager: + m_ObjectHideFlags: 0 + m_Inputs: [] diff --git a/ProjectSettings/EditorSettings.asset b/ProjectSettings/EditorSettings.asset index f6bcc6a..ab517c4 100644 --- a/ProjectSettings/EditorSettings.asset +++ b/ProjectSettings/EditorSettings.asset @@ -3,10 +3,33 @@ --- !u!159 &1 EditorSettings: m_ObjectHideFlags: 0 - serializedVersion: 3 + serializedVersion: 9 m_ExternalVersionControlSupport: Visible Meta Files m_SerializationMode: 2 - m_WebSecurityEmulationEnabled: 0 - m_WebSecurityEmulationHostUrl: http://www.mydomain.com/mygame.unity3d + m_LineEndingsForNewScripts: 1 m_DefaultBehaviorMode: 0 + m_PrefabRegularEnvironment: {fileID: 0} + m_PrefabUIEnvironment: {fileID: 0} m_SpritePackerMode: 0 + m_SpritePackerPaddingPower: 1 + m_EtcTextureCompressorBehavior: 1 + m_EtcTextureFastCompressor: 1 + m_EtcTextureNormalCompressor: 2 + m_EtcTextureBestCompressor: 4 + m_ProjectGenerationIncludedExtensions: txt;xml;fnt;cd;asmdef;rsp;asmref + m_ProjectGenerationRootNamespace: + m_CollabEditorSettings: + inProgressEnabled: 1 + m_EnableTextureStreamingInEditMode: 1 + m_EnableTextureStreamingInPlayMode: 1 + m_AsyncShaderCompilation: 1 + m_EnterPlayModeOptionsEnabled: 0 + m_EnterPlayModeOptions: 3 + m_ShowLightmapResolutionOverlay: 1 + m_UseLegacyProbeSampleCount: 1 + m_AssetPipelineMode: 1 + m_CacheServerMode: 0 + m_CacheServerEndpoint: + m_CacheServerNamespacePrefix: default + m_CacheServerEnableDownload: 1 + m_CacheServerEnableUpload: 1 diff --git a/ProjectSettings/GraphicsSettings.asset b/ProjectSettings/GraphicsSettings.asset index 7bb5d16..32fbf91 100644 --- a/ProjectSettings/GraphicsSettings.asset +++ b/ProjectSettings/GraphicsSettings.asset @@ -3,8 +3,61 @@ --- !u!30 &1 GraphicsSettings: m_ObjectHideFlags: 0 - serializedVersion: 2 + serializedVersion: 12 + m_Deferred: + m_Mode: 1 + m_Shader: {fileID: 69, guid: 0000000000000000f000000000000000, type: 0} + m_DeferredReflections: + m_Mode: 1 + m_Shader: {fileID: 74, guid: 0000000000000000f000000000000000, type: 0} + m_ScreenSpaceShadows: + m_Mode: 1 + m_Shader: {fileID: 64, guid: 0000000000000000f000000000000000, type: 0} + m_LegacyDeferred: + m_Mode: 1 + m_Shader: {fileID: 63, guid: 0000000000000000f000000000000000, type: 0} + m_DepthNormals: + m_Mode: 1 + m_Shader: {fileID: 62, guid: 0000000000000000f000000000000000, type: 0} + m_MotionVectors: + m_Mode: 1 + m_Shader: {fileID: 75, guid: 0000000000000000f000000000000000, type: 0} + m_LightHalo: + m_Mode: 1 + m_Shader: {fileID: 105, guid: 0000000000000000f000000000000000, type: 0} + m_LensFlare: + m_Mode: 1 + m_Shader: {fileID: 102, guid: 0000000000000000f000000000000000, type: 0} m_AlwaysIncludedShaders: - {fileID: 7, guid: 0000000000000000f000000000000000, type: 0} + - {fileID: 15104, guid: 0000000000000000f000000000000000, type: 0} + - {fileID: 15105, guid: 0000000000000000f000000000000000, type: 0} + - {fileID: 15106, guid: 0000000000000000f000000000000000, type: 0} - {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0} - {fileID: 10782, guid: 0000000000000000f000000000000000, type: 0} + - {fileID: 17000, guid: 0000000000000000f000000000000000, type: 0} + - {fileID: 16000, guid: 0000000000000000f000000000000000, type: 0} + m_PreloadedShaders: [] + m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000, + type: 0} + m_CustomRenderPipeline: {fileID: 0} + m_TransparencySortMode: 0 + m_TransparencySortAxis: {x: 0, y: 0, z: 1} + m_DefaultRenderingPath: 1 + m_DefaultMobileRenderingPath: 1 + m_TierSettings: [] + m_LightmapStripping: 0 + m_FogStripping: 0 + m_InstancingStripping: 0 + m_LightmapKeepPlain: 1 + m_LightmapKeepDirCombined: 1 + m_LightmapKeepDynamicPlain: 1 + m_LightmapKeepDynamicDirCombined: 1 + m_LightmapKeepShadowMask: 1 + m_LightmapKeepSubtractive: 1 + m_FogKeepLinear: 1 + m_FogKeepExp: 1 + m_FogKeepExp2: 1 + m_AlbedoSwatchInfos: [] + m_LightsUseLinearIntensity: 0 + m_LightsUseColorTemperature: 0 diff --git a/ProjectSettings/NavMeshAreas.asset b/ProjectSettings/NavMeshAreas.asset new file mode 100644 index 0000000..79cb3ae --- /dev/null +++ b/ProjectSettings/NavMeshAreas.asset @@ -0,0 +1,133 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!126 &1 +NavMeshLayers: + m_ObjectHideFlags: 0 + Built-in Layer 0: + name: Default + cost: 1 + editType: 2 + Built-in Layer 1: + name: Not Walkable + cost: 1 + editType: 0 + Built-in Layer 2: + name: Jump + cost: 2 + editType: 2 + User Layer 0: + name: + cost: 1 + editType: 3 + User Layer 1: + name: + cost: 1 + editType: 3 + User Layer 2: + name: + cost: 1 + editType: 3 + User Layer 3: + name: + cost: 1 + editType: 3 + User Layer 4: + name: + cost: 1 + editType: 3 + User Layer 5: + name: + cost: 1 + editType: 3 + User Layer 6: + name: + cost: 1 + editType: 3 + User Layer 7: + name: + cost: 1 + editType: 3 + User Layer 8: + name: + cost: 1 + editType: 3 + User Layer 9: + name: + cost: 1 + editType: 3 + User Layer 10: + name: + cost: 1 + editType: 3 + User Layer 11: + name: + cost: 1 + editType: 3 + User Layer 12: + name: + cost: 1 + editType: 3 + User Layer 13: + name: + cost: 1 + editType: 3 + User Layer 14: + name: + cost: 1 + editType: 3 + User Layer 15: + name: + cost: 1 + editType: 3 + User Layer 16: + name: + cost: 1 + editType: 3 + User Layer 17: + name: + cost: 1 + editType: 3 + User Layer 18: + name: + cost: 1 + editType: 3 + User Layer 19: + name: + cost: 1 + editType: 3 + User Layer 20: + name: + cost: 1 + editType: 3 + User Layer 21: + name: + cost: 1 + editType: 3 + User Layer 22: + name: + cost: 1 + editType: 3 + User Layer 23: + name: + cost: 1 + editType: 3 + User Layer 24: + name: + cost: 1 + editType: 3 + User Layer 25: + name: + cost: 1 + editType: 3 + User Layer 26: + name: + cost: 1 + editType: 3 + User Layer 27: + name: + cost: 1 + editType: 3 + User Layer 28: + name: + cost: 1 + editType: 3 diff --git a/ProjectSettings/NavMeshProjectSettings.asset b/ProjectSettings/NavMeshProjectSettings.asset new file mode 100644 index 0000000..79cb3ae --- /dev/null +++ b/ProjectSettings/NavMeshProjectSettings.asset @@ -0,0 +1,133 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!126 &1 +NavMeshLayers: + m_ObjectHideFlags: 0 + Built-in Layer 0: + name: Default + cost: 1 + editType: 2 + Built-in Layer 1: + name: Not Walkable + cost: 1 + editType: 0 + Built-in Layer 2: + name: Jump + cost: 2 + editType: 2 + User Layer 0: + name: + cost: 1 + editType: 3 + User Layer 1: + name: + cost: 1 + editType: 3 + User Layer 2: + name: + cost: 1 + editType: 3 + User Layer 3: + name: + cost: 1 + editType: 3 + User Layer 4: + name: + cost: 1 + editType: 3 + User Layer 5: + name: + cost: 1 + editType: 3 + User Layer 6: + name: + cost: 1 + editType: 3 + User Layer 7: + name: + cost: 1 + editType: 3 + User Layer 8: + name: + cost: 1 + editType: 3 + User Layer 9: + name: + cost: 1 + editType: 3 + User Layer 10: + name: + cost: 1 + editType: 3 + User Layer 11: + name: + cost: 1 + editType: 3 + User Layer 12: + name: + cost: 1 + editType: 3 + User Layer 13: + name: + cost: 1 + editType: 3 + User Layer 14: + name: + cost: 1 + editType: 3 + User Layer 15: + name: + cost: 1 + editType: 3 + User Layer 16: + name: + cost: 1 + editType: 3 + User Layer 17: + name: + cost: 1 + editType: 3 + User Layer 18: + name: + cost: 1 + editType: 3 + User Layer 19: + name: + cost: 1 + editType: 3 + User Layer 20: + name: + cost: 1 + editType: 3 + User Layer 21: + name: + cost: 1 + editType: 3 + User Layer 22: + name: + cost: 1 + editType: 3 + User Layer 23: + name: + cost: 1 + editType: 3 + User Layer 24: + name: + cost: 1 + editType: 3 + User Layer 25: + name: + cost: 1 + editType: 3 + User Layer 26: + name: + cost: 1 + editType: 3 + User Layer 27: + name: + cost: 1 + editType: 3 + User Layer 28: + name: + cost: 1 + editType: 3 diff --git a/ProjectSettings/PackageManagerSettings.asset b/ProjectSettings/PackageManagerSettings.asset new file mode 100644 index 0000000..b01b2f8 --- /dev/null +++ b/ProjectSettings/PackageManagerSettings.asset @@ -0,0 +1,43 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!114 &1 +MonoBehaviour: + m_ObjectHideFlags: 61 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 13964, guid: 0000000000000000e000000000000000, type: 0} + m_Name: + m_EditorClassIdentifier: + m_EnablePreviewPackages: 1 + m_EnablePackageDependencies: 1 + m_AdvancedSettingsExpanded: 1 + m_ScopedRegistriesSettingsExpanded: 1 + oneTimeWarningShown: 1 + m_Registries: + - m_Id: main + m_Name: + m_Url: https://packages.unity.com + m_Scopes: [] + m_IsDefault: 1 + m_Capabilities: 7 + m_UserSelectedRegistryName: + m_UserAddingNewScopedRegistry: 0 + m_RegistryInfoDraft: + m_ErrorMessage: + m_Original: + m_Id: + m_Name: + m_Url: + m_Scopes: [] + m_IsDefault: 0 + m_Capabilities: 0 + m_Modified: 0 + m_Name: + m_Url: + m_Scopes: + - + m_SelectedScopeIndex: 0 diff --git a/ProjectSettings/PresetManager.asset b/ProjectSettings/PresetManager.asset new file mode 100644 index 0000000..636a595 --- /dev/null +++ b/ProjectSettings/PresetManager.asset @@ -0,0 +1,6 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1386491679 &1 +PresetManager: + m_ObjectHideFlags: 0 + m_DefaultList: [] diff --git a/ProjectSettings/ProjectSettings.asset b/ProjectSettings/ProjectSettings.asset index a22f7f2..c46d33c 100644 --- a/ProjectSettings/ProjectSettings.asset +++ b/ProjectSettings/ProjectSettings.asset @@ -3,224 +3,803 @@ --- !u!129 &1 PlayerSettings: m_ObjectHideFlags: 0 - serializedVersion: 3 + serializedVersion: 20 + productGUID: 241ede923c7b80d40add894a275ccec2 AndroidProfiler: 0 + AndroidFilterTouchesWhenObscured: 0 + AndroidEnableSustainedPerformanceMode: 0 defaultScreenOrientation: 0 targetDevice: 2 - targetGlesGraphics: 1 - targetResolution: 0 + useOnDemandResources: 0 accelerometerFrequency: 60 companyName: DefaultCompany productName: Steamworks.NET Example defaultCursor: {fileID: 0} cursorHotspot: {x: 0, y: 0} - defaultScreenWidth: 1024 - defaultScreenHeight: 768 + m_SplashScreenBackgroundColor: {r: 1, g: 1, b: 1, a: 1} + m_ShowUnitySplashScreen: 1 + m_ShowUnitySplashLogo: 1 + m_SplashScreenOverlayOpacity: 1 + m_SplashScreenAnimation: 1 + m_SplashScreenLogoStyle: 1 + m_SplashScreenDrawMode: 0 + m_SplashScreenBackgroundAnimationZoom: 1 + m_SplashScreenLogoAnimationZoom: 1 + m_SplashScreenBackgroundLandscapeAspect: 1 + m_SplashScreenBackgroundPortraitAspect: 1 + m_SplashScreenBackgroundLandscapeUvs: + serializedVersion: 2 + x: 0 + y: 0 + width: 1 + height: 1 + m_SplashScreenBackgroundPortraitUvs: + serializedVersion: 2 + x: 0 + y: 0 + width: 1 + height: 1 + m_SplashScreenLogos: [] + m_VirtualRealitySplashScreen: {fileID: 0} + m_HolographicTrackingLossScreen: {fileID: 0} + defaultScreenWidth: 1200 + defaultScreenHeight: 600 defaultScreenWidthWeb: 960 defaultScreenHeightWeb: 600 - m_RenderingPath: 1 - m_MobileRenderingPath: 1 + m_StereoRenderingPath: 0 m_ActiveColorSpace: 0 m_MTRendering: 1 - m_MobileMTRendering: 0 - m_UseDX11: 0 - m_Stereoscopic3D: 0 + m_StackTraceTypes: 010000000100000001000000010000000100000001000000 iosShowActivityIndicatorOnLoading: -1 androidShowActivityIndicatorOnLoading: -1 - displayResolutionDialog: 1 + iosUseCustomAppBackgroundBehavior: 0 + iosAllowHTTPDownload: 1 allowedAutorotateToPortrait: 1 allowedAutorotateToPortraitUpsideDown: 1 allowedAutorotateToLandscapeRight: 1 allowedAutorotateToLandscapeLeft: 1 useOSAutorotation: 1 use32BitDisplayBuffer: 1 - use24BitDepthBuffer: 0 - defaultIsFullScreen: 1 + preserveFramebufferAlpha: 0 + disableDepthAndStencilBuffers: 0 + androidStartInFullscreen: 1 + androidRenderOutsideSafeArea: 1 + androidUseSwappy: 0 + androidBlitType: 0 + androidResizableWindow: 0 + androidDefaultWindowWidth: 1920 + androidDefaultWindowHeight: 1080 + androidMinimumWindowWidth: 400 + androidMinimumWindowHeight: 300 + androidFullscreenMode: 1 defaultIsNativeResolution: 1 + macRetinaSupport: 1 runInBackground: 1 captureSingleScreen: 0 - Override IPod Music: 0 + muteOtherAudioSources: 0 Prepare IOS For Recording: 0 - enableHWStatistics: 1 + Force IOS Speakers When Recording: 0 + deferSystemGesturesMode: 0 + hideHomeButton: 0 + submitAnalytics: 1 usePlayerLog: 1 - stripPhysics: 0 + bakeCollisionMeshes: 0 forceSingleInstance: 0 - resizableWindow: 0 + useFlipModelSwapchain: 1 + resizableWindow: 1 useMacAppStoreValidation: 0 - gpuSkinning: 1 + macAppStoreCategory: public.app-category.games + gpuSkinning: 0 xboxPIXTextureCapture: 0 xboxEnableAvatar: 0 xboxEnableKinect: 0 xboxEnableKinectAutoTracking: 0 xboxEnableFitness: 0 - macFullscreenMode: 2 + visibleInBackground: 0 + allowFullscreenSwitch: 1 + fullscreenMode: 3 xboxSpeechDB: 0 xboxEnableHeadOrientation: 0 xboxEnableGuest: 0 - videoMemoryForVertexBuffers: 0 + xboxEnablePIXSampling: 0 + metalFramebufferOnly: 0 + xboxOneResolution: 0 + xboxOneSResolution: 0 + xboxOneXResolution: 3 + xboxOneMonoLoggingLevel: 0 + xboxOneLoggingLevel: 1 + xboxOneDisableEsram: 0 + xboxOneEnableTypeOptimization: 0 + xboxOnePresentImmediateThreshold: 0 + switchQueueCommandMemory: 0 + switchQueueControlMemory: 16384 + switchQueueComputeMemory: 262144 + switchNVNShaderPoolsGranularity: 33554432 + switchNVNDefaultPoolsGranularity: 16777216 + switchNVNOtherPoolsGranularity: 16777216 + switchNVNMaxPublicTextureIDCount: 0 + switchNVNMaxPublicSamplerIDCount: 0 + stadiaPresentMode: 0 + stadiaTargetFramerate: 0 + vulkanNumSwapchainBuffers: 3 + vulkanEnableSetSRGBWrite: 0 + vulkanEnableLateAcquireNextImage: 0 m_SupportedAspectRatios: 4:3: 1 5:4: 1 16:10: 1 16:9: 1 Others: 1 - iPhoneBundleIdentifier: com.Company.ProductName - metroEnableIndependentInputSource: 0 - metroEnableLowLatencyPresentationAPI: 0 - productGUID: 241ede923c7b80d40add894a275ccec2 - iPhoneBundleVersion: 1.0 + bundleVersion: 1.0 + preloadedAssets: [] + metroInputSource: 0 + wsaTransparentSwapchain: 0 + m_HolographicPauseOnTrackingLoss: 1 + xboxOneDisableKinectGpuReservation: 0 + xboxOneEnable7thCore: 0 + vrSettings: + cardboard: + depthFormat: 0 + enableTransitionView: 0 + daydream: + depthFormat: 0 + useSustainedPerformanceMode: 0 + enableVideoLayer: 0 + useProtectedVideoMemory: 0 + minimumSupportedHeadTracking: 0 + maximumSupportedHeadTracking: 1 + hololens: + depthFormat: 1 + depthBufferSharingEnabled: 0 + lumin: + depthFormat: 0 + frameTiming: 2 + enableGLCache: 0 + glCacheMaxBlobSize: 524288 + glCacheMaxFileSize: 8388608 + oculus: + sharedDepthBuffer: 0 + dashSupport: 0 + lowOverheadMode: 0 + protectedContext: 0 + v2Signing: 1 + enable360StereoCapture: 0 + isWsaHolographicRemotingEnabled: 0 + enableFrameTimingStats: 0 + useHDRDisplay: 0 + D3DHDRBitDepth: 0 + m_ColorGamuts: 00000000 + targetPixelDensity: 30 + resolutionScalingMode: 0 + androidSupportedAspectRatio: 1 + androidMaxAspectRatio: 2.1 + applicationIdentifier: + Android: com.Company.ProductName + Standalone: unity.DefaultCompany.Steamworks.NET Example + Tizen: com.Company.ProductName + iPhone: com.Company.ProductName + tvOS: com.Company.ProductName + buildNumber: + iPhone: 0 AndroidBundleVersionCode: 1 - AndroidMinSdkVersion: 9 + AndroidMinSdkVersion: 19 + AndroidTargetSdkVersion: 0 AndroidPreferredInstallLocation: 1 aotOptions: - apiCompatibilityLevel: 2 + stripEngineCode: 1 iPhoneStrippingLevel: 0 iPhoneScriptCallOptimization: 0 ForceInternetPermission: 0 ForceSDCardPermission: 0 CreateWallpaper: 0 APKExpansionFiles: 0 + keepLoadedShadersAlive: 0 StripUnusedMeshComponents: 0 + VertexChannelCompressionMask: 214 iPhoneSdkVersion: 988 - iPhoneTargetOSVersion: 10 + iOSTargetOSVersionString: 10.0 + tvOSSdkVersion: 0 + tvOSRequireExtendedGameController: 0 + tvOSTargetOSVersionString: 10.0 uIPrerenderedIcon: 0 uIRequiresPersistentWiFi: 0 + uIRequiresFullScreen: 1 uIStatusBarHidden: 1 uIExitOnSuspend: 0 uIStatusBarStyle: 0 - iPhoneSplashScreen: {fileID: 0} - iPhoneHighResSplashScreen: {fileID: 0} - iPhoneTallHighResSplashScreen: {fileID: 0} - iPadPortraitSplashScreen: {fileID: 0} - iPadHighResPortraitSplashScreen: {fileID: 0} - iPadLandscapeSplashScreen: {fileID: 0} - iPadHighResLandscapeSplashScreen: {fileID: 0} - AndroidTargetDevice: 0 + appleTVSplashScreen: {fileID: 0} + appleTVSplashScreen2x: {fileID: 0} + tvOSSmallIconLayers: [] + tvOSSmallIconLayers2x: [] + tvOSLargeIconLayers: [] + tvOSLargeIconLayers2x: [] + tvOSTopShelfImageLayers: [] + tvOSTopShelfImageLayers2x: [] + tvOSTopShelfImageWideLayers: [] + tvOSTopShelfImageWideLayers2x: [] + iOSLaunchScreenType: 0 + iOSLaunchScreenPortrait: {fileID: 0} + iOSLaunchScreenLandscape: {fileID: 0} + iOSLaunchScreenBackgroundColor: + serializedVersion: 2 + rgba: 0 + iOSLaunchScreenFillPct: 100 + iOSLaunchScreenSize: 100 + iOSLaunchScreenCustomXibPath: + iOSLaunchScreeniPadType: 0 + iOSLaunchScreeniPadImage: {fileID: 0} + iOSLaunchScreeniPadBackgroundColor: + serializedVersion: 2 + rgba: 0 + iOSLaunchScreeniPadFillPct: 100 + iOSLaunchScreeniPadSize: 100 + iOSLaunchScreeniPadCustomXibPath: + iOSUseLaunchScreenStoryboard: 0 + iOSLaunchScreenCustomStoryboardPath: + iOSDeviceRequirements: [] + iOSURLSchemes: [] + iOSBackgroundModes: 0 + iOSMetalForceHardShadows: 0 + metalEditorSupport: 1 + metalAPIValidation: 1 + iOSRenderExtraFrameOnPause: 1 + iosCopyPluginsCodeInsteadOfSymlink: 0 + appleDeveloperTeamID: + iOSManualSigningProvisioningProfileID: + tvOSManualSigningProvisioningProfileID: + iOSManualSigningProvisioningProfileType: 0 + tvOSManualSigningProvisioningProfileType: 0 + appleEnableAutomaticSigning: 0 + iOSRequireARKit: 0 + iOSAutomaticallyDetectAndAddCapabilities: 1 + appleEnableProMotion: 0 + clonedFromGUID: 00000000000000000000000000000000 + templatePackageId: + templateDefaultScene: + AndroidTargetArchitectures: 5 + AndroidTargetDevices: 0 AndroidSplashScreenScale: 0 - AndroidKeystoreName: + androidSplashScreen: {fileID: 0} + AndroidKeystoreName: '{inproject}: ' AndroidKeyaliasName: - resolutionDialogBanner: {fileID: 0} - m_BuildTargetIcons: [] - m_BuildTargetBatching: [] - webPlayerTemplate: APPLICATION:Default + AndroidBuildApkPerCpuArchitecture: 0 + AndroidTVCompatibility: 1 + AndroidIsGame: 1 + AndroidEnableTango: 0 + androidEnableBanner: 1 + androidUseLowAccuracyLocation: 0 + androidUseCustomKeystore: 0 + m_AndroidBanners: + - width: 320 + height: 180 + banner: {fileID: 0} + androidGamepadSupportLevel: 0 + chromeosInputEmulation: 1 + AndroidValidateAppBundleSize: 1 + AndroidAppBundleSizeToValidate: 150 + m_BuildTargetIcons: + - m_BuildTarget: + m_Icons: + - serializedVersion: 2 + m_Icon: {fileID: 0} + m_Width: 128 + m_Height: 128 + m_Kind: 0 + m_BuildTargetPlatformIcons: [] + m_BuildTargetBatching: + - m_BuildTarget: Standalone + m_StaticBatching: 0 + m_DynamicBatching: 1 + m_BuildTargetGraphicsJobs: + - m_BuildTarget: MacStandaloneSupport + m_GraphicsJobs: 0 + - m_BuildTarget: Switch + m_GraphicsJobs: 0 + - m_BuildTarget: MetroSupport + m_GraphicsJobs: 0 + - m_BuildTarget: GameCoreScarlettSupport + m_GraphicsJobs: 0 + - m_BuildTarget: AppleTVSupport + m_GraphicsJobs: 0 + - m_BuildTarget: BJMSupport + m_GraphicsJobs: 0 + - m_BuildTarget: LinuxStandaloneSupport + m_GraphicsJobs: 0 + - m_BuildTarget: GameCoreXboxOneSupport + m_GraphicsJobs: 0 + - m_BuildTarget: PS4Player + m_GraphicsJobs: 0 + - m_BuildTarget: iOSSupport + m_GraphicsJobs: 0 + - m_BuildTarget: PS5Player + m_GraphicsJobs: 0 + - m_BuildTarget: WindowsStandaloneSupport + m_GraphicsJobs: 0 + - m_BuildTarget: XboxOnePlayer + m_GraphicsJobs: 0 + - m_BuildTarget: LuminSupport + m_GraphicsJobs: 0 + - m_BuildTarget: CloudRendering + m_GraphicsJobs: 0 + - m_BuildTarget: AndroidPlayer + m_GraphicsJobs: 0 + - m_BuildTarget: WebGLSupport + m_GraphicsJobs: 0 + m_BuildTargetGraphicsJobMode: + - m_BuildTarget: PS4Player + m_GraphicsJobMode: 0 + - m_BuildTarget: XboxOnePlayer + m_GraphicsJobMode: 0 + m_BuildTargetGraphicsAPIs: + - m_BuildTarget: WindowsStandaloneSupport + m_APIs: 02000000 + m_Automatic: 1 + - m_BuildTarget: AndroidPlayer + m_APIs: 08000000 + m_Automatic: 0 + m_BuildTargetVRSettings: + - m_BuildTarget: Android + m_Enabled: 0 + m_Devices: + - Oculus + - m_BuildTarget: Windows Store Apps + m_Enabled: 0 + m_Devices: [] + - m_BuildTarget: N3DS + m_Enabled: 0 + m_Devices: [] + - m_BuildTarget: PS3 + m_Enabled: 0 + m_Devices: [] + - m_BuildTarget: PS4 + m_Enabled: 0 + m_Devices: + - PlayStationVR + - m_BuildTarget: PSM + m_Enabled: 0 + m_Devices: [] + - m_BuildTarget: PSP2 + m_Enabled: 0 + m_Devices: [] + - m_BuildTarget: SamsungTV + m_Enabled: 0 + m_Devices: [] + - m_BuildTarget: Standalone + m_Enabled: 0 + m_Devices: + - Oculus + - m_BuildTarget: Tizen + m_Enabled: 0 + m_Devices: [] + - m_BuildTarget: WebGL + m_Enabled: 0 + m_Devices: [] + - m_BuildTarget: WebPlayer + m_Enabled: 0 + m_Devices: [] + - m_BuildTarget: WiiU + m_Enabled: 0 + m_Devices: [] + - m_BuildTarget: Xbox360 + m_Enabled: 0 + m_Devices: [] + - m_BuildTarget: XboxOne + m_Enabled: 0 + m_Devices: [] + - m_BuildTarget: iPhone + m_Enabled: 0 + m_Devices: [] + - m_BuildTarget: tvOS + m_Enabled: 0 + m_Devices: [] + openGLRequireES31: 0 + openGLRequireES31AEP: 0 + openGLRequireES32: 0 m_TemplateCustomTags: {} - XboxTitleId: - XboxImageXexPath: - XboxSpaPath: - XboxGenerateSpa: 0 - XboxDeployKinectResources: 0 - XboxSplashScreen: {fileID: 0} - xboxEnableSpeech: 0 - xboxAdditionalTitleMemorySize: 0 - xboxDeployKinectHeadOrientation: 0 - xboxDeployKinectHeadPosition: 0 - ps3TitleConfigPath: - ps3DLCConfigPath: - ps3ThumbnailPath: - ps3BackgroundPath: - ps3SoundPath: - ps3TrophyCommId: - ps3NpCommunicationPassphrase: - ps3TrophyPackagePath: - ps3BootCheckMaxSaveGameSizeKB: 128 - ps3TrophyCommSig: - ps3SaveGameSlots: 1 - ps3TrialMode: 0 - psp2Splashimage: {fileID: 0} - psp2LiveAreaGate: {fileID: 0} - psp2LiveAreaBackround: {fileID: 0} - psp2NPTrophyPackPath: - psp2NPCommsID: - psp2NPCommsPassphrase: - psp2NPCommsSig: - psp2ParamSfxPath: - psp2PackagePassword: - psp2DLCConfigPath: - psp2ThumbnailPath: - psp2BackgroundPath: - psp2SoundPath: - psp2TrophyCommId: - psp2TrophyPackagePath: - psp2PackagedResourcesPath: - flashStrippingLevel: 2 + mobileMTRendering: + iPhone: 1 + tvOS: 1 + m_BuildTargetGroupLightmapEncodingQuality: + - m_BuildTarget: Standalone + m_EncodingQuality: 1 + - m_BuildTarget: XboxOne + m_EncodingQuality: 1 + - m_BuildTarget: PS4 + m_EncodingQuality: 1 + m_BuildTargetGroupLightmapSettings: [] + playModeTestRunnerEnabled: 0 + runPlayModeTestAsEditModeTest: 0 + actionOnDotNetUnhandledException: 1 + enableInternalProfiler: 0 + logObjCUncaughtExceptions: 1 + enableCrashReportAPI: 0 + cameraUsageDescription: + locationUsageDescription: + microphoneUsageDescription: + switchNetLibKey: + switchSocketMemoryPoolSize: 6144 + switchSocketAllocatorPoolSize: 128 + switchSocketConcurrencyLimit: 14 + switchScreenResolutionBehavior: 2 + switchUseCPUProfiler: 0 + switchApplicationID: 0x01004b9000490000 + switchNSODependencies: + switchTitleNames_0: + switchTitleNames_1: + switchTitleNames_2: + switchTitleNames_3: + switchTitleNames_4: + switchTitleNames_5: + switchTitleNames_6: + switchTitleNames_7: + switchTitleNames_8: + switchTitleNames_9: + switchTitleNames_10: + switchTitleNames_11: + switchTitleNames_12: + switchTitleNames_13: + switchTitleNames_14: + switchTitleNames_15: + switchPublisherNames_0: + switchPublisherNames_1: + switchPublisherNames_2: + switchPublisherNames_3: + switchPublisherNames_4: + switchPublisherNames_5: + switchPublisherNames_6: + switchPublisherNames_7: + switchPublisherNames_8: + switchPublisherNames_9: + switchPublisherNames_10: + switchPublisherNames_11: + switchPublisherNames_12: + switchPublisherNames_13: + switchPublisherNames_14: + switchPublisherNames_15: + switchIcons_0: {fileID: 0} + switchIcons_1: {fileID: 0} + switchIcons_2: {fileID: 0} + switchIcons_3: {fileID: 0} + switchIcons_4: {fileID: 0} + switchIcons_5: {fileID: 0} + switchIcons_6: {fileID: 0} + switchIcons_7: {fileID: 0} + switchIcons_8: {fileID: 0} + switchIcons_9: {fileID: 0} + switchIcons_10: {fileID: 0} + switchIcons_11: {fileID: 0} + switchIcons_12: {fileID: 0} + switchIcons_13: {fileID: 0} + switchIcons_14: {fileID: 0} + switchIcons_15: {fileID: 0} + switchSmallIcons_0: {fileID: 0} + switchSmallIcons_1: {fileID: 0} + switchSmallIcons_2: {fileID: 0} + switchSmallIcons_3: {fileID: 0} + switchSmallIcons_4: {fileID: 0} + switchSmallIcons_5: {fileID: 0} + switchSmallIcons_6: {fileID: 0} + switchSmallIcons_7: {fileID: 0} + switchSmallIcons_8: {fileID: 0} + switchSmallIcons_9: {fileID: 0} + switchSmallIcons_10: {fileID: 0} + switchSmallIcons_11: {fileID: 0} + switchSmallIcons_12: {fileID: 0} + switchSmallIcons_13: {fileID: 0} + switchSmallIcons_14: {fileID: 0} + switchSmallIcons_15: {fileID: 0} + switchManualHTML: + switchAccessibleURLs: + switchLegalInformation: + switchMainThreadStackSize: 1048576 + switchPresenceGroupId: + switchLogoHandling: 0 + switchReleaseVersion: 0 + switchDisplayVersion: 1.0.0 + switchStartupUserAccount: 0 + switchTouchScreenUsage: 0 + switchSupportedLanguagesMask: 0 + switchLogoType: 0 + switchApplicationErrorCodeCategory: + switchUserAccountSaveDataSize: 0 + switchUserAccountSaveDataJournalSize: 0 + switchApplicationAttribute: 0 + switchCardSpecSize: -1 + switchCardSpecClock: -1 + switchRatingsMask: 0 + switchRatingsInt_0: 0 + switchRatingsInt_1: 0 + switchRatingsInt_2: 0 + switchRatingsInt_3: 0 + switchRatingsInt_4: 0 + switchRatingsInt_5: 0 + switchRatingsInt_6: 0 + switchRatingsInt_7: 0 + switchRatingsInt_8: 0 + switchRatingsInt_9: 0 + switchRatingsInt_10: 0 + switchRatingsInt_11: 0 + switchRatingsInt_12: 0 + switchLocalCommunicationIds_0: + switchLocalCommunicationIds_1: + switchLocalCommunicationIds_2: + switchLocalCommunicationIds_3: + switchLocalCommunicationIds_4: + switchLocalCommunicationIds_5: + switchLocalCommunicationIds_6: + switchLocalCommunicationIds_7: + switchParentalControl: 0 + switchAllowsScreenshot: 1 + switchAllowsVideoCapturing: 1 + switchAllowsRuntimeAddOnContentInstall: 0 + switchDataLossConfirmation: 0 + switchUserAccountLockEnabled: 0 + switchSystemResourceMemory: 16777216 + switchSupportedNpadStyles: 3 + switchNativeFsCacheSize: 32 + switchIsHoldTypeHorizontal: 0 + switchSupportedNpadCount: 8 + switchSocketConfigEnabled: 0 + switchTcpInitialSendBufferSize: 32 + switchTcpInitialReceiveBufferSize: 64 + switchTcpAutoSendBufferSizeMax: 256 + switchTcpAutoReceiveBufferSizeMax: 256 + switchUdpSendBufferSize: 9 + switchUdpReceiveBufferSize: 42 + switchSocketBufferEfficiency: 4 + switchSocketInitializeEnabled: 1 + switchNetworkInterfaceManagerInitializeEnabled: 1 + switchPlayerConnectionEnabled: 1 + switchUseMicroSleepForYield: 1 + switchMicroSleepForYieldTime: 25 + ps4NPAgeRating: 12 + ps4NPTitleSecret: + ps4NPTrophyPackPath: + ps4ParentalLevel: 1 + ps4ContentID: ED1633-NPXX51362_00-0000000000000000 + ps4Category: 0 + ps4MasterVersion: 01.00 + ps4AppVersion: 01.00 + ps4AppType: 0 + ps4ParamSfxPath: + ps4VideoOutPixelFormat: 0 + ps4VideoOutInitialWidth: 1920 + ps4VideoOutBaseModeInitialWidth: 1920 + ps4VideoOutReprojectionRate: 60 + ps4PronunciationXMLPath: + ps4PronunciationSIGPath: + ps4BackgroundImagePath: + ps4StartupImagePath: + ps4StartupImagesFolder: + ps4IconImagesFolder: + ps4SaveDataImagePath: + ps4SdkOverride: + ps4BGMPath: + ps4ShareFilePath: + ps4ShareOverlayImagePath: + ps4PrivacyGuardImagePath: + ps4ExtraSceSysFile: + ps4NPtitleDatPath: + ps4RemotePlayKeyAssignment: -1 + ps4RemotePlayKeyMappingDir: + ps4PlayTogetherPlayerCount: 0 + ps4EnterButtonAssignment: 1 + ps4ApplicationParam1: 0 + ps4ApplicationParam2: 0 + ps4ApplicationParam3: 0 + ps4ApplicationParam4: 0 + ps4DownloadDataSize: 0 + ps4GarlicHeapSize: 2048 + ps4ProGarlicHeapSize: 2560 + playerPrefsMaxSize: 32768 + ps4Passcode: eaoEiIgxIX4a2dREbbSqWy6yhKIDCdJO + ps4pnSessions: 1 + ps4pnPresence: 1 + ps4pnFriends: 1 + ps4pnGameCustomData: 1 + playerPrefsSupport: 0 + enableApplicationExit: 0 + resetTempFolder: 1 + restrictedAudioUsageRights: 0 + ps4UseResolutionFallback: 0 + ps4ReprojectionSupport: 0 + ps4UseAudio3dBackend: 0 + ps4UseLowGarlicFragmentationMode: 1 + ps4SocialScreenEnabled: 0 + ps4ScriptOptimizationLevel: 2 + ps4Audio3dVirtualSpeakerCount: 14 + ps4attribCpuUsage: 0 + ps4PatchPkgPath: + ps4PatchLatestPkgPath: + ps4PatchChangeinfoPath: + ps4PatchDayOne: 0 + ps4attribUserManagement: 0 + ps4attribMoveSupport: 0 + ps4attrib3DSupport: 0 + ps4attribShareSupport: 0 + ps4attribExclusiveVR: 0 + ps4disableAutoHideSplash: 0 + ps4videoRecordingFeaturesUsed: 0 + ps4contentSearchFeaturesUsed: 0 + ps4CompatibilityPS5: 0 + ps4AllowPS5Detection: 0 + ps4GPU800MHz: 1 + ps4attribEyeToEyeDistanceSettingVR: 0 + ps4IncludedModules: [] + ps4attribVROutputEnabled: 0 + ps5ParamFilePath: + ps5VideoOutPixelFormat: 0 + ps5VideoOutInitialWidth: 1920 + ps5VideoOutOutputMode: 1 + ps5BackgroundImagePath: + ps5StartupImagePath: + ps5Pic2Path: + ps5StartupImagesFolder: + ps5IconImagesFolder: + ps5SaveDataImagePath: + ps5SdkOverride: + ps5BGMPath: + ps5ShareOverlayImagePath: + ps5NPConfigZipPath: + ps5Passcode: frAQBc8Wsa1xVPfvJcrgRYwTiizs2trQ + ps5UseResolutionFallback: 0 + ps5UseAudio3dBackend: 0 + ps5ScriptOptimizationLevel: 2 + ps5Audio3dVirtualSpeakerCount: 14 + ps5UpdateReferencePackage: + ps5disableAutoHideSplash: 0 + ps5OperatingSystemCanDisableSplashScreen: 0 + ps5IncludedModules: [] + ps5SharedBinaryContentLabels: [] + ps5SharedBinarySystemFolders: [] + monoEnv: + splashScreenBackgroundSourceLandscape: {fileID: 0} + splashScreenBackgroundSourcePortrait: {fileID: 0} + blurSplashScreenBackground: 1 spritePackerPolicy: - scriptingDefineSymbols: {} - metroPackageName: Steamworks.NET Example - metroPackageLogo: - metroPackageLogo140: - metroPackageLogo180: - metroPackageVersion: - metroCertificatePath: + webGLMemorySize: 256 + webGLExceptionSupport: 1 + webGLNameFilesAsHashes: 0 + webGLDataCaching: 0 + webGLDebugSymbols: 0 + webGLEmscriptenArgs: + webGLModulesDirectory: + webGLTemplate: APPLICATION:Default + webGLAnalyzeBuildSize: 0 + webGLUseEmbeddedResources: 0 + webGLCompressionFormat: 1 + webGLLinkerTarget: 0 + webGLThreadsSupport: 0 + webGLWasmStreaming: 0 + scriptingDefineSymbols: + 1: STEAMWORKS_NET + platformArchitecture: {} + scriptingBackend: + Android: 0 + Standalone: 1 + WebGL: 1 + Windows Store Apps: 2 + il2cppCompilerConfiguration: {} + managedStrippingLevel: {} + incrementalIl2cppBuild: {} + suppressCommonWarnings: 1 + allowUnsafeCode: 0 + additionalIl2CppArgs: + scriptingRuntimeVersion: 1 + gcIncremental: 0 + assemblyVersionValidation: 1 + gcWBarrierValidation: 0 + apiCompatibilityLevelPerPlatform: {} + m_RenderingPath: 1 + m_MobileRenderingPath: 1 + metroPackageName: amworks.NETExampleple + metroPackageVersion: 1.0.0.0 + metroCertificatePath: Assets\WSATestCertificate.pfx metroCertificatePassword: - metroCertificateSubject: - metroCertificateIssuer: - metroCertificateNotAfter: 0000000000000000 + metroCertificateSubject: DefaultCompany + metroCertificateIssuer: DefaultCompany + metroCertificateNotAfter: 00fc3238b540d301 metroApplicationDescription: Steamworks.NET Example - metroTileLogo80: - metroTileLogo: - metroTileLogo140: - metroTileLogo180: - metroTileWideLogo80: - metroTileWideLogo: - metroTileWideLogo140: - metroTileWideLogo180: - metroTileSmallLogo80: - metroTileSmallLogo: - metroTileSmallLogo140: - metroTileSmallLogo180: - metroSmallTile80: - metroSmallTile: - metroSmallTile140: - metroSmallTile180: - metroLargeTile80: - metroLargeTile: - metroLargeTile140: - metroLargeTile180: - metroTileShortName: - metroCommandLineArgsFile: + wsaImages: {} + metroTileShortName: Steamworks.NET Example metroTileShowName: 0 metroMediumTileShowName: 0 metroLargeTileShowName: 0 metroWideTileShowName: 0 + metroSupportStreamingInstall: 0 + metroLastRequiredScene: 0 metroDefaultTileSize: 1 metroTileForegroundText: 1 metroTileBackgroundColor: {r: 0, g: 0, b: 0, a: 1} - metroSplashScreenImage: - metroSplashScreenImage140: - metroSplashScreenImage180: metroSplashScreenBackgroundColor: {r: 0, g: 0, b: 0, a: 1} metroSplashScreenUseBackgroundColor: 0 - metroCapabilities: {} - metroUnprocessedPlugins: [] - metroCompilationOverrides: 1 - blackberryDeviceAddress: - blackberryDevicePassword: - blackberryTokenPath: - blackberryTokenExires: - blackberryTokenAuthor: - blackberryTokenAuthorId: - blackberryAuthorId: - blackberryCskPassword: - blackberrySaveLogPath: - blackberryAuthorIdOveride: 0 - blackberrySharedPermissions: 0 - blackberryCameraPermissions: 0 - blackberryGPSPermissions: 0 - blackberryDeviceIDPermissions: 0 - blackberryMicrophonePermissions: 0 - blackberryGamepadSupport: 0 - blackberryBuildId: 0 - blackberryLandscapeSplashScreen: {fileID: 0} - blackberryPortraitSplashScreen: {fileID: 0} - blackberrySquareSplashScreen: {fileID: 0} - tizenProductDescription: - tizenProductURL: - tizenCertificatePath: - tizenCertificatePassword: - tizenGPSPermissions: 0 - tizenMicrophonePermissions: 0 - stvDeviceAddress: - firstStreamedLevelWithResources: 0 - unityRebuildLibraryVersion: 9 - unityForwardCompatibleVersion: 39 - unityStandardAssetsVersion: 0 + platformCapabilities: + WindowsStoreApps: + AllJoyn: False + BlockedChatMessages: False + Bluetooth: False + Chat: False + CodeGeneration: False + EnterpriseAuthentication: False + HumanInterfaceDevice: False + InternetClient: False + InternetClientServer: False + Location: False + Microphone: False + MusicLibrary: False + Objects3D: False + PhoneCall: False + PicturesLibrary: False + PrivateNetworkClientServer: False + Proximity: False + RemovableStorage: False + SharedUserCertificates: False + UserAccountInformation: False + VideosLibrary: False + VoipCall: False + WebCam: False + metroTargetDeviceFamilies: {} + metroFTAName: + metroFTAFileTypes: [] + metroProtocolName: + XboxOneProductId: + XboxOneUpdateKey: + XboxOneSandboxId: + XboxOneContentId: + XboxOneTitleId: + XboxOneSCId: + XboxOneGameOsOverridePath: + XboxOnePackagingOverridePath: + XboxOneAppManifestOverridePath: + XboxOneVersion: 1.0.0.0 + XboxOnePackageEncryption: 0 + XboxOnePackageUpdateGranularity: 2 + XboxOneDescription: + XboxOneLanguage: + - enus + XboxOneCapability: [] + XboxOneGameRating: {} + XboxOneIsContentPackage: 0 + XboxOneEnhancedXboxCompatibilityMode: 0 + XboxOneEnableGPUVariability: 0 + XboxOneSockets: {} + XboxOneSplashScreen: {fileID: 0} + XboxOneAllowedProductIds: [] + XboxOnePersistentLocalStorageSize: 0 + XboxOneXTitleMemory: 8 + XboxOneOverrideIdentityName: + XboxOneOverrideIdentityPublisher: + vrEditorSettings: + daydream: + daydreamIconForeground: {fileID: 0} + daydreamIconBackground: {fileID: 0} + cloudServicesEnabled: + Analytics: 0 + Build: 0 + Collab: 0 + ErrorHub: 0 + Game_Performance: 0 + Hub: 0 + Purchasing: 0 + UNet: 0 + Unity_Ads: 0 + luminIcon: + m_Name: + m_ModelFolderPath: + m_PortalFolderPath: + luminCert: + m_CertPath: + m_SignPackage: 1 + luminIsChannelApp: 0 + luminVersion: + m_VersionCode: 1 + m_VersionName: + apiCompatibilityLevel: 3 + cloudProjectId: + framebufferDepthMemorylessMode: 0 + projectName: + organizationId: + cloudEnabled: 0 + enableNativePlatformBackendsForNewInputSystem: 0 + disableOldInputManagerSupport: 0 + legacyClampBlendShapeWeights: 1 diff --git a/ProjectSettings/ProjectVersion.txt b/ProjectSettings/ProjectVersion.txt new file mode 100644 index 0000000..4c19129 --- /dev/null +++ b/ProjectSettings/ProjectVersion.txt @@ -0,0 +1,2 @@ +m_EditorVersion: 2019.4.40f1 +m_EditorVersionWithRevision: 2019.4.40f1 (ffc62b691db5) diff --git a/ProjectSettings/QualitySettings.asset b/ProjectSettings/QualitySettings.asset index 290b8b7..cd96686 100644 --- a/ProjectSettings/QualitySettings.asset +++ b/ProjectSettings/QualitySettings.asset @@ -4,132 +4,46 @@ QualitySettings: m_ObjectHideFlags: 0 serializedVersion: 5 - m_CurrentQuality: 3 + m_CurrentQuality: 0 m_QualitySettings: - serializedVersion: 2 - name: Fastest + name: Default pixelLightCount: 0 shadows: 0 shadowResolution: 0 shadowProjection: 1 shadowCascades: 1 shadowDistance: 15 + shadowNearPlaneOffset: 3 + shadowCascade2Split: 0.33333334 + shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} + shadowmaskMode: 0 blendWeights: 1 - textureQuality: 1 - anisotropicTextures: 0 - antiAliasing: 0 - softParticles: 0 - softVegetation: 0 - vSyncCount: 0 - lodBias: .300000012 - maximumLODLevel: 0 - particleRaycastBudget: 4 - excludedTargetPlatforms: [] - - serializedVersion: 2 - name: Fast - pixelLightCount: 0 - shadows: 0 - shadowResolution: 0 - shadowProjection: 1 - shadowCascades: 1 - shadowDistance: 20 - blendWeights: 2 textureQuality: 0 anisotropicTextures: 0 antiAliasing: 0 softParticles: 0 softVegetation: 0 - vSyncCount: 0 - lodBias: .400000006 + realtimeReflectionProbes: 0 + billboardsFaceCameraPosition: 0 + vSyncCount: 2 + lodBias: 0.3 maximumLODLevel: 0 - particleRaycastBudget: 16 - excludedTargetPlatforms: [] - - serializedVersion: 2 - name: Simple - pixelLightCount: 1 - shadows: 1 - shadowResolution: 0 - shadowProjection: 1 - shadowCascades: 1 - shadowDistance: 20 - blendWeights: 2 - textureQuality: 0 - anisotropicTextures: 1 - antiAliasing: 0 - softParticles: 0 - softVegetation: 0 - vSyncCount: 0 - lodBias: .699999988 - maximumLODLevel: 0 - particleRaycastBudget: 64 - excludedTargetPlatforms: [] - - serializedVersion: 2 - name: Good - pixelLightCount: 2 - shadows: 2 - shadowResolution: 1 - shadowProjection: 1 - shadowCascades: 2 - shadowDistance: 40 - blendWeights: 2 - textureQuality: 0 - anisotropicTextures: 1 - antiAliasing: 0 - softParticles: 0 - softVegetation: 1 - vSyncCount: 1 - lodBias: 1 - maximumLODLevel: 0 - particleRaycastBudget: 256 - excludedTargetPlatforms: [] - - serializedVersion: 2 - name: Beautiful - pixelLightCount: 3 - shadows: 2 - shadowResolution: 2 - shadowProjection: 1 - shadowCascades: 2 - shadowDistance: 70 - blendWeights: 4 - textureQuality: 0 - anisotropicTextures: 2 - antiAliasing: 2 - softParticles: 1 - softVegetation: 1 - vSyncCount: 1 - lodBias: 1.5 - maximumLODLevel: 0 - particleRaycastBudget: 1024 - excludedTargetPlatforms: [] - - serializedVersion: 2 - name: Fantastic - pixelLightCount: 4 - shadows: 2 - shadowResolution: 2 - shadowProjection: 1 - shadowCascades: 4 - shadowDistance: 150 - blendWeights: 4 - textureQuality: 0 - anisotropicTextures: 2 - antiAliasing: 2 - softParticles: 1 - softVegetation: 1 - vSyncCount: 1 - lodBias: 2 - maximumLODLevel: 0 - particleRaycastBudget: 4096 + particleRaycastBudget: 4 + asyncUploadTimeSlice: 2 + asyncUploadBufferSize: 4 + resolutionScalingFixedDPIFactor: 1 excludedTargetPlatforms: [] m_PerPlatformDefaultQuality: - Android: 2 - BlackBerry: 2 - FlashPlayer: 3 - GLES Emulation: 3 - PS3: 3 - Standalone: 3 - WP8: 3 - Web: 3 - Wii: 3 - Windows Store Apps: 3 - XBOX360: 3 - iPhone: 2 + Android: 0 + BlackBerry: 0 + FlashPlayer: 0 + GLES Emulation: 0 + PS3: 0 + Standalone: 0 + WP8: 0 + Web: 0 + Wii: 0 + Windows Store Apps: 0 + XBOX360: 0 + iPhone: 0 diff --git a/ProjectSettings/UnityConnectSettings.asset b/ProjectSettings/UnityConnectSettings.asset new file mode 100644 index 0000000..2943e44 --- /dev/null +++ b/ProjectSettings/UnityConnectSettings.asset @@ -0,0 +1,29 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!310 &1 +UnityConnectSettings: + m_ObjectHideFlags: 0 + m_Enabled: 0 + m_TestMode: 0 + m_TestEventUrl: + m_TestConfigUrl: + CrashReportingSettings: + m_EventUrl: https://perf-events.cloud.unity3d.com/api/events/crashes + m_Enabled: 0 + m_CaptureEditorExceptions: 1 + UnityPurchasingSettings: + m_Enabled: 0 + m_TestMode: 0 + UnityAnalyticsSettings: + m_Enabled: 0 + m_InitializeOnStartup: 1 + m_TestMode: 0 + m_TestEventUrl: + m_TestConfigUrl: + UnityAdsSettings: + m_Enabled: 0 + m_InitializeOnStartup: 1 + m_TestMode: 0 + m_EnabledPlatforms: 4294967295 + m_IosGameId: + m_AndroidGameId: diff --git a/ProjectSettings/VFXManager.asset b/ProjectSettings/VFXManager.asset new file mode 100644 index 0000000..6e0eaca --- /dev/null +++ b/ProjectSettings/VFXManager.asset @@ -0,0 +1,11 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!937362698 &1 +VFXManager: + m_ObjectHideFlags: 0 + m_IndirectShader: {fileID: 0} + m_CopyBufferShader: {fileID: 0} + m_SortShader: {fileID: 0} + m_RenderPipeSettingsPath: + m_FixedTimeStep: 0.016666668 + m_MaxDeltaTime: 0.05 diff --git a/ProjectSettings/VersionControlSettings.asset b/ProjectSettings/VersionControlSettings.asset new file mode 100644 index 0000000..dca2881 --- /dev/null +++ b/ProjectSettings/VersionControlSettings.asset @@ -0,0 +1,8 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!890905787 &1 +VersionControlSettings: + m_ObjectHideFlags: 0 + m_Mode: Visible Meta Files + m_CollabEditorSettings: + inProgressEnabled: 1 diff --git a/ProjectSettings/XRSettings.asset b/ProjectSettings/XRSettings.asset new file mode 100644 index 0000000..482590c --- /dev/null +++ b/ProjectSettings/XRSettings.asset @@ -0,0 +1,10 @@ +{ + "m_SettingKeys": [ + "VR Device Disabled", + "VR Device User Alert" + ], + "m_SettingValues": [ + "False", + "False" + ] +} \ No newline at end of file diff --git a/README.md b/README.md index 85f50eb..caab67b 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,12 @@ -Steamworks.NET Example -======= - -This is a sample project for [Steamworks.NET](//github.com/rlabrecque/Steamworks.NET) it is intended to show functionality and a potential usage scenario. - -It is heavily based upon the Steamworks Example 'SpaceWar' included with the Steamworks SDK. It currently only features the `StatsAndAchievements` class from SpaceWar. - -This sample is licensed under the Public Domain (where acceptable.) Please view [LICENSE.txt](LICENSE.txt) for more details. - -This project was built with Unity 4.6. As such it is only expected to build and run without issue on Unity 4.6 or later. +Steamworks.NET Example +======= + +This is a sample project for [Steamworks.NET](//github.com/rlabrecque/Steamworks.NET) it is intended to show functionality and a potential usage scenario. + +It is heavily based upon the Steamworks Example 'SpaceWar' included with the Steamworks SDK. It currently only features the `StatsAndAchievements` class from SpaceWar. + +Check out the [Steamworks.NET Test](//github.com/rlabrecque/Steamworks.NET-Test) project for a playground showing you how you could call every Steam function. + +This sample is available in the public domain (where acceptable.) Please view [LICENSE.txt](LICENSE.txt) for more details. + +This project is usually built using the latest version of Unity. As such it is only expected to build and run out of the box on the version specified in [ProjectVersion.txt](ProjectSettings/ProjectVersion.txt) or newer.