增加steam

This commit is contained in:
yaoyanwei
2025-08-11 15:00:21 +08:00
parent 8fda4168b3
commit 65ee6c6eeb
288 changed files with 34032 additions and 27 deletions

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 48b4fdd7ddbfb9c47914ec93dea90b67
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,106 @@
// This file is provided under The MIT License as part of Steamworks.NET.
// Copyright (c) 2013-2022 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
#if !(UNITY_STANDALONE_WIN || UNITY_STANDALONE_LINUX || UNITY_STANDALONE_OSX || STEAMWORKS_WIN || STEAMWORKS_LIN_OSX)
#define DISABLESTEAMWORKS
#endif
#if !DISABLESTEAMWORKS
using System.Runtime.InteropServices;
using IntPtr = System.IntPtr;
using System.Text;
namespace Steamworks {
//-----------------------------------------------------------------------------
// Purpose: Data describing a single server
//-----------------------------------------------------------------------------
[StructLayout(LayoutKind.Sequential, Size = 372, Pack = 4)]
[System.Serializable]
public class gameserveritem_t {
public string GetGameDir() {
return Encoding.UTF8.GetString(m_szGameDir, 0, System.Array.IndexOf<byte>(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<byte>(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<byte>(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<byte>(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<byte>(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;
}
}
#endif // !DISABLESTEAMWORKS

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 7cb77ebece51f6c4ca56e4fb79a2767a
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,116 @@
// This file is provided under The MIT License as part of Steamworks.NET.
// Copyright (c) 2013-2022 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
#if !(UNITY_STANDALONE_WIN || UNITY_STANDALONE_LINUX || UNITY_STANDALONE_OSX || STEAMWORKS_WIN || STEAMWORKS_LIN_OSX)
#define DISABLESTEAMWORKS
#endif
#if !DISABLESTEAMWORKS
using System.Runtime.InteropServices;
using IntPtr = System.IntPtr;
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.
[System.Serializable]
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);
}
}
}
#endif // !DISABLESTEAMWORKS

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 543f6ec65c2a352408c8e28d4f0b3cbc
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 660090ac78ff49a4caa3154940c83333
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,22 @@
// This file is provided under The MIT License as part of Steamworks.NET.
// Copyright (c) 2013-2022 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
#if !(UNITY_STANDALONE_WIN || UNITY_STANDALONE_LINUX || UNITY_STANDALONE_OSX || STEAMWORKS_WIN || STEAMWORKS_LIN_OSX)
#define DISABLESTEAMWORKS
#endif
#if !DISABLESTEAMWORKS
using System.Runtime.InteropServices;
using IntPtr = System.IntPtr;
namespace Steamworks {
[System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.Cdecl)]
public delegate void SteamAPIWarningMessageHook_t(int nSeverity, System.Text.StringBuilder pchDebugText);
}
#endif // !DISABLESTEAMWORKS

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: c98e0ee75c73f444abb8ace148379c6e
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,22 @@
// This file is provided under The MIT License as part of Steamworks.NET.
// Copyright (c) 2013-2022 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
#if !(UNITY_STANDALONE_WIN || UNITY_STANDALONE_LINUX || UNITY_STANDALONE_OSX || STEAMWORKS_WIN || STEAMWORKS_LIN_OSX)
#define DISABLESTEAMWORKS
#endif
#if !DISABLESTEAMWORKS
using System.Runtime.InteropServices;
using IntPtr = System.IntPtr;
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);
}
#endif // !DISABLESTEAMWORKS

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 89d1afa2baf7a77459997121dfb8e872
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 7a1f79686d425ae4e9380256e58f4b56
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,154 @@
// This file is provided under The MIT License as part of Steamworks.NET.
// Copyright (c) 2013-2022 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
#if !(UNITY_STANDALONE_WIN || UNITY_STANDALONE_LINUX || UNITY_STANDALONE_OSX || STEAMWORKS_WIN || STEAMWORKS_LIN_OSX)
#define DISABLESTEAMWORKS
#endif
#if !DISABLESTEAMWORKS
using System.Runtime.InteropServices;
using IntPtr = System.IntPtr;
namespace Steamworks {
[System.Serializable]
public struct CGameID : System.IEquatable<CGameID>, System.IComparable<CGameID> {
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
}
}
#endif // !DISABLESTEAMWORKS

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: e32604c61cbc4a843873d96c61d7c673
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,269 @@
// This file is provided under The MIT License as part of Steamworks.NET.
// Copyright (c) 2013-2022 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
#if !(UNITY_STANDALONE_WIN || UNITY_STANDALONE_LINUX || UNITY_STANDALONE_OSX || STEAMWORKS_WIN || STEAMWORKS_LIN_OSX)
#define DISABLESTEAMWORKS
#endif
#if !DISABLESTEAMWORKS
using System.Runtime.InteropServices;
using IntPtr = System.IntPtr;
namespace Steamworks {
[System.Serializable]
[System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential, Pack = 4)]
public struct CSteamID : System.IEquatable<CSteamID>, System.IComparable<CSteamID> {
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 {
SetAccountInstance(Constants.k_unSteamUserDefaultInstance);
}
}
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 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_unSteamUserDefaultInstance)
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
}
}
#endif // !DISABLESTEAMWORKS

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: ceefc77ec6409724c9c766ce839f8ef7
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,65 @@
// This file is provided under The MIT License as part of Steamworks.NET.
// Copyright (c) 2013-2022 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
#if !(UNITY_STANDALONE_WIN || UNITY_STANDALONE_LINUX || UNITY_STANDALONE_OSX || STEAMWORKS_WIN || STEAMWORKS_LIN_OSX)
#define DISABLESTEAMWORKS
#endif
#if !DISABLESTEAMWORKS
using System.Runtime.InteropServices;
using IntPtr = System.IntPtr;
namespace Steamworks {
[System.Serializable]
public struct HAuthTicket : System.IEquatable<HAuthTicket>, System.IComparable<HAuthTicket> {
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);
}
}
}
#endif // !DISABLESTEAMWORKS

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 15820f55fe73cd74e9a944843ff7e2a6
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: d5b00c2194afdc241825fc97bb39480b
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,44 @@
// This file is provided under The MIT License as part of Steamworks.NET.
// Copyright (c) 2013-2022 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
#if !(UNITY_STANDALONE_WIN || UNITY_STANDALONE_LINUX || UNITY_STANDALONE_OSX || STEAMWORKS_WIN || STEAMWORKS_LIN_OSX)
#define DISABLESTEAMWORKS
#endif
#if !DISABLESTEAMWORKS
using System.Runtime.InteropServices;
using IntPtr = System.IntPtr;
namespace Steamworks
{
/// Network-routable identifier for a service. This is an intentionally
/// opaque byte blob. The relays know how to use this to forward it on
/// to the intended destination, but otherwise clients really should not
/// need to know what's inside. (Indeed, we don't really want them to
/// know, as it could reveal information useful to an attacker.)
[System.Serializable]
[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)]
public struct SteamDatagramHostedAddress
{
// Size of data blob.
public int m_cbSize;
// Opaque
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 128)]
public byte[] m_data;
// Reset to empty state
public void Clear()
{
m_cbSize = 0;
m_data = new byte[128];
}
}
}
#endif // !DISABLESTEAMWORKS

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: b4b911b6f317d4b4dbc03443afe5f5b6
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,144 @@
// This file is provided under The MIT License as part of Steamworks.NET.
// Copyright (c) 2013-2022 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
#if !(UNITY_STANDALONE_WIN || UNITY_STANDALONE_LINUX || UNITY_STANDALONE_OSX || STEAMWORKS_WIN || STEAMWORKS_LIN_OSX)
#define DISABLESTEAMWORKS
#endif
#if !DISABLESTEAMWORKS
using System.Runtime.InteropServices;
using IntPtr = System.IntPtr;
namespace Steamworks
{
/// Network-routable identifier for a service. This is an intentionally
/// opaque byte blob. The relays know how to use this to forward it on
/// to the intended destination, but otherwise clients really should not
/// need to know what's inside. (Indeed, we don't really want them to
/// know, as it could reveal information useful to an attacker.)
[System.Serializable]
[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)]
public struct SteamDatagramRelayAuthTicket
{
/// Identity of the gameserver we want to talk to. This is required.
SteamNetworkingIdentity m_identityGameserver;
/// Identity of the person who was authorized. This is required.
SteamNetworkingIdentity m_identityAuthorizedClient;
/// SteamID is authorized to send from a particular public IP. If this
/// is 0, then the sender is not restricted to a particular IP.
///
/// Recommend to leave this set to zero.
uint m_unPublicIP;
/// Time when the ticket expires. Recommended: take the current
/// time and add 6 hours, or maybe a bit longer if your gameplay
/// sessions are longer.
///
/// NOTE: relays may reject tickets with expiry times excessively
/// far in the future, so contact us if you wish to use an expiry
/// longer than, say, 24 hours.
RTime32 m_rtimeTicketExpiry;
/// Routing information where the gameserver is listening for
/// relayed traffic. You should fill this in when generating
/// a ticket.
///
/// When generating tickets on your backend:
/// - In production: The gameserver knows the proper routing
/// information, so you need to call
/// ISteamNetworkingSockets::GetHostedDedicatedServerAddress
/// and send the info to your backend.
/// - In development, you will need to provide public IP
/// of the server using SteamDatagramServiceNetID::SetDevAddress.
/// Relays need to be able to send UDP
/// packets to this server. Since it's very likely that
/// your server is behind a firewall/NAT, make sure that
/// the address is the one that the outside world can use.
/// The traffic from the relays will be "unsolicited", so
/// stateful firewalls won't work -- you will probably have
/// to set up an explicit port forward.
/// On the client:
/// - this field will always be blank.
SteamDatagramHostedAddress m_routing;
/// App ID this is for. This is required, and should be the
/// App ID the client is running. (Even if your gameserver
/// uses a different App ID.)
uint m_nAppID;
/// Restrict this ticket to be used for a particular virtual port?
/// Set to -1 to allow any virtual port.
///
/// This is useful as a security measure, and also so the client will
/// use the right ticket (which might have extra fields that are useful
/// for proper analytics), if the client happens to have more than one
/// appropriate ticket.
///
/// Note: if a client has more that one acceptable ticket, they will
/// always use the one expiring the latest.
int m_nRestrictToVirtualPort;
//
// Extra fields.
//
// These are collected for backend analytics. For example, you might
// send a MatchID so that all of the records for a particular match can
// be located. Or send a game mode field so that you can compare
// the network characteristics of different game modes.
//
// (At the time of this writing we don't have a way to expose the data
// we collect to partners, but we hope to in the future so that you can
// get visibility into network conditions.)
//
[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)]
struct ExtraField
{
enum EType
{
k_EType_String,
k_EType_Int, // For most small integral values. Uses google protobuf sint64, so it's small on the wire. WARNING: In some places this value may be transmitted in JSON, in which case precision may be lost in backend analytics. Don't use this for an "identifier", use it for a scalar quantity.
k_EType_Fixed64, // 64 arbitrary bits. This value is treated as an "identifier". In places where JSON format is used, it will be serialized as a string. No aggregation / analytics can be performed on this value.
};
EType m_eType;
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 28)]
byte[] m_szName;
[StructLayout(LayoutKind.Explicit)]
struct OptionValue
{
[FieldOffset(0)]
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 128)]
byte[] m_szStringValue;
[FieldOffset(0)]
long m_nIntValue;
[FieldOffset(0)]
ulong m_nFixed64Value;
}
OptionValue m_val;
};
const int k_nMaxExtraFields = 16;
int m_nExtraFields;
[MarshalAs(UnmanagedType.ByValArray, SizeConst = k_nMaxExtraFields)]
ExtraField[] m_vecExtraFields;
// Reset all fields
public void Clear()
{
}
}
}
#endif // !DISABLESTEAMWORKS

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 15e38ab651a746e43b5ed10db54a0d3e
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 2093c750a2e614a418d09290c2161965
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,65 @@
// This file is provided under The MIT License as part of Steamworks.NET.
// Copyright (c) 2013-2022 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
#if !(UNITY_STANDALONE_WIN || UNITY_STANDALONE_LINUX || UNITY_STANDALONE_OSX || STEAMWORKS_WIN || STEAMWORKS_LIN_OSX)
#define DISABLESTEAMWORKS
#endif
#if !DISABLESTEAMWORKS
using System.Runtime.InteropServices;
using IntPtr = System.IntPtr;
namespace Steamworks {
[System.Serializable]
public struct FriendsGroupID_t : System.IEquatable<FriendsGroupID_t>, System.IComparable<FriendsGroupID_t> {
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);
}
}
}
#endif // !DISABLESTEAMWORKS

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 90d54edccd5581d44816f5e28bfd8a79
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 5a8b07e2178653546b35486633c13d9e
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,65 @@
// This file is provided under The MIT License as part of Steamworks.NET.
// Copyright (c) 2013-2022 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
#if !(UNITY_STANDALONE_WIN || UNITY_STANDALONE_LINUX || UNITY_STANDALONE_OSX || STEAMWORKS_WIN || STEAMWORKS_LIN_OSX)
#define DISABLESTEAMWORKS
#endif
#if !DISABLESTEAMWORKS
using System.Runtime.InteropServices;
using IntPtr = System.IntPtr;
namespace Steamworks {
[System.Serializable]
public struct HHTMLBrowser : System.IEquatable<HHTMLBrowser>, System.IComparable<HHTMLBrowser> {
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);
}
}
}
#endif // !DISABLESTEAMWORKS

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 81d58fa9c521a8846974e9c906c53ca6
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 646c6e2e130c5324da7f64ee70e64deb
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,65 @@
// This file is provided under The MIT License as part of Steamworks.NET.
// Copyright (c) 2013-2022 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
#if !(UNITY_STANDALONE_WIN || UNITY_STANDALONE_LINUX || UNITY_STANDALONE_OSX || STEAMWORKS_WIN || STEAMWORKS_LIN_OSX)
#define DISABLESTEAMWORKS
#endif
#if !DISABLESTEAMWORKS
using System.Runtime.InteropServices;
using IntPtr = System.IntPtr;
namespace Steamworks {
[System.Serializable]
public struct HTTPCookieContainerHandle : System.IEquatable<HTTPCookieContainerHandle>, System.IComparable<HTTPCookieContainerHandle> {
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);
}
}
}
#endif // !DISABLESTEAMWORKS

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 46e53a176d1039a499132c5707543617
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,65 @@
// This file is provided under The MIT License as part of Steamworks.NET.
// Copyright (c) 2013-2022 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
#if !(UNITY_STANDALONE_WIN || UNITY_STANDALONE_LINUX || UNITY_STANDALONE_OSX || STEAMWORKS_WIN || STEAMWORKS_LIN_OSX)
#define DISABLESTEAMWORKS
#endif
#if !DISABLESTEAMWORKS
using System.Runtime.InteropServices;
using IntPtr = System.IntPtr;
namespace Steamworks {
[System.Serializable]
public struct HTTPRequestHandle : System.IEquatable<HTTPRequestHandle>, System.IComparable<HTTPRequestHandle> {
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);
}
}
}
#endif // !DISABLESTEAMWORKS

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: b1a1dd2d769e5494188be1ede500917b
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 84e7f79a56edb674d8d20505cf8a3670
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,64 @@
// This file is provided under The MIT License as part of Steamworks.NET.
// Copyright (c) 2013-2022 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
#if !(UNITY_STANDALONE_WIN || UNITY_STANDALONE_LINUX || UNITY_STANDALONE_OSX || STEAMWORKS_WIN || STEAMWORKS_LIN_OSX)
#define DISABLESTEAMWORKS
#endif
#if !DISABLESTEAMWORKS
using System.Runtime.InteropServices;
using IntPtr = System.IntPtr;
namespace Steamworks {
[System.Serializable]
public struct InputActionSetHandle_t : System.IEquatable<InputActionSetHandle_t>, System.IComparable<InputActionSetHandle_t> {
public ulong m_InputActionSetHandle;
public InputActionSetHandle_t(ulong value) {
m_InputActionSetHandle = value;
}
public override string ToString() {
return m_InputActionSetHandle.ToString();
}
public override bool Equals(object other) {
return other is InputActionSetHandle_t && this == (InputActionSetHandle_t)other;
}
public override int GetHashCode() {
return m_InputActionSetHandle.GetHashCode();
}
public static bool operator ==(InputActionSetHandle_t x, InputActionSetHandle_t y) {
return x.m_InputActionSetHandle == y.m_InputActionSetHandle;
}
public static bool operator !=(InputActionSetHandle_t x, InputActionSetHandle_t y) {
return !(x == y);
}
public static explicit operator InputActionSetHandle_t(ulong value) {
return new InputActionSetHandle_t(value);
}
public static explicit operator ulong(InputActionSetHandle_t that) {
return that.m_InputActionSetHandle;
}
public bool Equals(InputActionSetHandle_t other) {
return m_InputActionSetHandle == other.m_InputActionSetHandle;
}
public int CompareTo(InputActionSetHandle_t other) {
return m_InputActionSetHandle.CompareTo(other.m_InputActionSetHandle);
}
}
}
#endif // !DISABLESTEAMWORKS

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 2933ebab378eea243a8bb0cd63811d37
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,64 @@
// This file is provided under The MIT License as part of Steamworks.NET.
// Copyright (c) 2013-2022 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
#if !(UNITY_STANDALONE_WIN || UNITY_STANDALONE_LINUX || UNITY_STANDALONE_OSX || STEAMWORKS_WIN || STEAMWORKS_LIN_OSX)
#define DISABLESTEAMWORKS
#endif
#if !DISABLESTEAMWORKS
using System.Runtime.InteropServices;
using IntPtr = System.IntPtr;
namespace Steamworks {
[System.Serializable]
public struct InputAnalogActionHandle_t : System.IEquatable<InputAnalogActionHandle_t>, System.IComparable<InputAnalogActionHandle_t> {
public ulong m_InputAnalogActionHandle;
public InputAnalogActionHandle_t(ulong value) {
m_InputAnalogActionHandle = value;
}
public override string ToString() {
return m_InputAnalogActionHandle.ToString();
}
public override bool Equals(object other) {
return other is InputAnalogActionHandle_t && this == (InputAnalogActionHandle_t)other;
}
public override int GetHashCode() {
return m_InputAnalogActionHandle.GetHashCode();
}
public static bool operator ==(InputAnalogActionHandle_t x, InputAnalogActionHandle_t y) {
return x.m_InputAnalogActionHandle == y.m_InputAnalogActionHandle;
}
public static bool operator !=(InputAnalogActionHandle_t x, InputAnalogActionHandle_t y) {
return !(x == y);
}
public static explicit operator InputAnalogActionHandle_t(ulong value) {
return new InputAnalogActionHandle_t(value);
}
public static explicit operator ulong(InputAnalogActionHandle_t that) {
return that.m_InputAnalogActionHandle;
}
public bool Equals(InputAnalogActionHandle_t other) {
return m_InputAnalogActionHandle == other.m_InputAnalogActionHandle;
}
public int CompareTo(InputAnalogActionHandle_t other) {
return m_InputAnalogActionHandle.CompareTo(other.m_InputAnalogActionHandle);
}
}
}
#endif // !DISABLESTEAMWORKS

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: f878bf26706ae2849a17a61a5b31a863
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,64 @@
// This file is provided under The MIT License as part of Steamworks.NET.
// Copyright (c) 2013-2022 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
#if !(UNITY_STANDALONE_WIN || UNITY_STANDALONE_LINUX || UNITY_STANDALONE_OSX || STEAMWORKS_WIN || STEAMWORKS_LIN_OSX)
#define DISABLESTEAMWORKS
#endif
#if !DISABLESTEAMWORKS
using System.Runtime.InteropServices;
using IntPtr = System.IntPtr;
namespace Steamworks {
[System.Serializable]
public struct InputDigitalActionHandle_t : System.IEquatable<InputDigitalActionHandle_t>, System.IComparable<InputDigitalActionHandle_t> {
public ulong m_InputDigitalActionHandle;
public InputDigitalActionHandle_t(ulong value) {
m_InputDigitalActionHandle = value;
}
public override string ToString() {
return m_InputDigitalActionHandle.ToString();
}
public override bool Equals(object other) {
return other is InputDigitalActionHandle_t && this == (InputDigitalActionHandle_t)other;
}
public override int GetHashCode() {
return m_InputDigitalActionHandle.GetHashCode();
}
public static bool operator ==(InputDigitalActionHandle_t x, InputDigitalActionHandle_t y) {
return x.m_InputDigitalActionHandle == y.m_InputDigitalActionHandle;
}
public static bool operator !=(InputDigitalActionHandle_t x, InputDigitalActionHandle_t y) {
return !(x == y);
}
public static explicit operator InputDigitalActionHandle_t(ulong value) {
return new InputDigitalActionHandle_t(value);
}
public static explicit operator ulong(InputDigitalActionHandle_t that) {
return that.m_InputDigitalActionHandle;
}
public bool Equals(InputDigitalActionHandle_t other) {
return m_InputDigitalActionHandle == other.m_InputDigitalActionHandle;
}
public int CompareTo(InputDigitalActionHandle_t other) {
return m_InputDigitalActionHandle.CompareTo(other.m_InputDigitalActionHandle);
}
}
}
#endif // !DISABLESTEAMWORKS

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: b7e0225fbabbd2443914046575983874
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,64 @@
// This file is provided under The MIT License as part of Steamworks.NET.
// Copyright (c) 2013-2022 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
#if !(UNITY_STANDALONE_WIN || UNITY_STANDALONE_LINUX || UNITY_STANDALONE_OSX || STEAMWORKS_WIN || STEAMWORKS_LIN_OSX)
#define DISABLESTEAMWORKS
#endif
#if !DISABLESTEAMWORKS
using System.Runtime.InteropServices;
using IntPtr = System.IntPtr;
namespace Steamworks {
[System.Serializable]
public struct InputHandle_t : System.IEquatable<InputHandle_t>, System.IComparable<InputHandle_t> {
public ulong m_InputHandle;
public InputHandle_t(ulong value) {
m_InputHandle = value;
}
public override string ToString() {
return m_InputHandle.ToString();
}
public override bool Equals(object other) {
return other is InputHandle_t && this == (InputHandle_t)other;
}
public override int GetHashCode() {
return m_InputHandle.GetHashCode();
}
public static bool operator ==(InputHandle_t x, InputHandle_t y) {
return x.m_InputHandle == y.m_InputHandle;
}
public static bool operator !=(InputHandle_t x, InputHandle_t y) {
return !(x == y);
}
public static explicit operator InputHandle_t(ulong value) {
return new InputHandle_t(value);
}
public static explicit operator ulong(InputHandle_t that) {
return that.m_InputHandle;
}
public bool Equals(InputHandle_t other) {
return m_InputHandle == other.m_InputHandle;
}
public int CompareTo(InputHandle_t other) {
return m_InputHandle.CompareTo(other.m_InputHandle);
}
}
}
#endif // !DISABLESTEAMWORKS

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: b9efdfe120ed0c24db8d9d397543e583
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,22 @@
// This file is provided under The MIT License as part of Steamworks.NET.
// Copyright (c) 2013-2022 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
#if !(UNITY_STANDALONE_WIN || UNITY_STANDALONE_LINUX || UNITY_STANDALONE_OSX || STEAMWORKS_WIN || STEAMWORKS_LIN_OSX)
#define DISABLESTEAMWORKS
#endif
#if !DISABLESTEAMWORKS
using System.Runtime.InteropServices;
using IntPtr = System.IntPtr;
namespace Steamworks {
[System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.Cdecl)]
public delegate void SteamInputActionEventCallbackPointer(IntPtr /* SteamInputActionEvent_t* */ SteamInputActionEvent);
}
#endif // !DISABLESTEAMWORKS

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 40f4d6fda0f15ff47a9866d0afa2be32
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,65 @@
// This file is provided under The MIT License as part of Steamworks.NET.
// Copyright (c) 2013-2022 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
#if !(UNITY_STANDALONE_WIN || UNITY_STANDALONE_LINUX || UNITY_STANDALONE_OSX || STEAMWORKS_WIN || STEAMWORKS_LIN_OSX)
#define DISABLESTEAMWORKS
#endif
#if !DISABLESTEAMWORKS
using System.Runtime.InteropServices;
using IntPtr = System.IntPtr;
namespace Steamworks
{
//-----------------------------------------------------------------------------
// Purpose: when callbacks are enabled this fires each time a controller action
// state changes
//-----------------------------------------------------------------------------
[System.Serializable]
[StructLayout(LayoutKind.Sequential)]
public struct SteamInputActionEvent_t
{
public InputHandle_t controllerHandle;
public ESteamInputActionEventType eEventType;
/// Option value
public OptionValue m_val;
[System.Serializable]
[StructLayout(LayoutKind.Sequential)]
public struct AnalogAction_t
{
public InputAnalogActionHandle_t actionHandle;
public InputAnalogActionData_t analogActionData;
}
[System.Serializable]
[StructLayout(LayoutKind.Sequential)]
public struct DigitalAction_t
{
public InputDigitalActionHandle_t actionHandle;
public InputDigitalActionData_t digitalActionData;
}
[System.Serializable]
[StructLayout(LayoutKind.Explicit)]
public struct OptionValue
{
[FieldOffset(0)]
public AnalogAction_t analogAction;
[FieldOffset(0)]
public DigitalAction_t digitalAction;
}
}
}
#endif // !DISABLESTEAMWORKS

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 31fd8b9eec8549a4f94d7059185ef204
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 09b34f6991630564fa297d7142bb3be4
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,65 @@
// This file is provided under The MIT License as part of Steamworks.NET.
// Copyright (c) 2013-2022 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
#if !(UNITY_STANDALONE_WIN || UNITY_STANDALONE_LINUX || UNITY_STANDALONE_OSX || STEAMWORKS_WIN || STEAMWORKS_LIN_OSX)
#define DISABLESTEAMWORKS
#endif
#if !DISABLESTEAMWORKS
using System.Runtime.InteropServices;
using IntPtr = System.IntPtr;
namespace Steamworks {
[System.Serializable]
public struct SteamInventoryResult_t : System.IEquatable<SteamInventoryResult_t>, System.IComparable<SteamInventoryResult_t> {
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);
}
}
}
#endif // !DISABLESTEAMWORKS

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 3655fc26cc26d1247913e462173de930
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,65 @@
// This file is provided under The MIT License as part of Steamworks.NET.
// Copyright (c) 2013-2022 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
#if !(UNITY_STANDALONE_WIN || UNITY_STANDALONE_LINUX || UNITY_STANDALONE_OSX || STEAMWORKS_WIN || STEAMWORKS_LIN_OSX)
#define DISABLESTEAMWORKS
#endif
#if !DISABLESTEAMWORKS
using System.Runtime.InteropServices;
using IntPtr = System.IntPtr;
namespace Steamworks {
[System.Serializable]
public struct SteamInventoryUpdateHandle_t : System.IEquatable<SteamInventoryUpdateHandle_t>, System.IComparable<SteamInventoryUpdateHandle_t> {
public static readonly SteamInventoryUpdateHandle_t Invalid = new SteamInventoryUpdateHandle_t(0xffffffffffffffff);
public ulong m_SteamInventoryUpdateHandle;
public SteamInventoryUpdateHandle_t(ulong value) {
m_SteamInventoryUpdateHandle = value;
}
public override string ToString() {
return m_SteamInventoryUpdateHandle.ToString();
}
public override bool Equals(object other) {
return other is SteamInventoryUpdateHandle_t && this == (SteamInventoryUpdateHandle_t)other;
}
public override int GetHashCode() {
return m_SteamInventoryUpdateHandle.GetHashCode();
}
public static bool operator ==(SteamInventoryUpdateHandle_t x, SteamInventoryUpdateHandle_t y) {
return x.m_SteamInventoryUpdateHandle == y.m_SteamInventoryUpdateHandle;
}
public static bool operator !=(SteamInventoryUpdateHandle_t x, SteamInventoryUpdateHandle_t y) {
return !(x == y);
}
public static explicit operator SteamInventoryUpdateHandle_t(ulong value) {
return new SteamInventoryUpdateHandle_t(value);
}
public static explicit operator ulong(SteamInventoryUpdateHandle_t that) {
return that.m_SteamInventoryUpdateHandle;
}
public bool Equals(SteamInventoryUpdateHandle_t other) {
return m_SteamInventoryUpdateHandle == other.m_SteamInventoryUpdateHandle;
}
public int CompareTo(SteamInventoryUpdateHandle_t other) {
return m_SteamInventoryUpdateHandle.CompareTo(other.m_SteamInventoryUpdateHandle);
}
}
}
#endif // !DISABLESTEAMWORKS

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: fb6aaeded4c5b154a9addb247ec4b530
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,64 @@
// This file is provided under The MIT License as part of Steamworks.NET.
// Copyright (c) 2013-2022 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
#if !(UNITY_STANDALONE_WIN || UNITY_STANDALONE_LINUX || UNITY_STANDALONE_OSX || STEAMWORKS_WIN || STEAMWORKS_LIN_OSX)
#define DISABLESTEAMWORKS
#endif
#if !DISABLESTEAMWORKS
using System.Runtime.InteropServices;
using IntPtr = System.IntPtr;
namespace Steamworks {
[System.Serializable]
public struct SteamItemDef_t : System.IEquatable<SteamItemDef_t>, System.IComparable<SteamItemDef_t> {
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);
}
}
}
#endif // !DISABLESTEAMWORKS

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: cbb744003026c674aa18c48cedffb1d5
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,65 @@
// This file is provided under The MIT License as part of Steamworks.NET.
// Copyright (c) 2013-2022 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
#if !(UNITY_STANDALONE_WIN || UNITY_STANDALONE_LINUX || UNITY_STANDALONE_OSX || STEAMWORKS_WIN || STEAMWORKS_LIN_OSX)
#define DISABLESTEAMWORKS
#endif
#if !DISABLESTEAMWORKS
using System.Runtime.InteropServices;
using IntPtr = System.IntPtr;
namespace Steamworks {
[System.Serializable]
public struct SteamItemInstanceID_t : System.IEquatable<SteamItemInstanceID_t>, System.IComparable<SteamItemInstanceID_t> {
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);
}
}
}
#endif // !DISABLESTEAMWORKS

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 342c072be17625543a7335f6657a1d6a
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 8f7461f6b90d23648a087ee81fe7639b
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,61 @@
// This file is provided under The MIT License as part of Steamworks.NET.
// Copyright (c) 2013-2022 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
#if !(UNITY_STANDALONE_WIN || UNITY_STANDALONE_LINUX || UNITY_STANDALONE_OSX || STEAMWORKS_WIN || STEAMWORKS_LIN_OSX)
#define DISABLESTEAMWORKS
#endif
#if !DISABLESTEAMWORKS
using System.Runtime.InteropServices;
using IntPtr = System.IntPtr;
namespace Steamworks {
[System.Serializable]
public struct HServerListRequest : System.IEquatable<HServerListRequest> {
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;
}
}
}
#endif // !DISABLESTEAMWORKS

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: fcc822173185aef4bb50a5a5713a3d5e
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,65 @@
// This file is provided under The MIT License as part of Steamworks.NET.
// Copyright (c) 2013-2022 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
#if !(UNITY_STANDALONE_WIN || UNITY_STANDALONE_LINUX || UNITY_STANDALONE_OSX || STEAMWORKS_WIN || STEAMWORKS_LIN_OSX)
#define DISABLESTEAMWORKS
#endif
#if !DISABLESTEAMWORKS
using System.Runtime.InteropServices;
using IntPtr = System.IntPtr;
namespace Steamworks {
[System.Serializable]
public struct HServerQuery : System.IEquatable<HServerQuery>, System.IComparable<HServerQuery> {
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);
}
}
}
#endif // !DISABLESTEAMWORKS

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: b3ebfd1441df2ab43b6ff570a5434825
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 5dac59af1c5f6e84e80775c18fbe1a39
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,64 @@
// This file is provided under The MIT License as part of Steamworks.NET.
// Copyright (c) 2013-2022 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
#if !(UNITY_STANDALONE_WIN || UNITY_STANDALONE_LINUX || UNITY_STANDALONE_OSX || STEAMWORKS_WIN || STEAMWORKS_LIN_OSX)
#define DISABLESTEAMWORKS
#endif
#if !DISABLESTEAMWORKS
using System.Runtime.InteropServices;
using IntPtr = System.IntPtr;
namespace Steamworks {
[System.Serializable]
public struct SNetListenSocket_t : System.IEquatable<SNetListenSocket_t>, System.IComparable<SNetListenSocket_t> {
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);
}
}
}
#endif // !DISABLESTEAMWORKS

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 64b4f5fdd688b0f44a78b8f79471aaa7
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,64 @@
// This file is provided under The MIT License as part of Steamworks.NET.
// Copyright (c) 2013-2022 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
#if !(UNITY_STANDALONE_WIN || UNITY_STANDALONE_LINUX || UNITY_STANDALONE_OSX || STEAMWORKS_WIN || STEAMWORKS_LIN_OSX)
#define DISABLESTEAMWORKS
#endif
#if !DISABLESTEAMWORKS
using System.Runtime.InteropServices;
using IntPtr = System.IntPtr;
namespace Steamworks {
[System.Serializable]
public struct SNetSocket_t : System.IEquatable<SNetSocket_t>, System.IComparable<SNetSocket_t> {
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);
}
}
}
#endif // !DISABLESTEAMWORKS

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 513e29c43cea6fe43bae1ca068e814fc
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 37be22eb1636ffe42880021313a27edd
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,65 @@
// This file is provided under The MIT License as part of Steamworks.NET.
// Copyright (c) 2013-2022 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
#if !(UNITY_STANDALONE_WIN || UNITY_STANDALONE_LINUX || UNITY_STANDALONE_OSX || STEAMWORKS_WIN || STEAMWORKS_LIN_OSX)
#define DISABLESTEAMWORKS
#endif
#if !DISABLESTEAMWORKS
using System.Runtime.InteropServices;
using IntPtr = System.IntPtr;
namespace Steamworks
{
/// Interface used to send signaling messages for a particular connection.
///
/// - For connections initiated locally, you will construct it and pass
/// it to ISteamNetworkingSockets::ConnectP2PCustomSignaling.
/// - For connections initiated remotely and "accepted" locally, you
/// will return it from ISteamNetworkingSignalingRecvContext::OnConnectRequest
[System.Serializable]
[StructLayout(LayoutKind.Sequential)]
public struct ISteamNetworkingConnectionSignaling
{
/// Called to send a rendezvous message to the remote peer. This may be called
/// from any thread, at any time, so you need to be thread-safe! Don't take
/// any locks that might hold while calling into SteamNetworkingSockets functions,
/// because this could lead to deadlocks.
///
/// Note that when initiating a connection, we may not know the identity
/// of the peer, if you did not specify it in ConnectP2PCustomSignaling.
///
/// Return true if a best-effort attempt was made to deliver the message.
/// If you return false, it is assumed that the situation is fatal;
/// the connection will be closed, and Release() will be called
/// eventually.
///
/// Signaling objects will not be shared between connections.
/// You can assume that the same value of hConn will be used
/// every time.
public bool SendSignal(HSteamNetConnection hConn, ref SteamNetConnectionInfo_t info, IntPtr pMsg, int cbMsg) {
return NativeMethods.SteamAPI_ISteamNetworkingConnectionSignaling_SendSignal(ref this, hConn, ref info, pMsg, cbMsg);
}
/// Called when the connection no longer needs to send signals.
/// Note that this happens eventually (but not immediately) after
/// the connection is closed. Signals may need to be sent for a brief
/// time after the connection is closed, to clean up the connection.
///
/// If you do not need to save any additional per-connection information
/// and can handle SendSignal() using only the arguments supplied, you do
/// not need to actually create different objects per connection. In that
/// case, it is valid for all connections to use the same global object, and
/// for this function to do nothing.
public void Release() {
NativeMethods.SteamAPI_ISteamNetworkingConnectionSignaling_Release(ref this);
}
}
}
#endif // !DISABLESTEAMWORKS

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 0cfb93a120f656a43b7e5969811789e8
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,65 @@
// This file is provided under The MIT License as part of Steamworks.NET.
// Copyright (c) 2013-2022 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
#if !(UNITY_STANDALONE_WIN || UNITY_STANDALONE_LINUX || UNITY_STANDALONE_OSX || STEAMWORKS_WIN || STEAMWORKS_LIN_OSX)
#define DISABLESTEAMWORKS
#endif
#if !DISABLESTEAMWORKS
using System.Runtime.InteropServices;
using IntPtr = System.IntPtr;
namespace Steamworks
{
/// Interface used when a custom signal is received.
/// See ISteamNetworkingSockets::ReceivedP2PCustomSignal
[System.Serializable]
[StructLayout(LayoutKind.Sequential)]
public struct ISteamNetworkingSignalingRecvContext
{
/// Called when the signal represents a request for a new connection.
///
/// If you want to ignore the request, just return NULL. In this case,
/// the peer will NOT receive any reply. You should consider ignoring
/// requests rather than actively rejecting them, as a security measure.
/// If you actively reject requests, then this makes it possible to detect
/// if a user is online or not, just by sending them a request.
///
/// If you wish to send back a rejection, then use
/// ISteamNetworkingSockets::CloseConnection() and then return NULL.
/// We will marshal a properly formatted rejection signal and
/// call SendRejectionSignal() so you can send it to them.
///
/// If you return a signaling object, the connection is NOT immediately
/// accepted by default. Instead, it stays in the "connecting" state,
/// and the usual callback is posted, and your app can accept the
/// connection using ISteamNetworkingSockets::AcceptConnection. This
/// may be useful so that these sorts of connections can be more similar
/// to your application code as other types of connections accepted on
/// a listen socket. If this is not useful and you want to skip this
/// callback process and immediately accept the connection, call
/// ISteamNetworkingSockets::AcceptConnection before returning the
/// signaling object.
///
/// After accepting a connection (through either means), the connection
/// will transition into the "finding route" state.
public IntPtr OnConnectRequest(HSteamNetConnection hConn, ref SteamNetworkingIdentity identityPeer, int nLocalVirtualPort) {
return NativeMethods.SteamAPI_ISteamNetworkingSignalingRecvContext_OnConnectRequest(ref this, hConn, ref identityPeer, nLocalVirtualPort);
}
/// This is called to actively communicate rejection or failure
/// to the incoming message. If you intend to ignore all incoming requests
/// that you do not wish to accept, then it's not strictly necessary to
/// implement this.
public void SendRejectionSignal(ref SteamNetworkingIdentity identityPeer, IntPtr pMsg, int cbMsg) {
NativeMethods.SteamAPI_ISteamNetworkingSignalingRecvContext_SendRejectionSignal(ref this, ref identityPeer, pMsg, cbMsg);
}
}
}
#endif // !DISABLESTEAMWORKS

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: fa2e1ae613a00394e93e19a1a9ffcdd9
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 1ba4e1796c90994458024f38a21ddc00
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,23 @@
// This file is provided under The MIT License as part of Steamworks.NET.
// Copyright (c) 2013-2022 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
#if !(UNITY_STANDALONE_WIN || UNITY_STANDALONE_LINUX || UNITY_STANDALONE_OSX || STEAMWORKS_WIN || STEAMWORKS_LIN_OSX)
#define DISABLESTEAMWORKS
#endif
#if !DISABLESTEAMWORKS
using System.Runtime.InteropServices;
using IntPtr = System.IntPtr;
namespace Steamworks {
/// Setup callback for debug output, and the desired verbosity you want.
[System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.Cdecl)]
public delegate void FSteamNetworkingSocketsDebugOutput(ESteamNetworkingSocketsDebugOutputType nType, System.Text.StringBuilder pszMsg);
}
#endif // !DISABLESTEAMWORKS

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 01e845f5c7ac1344bb4f339a4517f229
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,65 @@
// This file is provided under The MIT License as part of Steamworks.NET.
// Copyright (c) 2013-2022 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
#if !(UNITY_STANDALONE_WIN || UNITY_STANDALONE_LINUX || UNITY_STANDALONE_OSX || STEAMWORKS_WIN || STEAMWORKS_LIN_OSX)
#define DISABLESTEAMWORKS
#endif
#if !DISABLESTEAMWORKS
using System.Runtime.InteropServices;
using IntPtr = System.IntPtr;
namespace Steamworks {
[System.Serializable]
public struct HSteamListenSocket : System.IEquatable<HSteamListenSocket>, System.IComparable<HSteamListenSocket> {
public static readonly HSteamListenSocket Invalid = new HSteamListenSocket(0);
public uint m_HSteamListenSocket;
public HSteamListenSocket(uint value) {
m_HSteamListenSocket = value;
}
public override string ToString() {
return m_HSteamListenSocket.ToString();
}
public override bool Equals(object other) {
return other is HSteamListenSocket && this == (HSteamListenSocket)other;
}
public override int GetHashCode() {
return m_HSteamListenSocket.GetHashCode();
}
public static bool operator ==(HSteamListenSocket x, HSteamListenSocket y) {
return x.m_HSteamListenSocket == y.m_HSteamListenSocket;
}
public static bool operator !=(HSteamListenSocket x, HSteamListenSocket y) {
return !(x == y);
}
public static explicit operator HSteamListenSocket(uint value) {
return new HSteamListenSocket(value);
}
public static explicit operator uint(HSteamListenSocket that) {
return that.m_HSteamListenSocket;
}
public bool Equals(HSteamListenSocket other) {
return m_HSteamListenSocket == other.m_HSteamListenSocket;
}
public int CompareTo(HSteamListenSocket other) {
return m_HSteamListenSocket.CompareTo(other.m_HSteamListenSocket);
}
}
}
#endif // !DISABLESTEAMWORKS

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 563cb1ebcd2c39742aab1d18d195c956
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,65 @@
// This file is provided under The MIT License as part of Steamworks.NET.
// Copyright (c) 2013-2022 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
#if !(UNITY_STANDALONE_WIN || UNITY_STANDALONE_LINUX || UNITY_STANDALONE_OSX || STEAMWORKS_WIN || STEAMWORKS_LIN_OSX)
#define DISABLESTEAMWORKS
#endif
#if !DISABLESTEAMWORKS
using System.Runtime.InteropServices;
using IntPtr = System.IntPtr;
namespace Steamworks {
[System.Serializable]
public struct HSteamNetConnection : System.IEquatable<HSteamNetConnection>, System.IComparable<HSteamNetConnection> {
public static readonly HSteamNetConnection Invalid = new HSteamNetConnection(0);
public uint m_HSteamNetConnection;
public HSteamNetConnection(uint value) {
m_HSteamNetConnection = value;
}
public override string ToString() {
return m_HSteamNetConnection.ToString();
}
public override bool Equals(object other) {
return other is HSteamNetConnection && this == (HSteamNetConnection)other;
}
public override int GetHashCode() {
return m_HSteamNetConnection.GetHashCode();
}
public static bool operator ==(HSteamNetConnection x, HSteamNetConnection y) {
return x.m_HSteamNetConnection == y.m_HSteamNetConnection;
}
public static bool operator !=(HSteamNetConnection x, HSteamNetConnection y) {
return !(x == y);
}
public static explicit operator HSteamNetConnection(uint value) {
return new HSteamNetConnection(value);
}
public static explicit operator uint(HSteamNetConnection that) {
return that.m_HSteamNetConnection;
}
public bool Equals(HSteamNetConnection other) {
return m_HSteamNetConnection == other.m_HSteamNetConnection;
}
public int CompareTo(HSteamNetConnection other) {
return m_HSteamNetConnection.CompareTo(other.m_HSteamNetConnection);
}
}
}
#endif // !DISABLESTEAMWORKS

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: d21865a9baf5e3e46bdb32c46cda3f79
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,65 @@
// This file is provided under The MIT License as part of Steamworks.NET.
// Copyright (c) 2013-2022 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
#if !(UNITY_STANDALONE_WIN || UNITY_STANDALONE_LINUX || UNITY_STANDALONE_OSX || STEAMWORKS_WIN || STEAMWORKS_LIN_OSX)
#define DISABLESTEAMWORKS
#endif
#if !DISABLESTEAMWORKS
using System.Runtime.InteropServices;
using IntPtr = System.IntPtr;
namespace Steamworks {
[System.Serializable]
public struct HSteamNetPollGroup : System.IEquatable<HSteamNetPollGroup>, System.IComparable<HSteamNetPollGroup> {
public static readonly HSteamNetPollGroup Invalid = new HSteamNetPollGroup(0);
public uint m_HSteamNetPollGroup;
public HSteamNetPollGroup(uint value) {
m_HSteamNetPollGroup = value;
}
public override string ToString() {
return m_HSteamNetPollGroup.ToString();
}
public override bool Equals(object other) {
return other is HSteamNetPollGroup && this == (HSteamNetPollGroup)other;
}
public override int GetHashCode() {
return m_HSteamNetPollGroup.GetHashCode();
}
public static bool operator ==(HSteamNetPollGroup x, HSteamNetPollGroup y) {
return x.m_HSteamNetPollGroup == y.m_HSteamNetPollGroup;
}
public static bool operator !=(HSteamNetPollGroup x, HSteamNetPollGroup y) {
return !(x == y);
}
public static explicit operator HSteamNetPollGroup(uint value) {
return new HSteamNetPollGroup(value);
}
public static explicit operator uint(HSteamNetPollGroup that) {
return that.m_HSteamNetPollGroup;
}
public bool Equals(HSteamNetPollGroup other) {
return m_HSteamNetPollGroup == other.m_HSteamNetPollGroup;
}
public int CompareTo(HSteamNetPollGroup other) {
return m_HSteamNetPollGroup.CompareTo(other.m_HSteamNetPollGroup);
}
}
}
#endif // !DISABLESTEAMWORKS

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: e0b21cbbe5b0d2c4789c121a63ff96d7
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,64 @@
// This file is provided under The MIT License as part of Steamworks.NET.
// Copyright (c) 2013-2022 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
#if !(UNITY_STANDALONE_WIN || UNITY_STANDALONE_LINUX || UNITY_STANDALONE_OSX || STEAMWORKS_WIN || STEAMWORKS_LIN_OSX)
#define DISABLESTEAMWORKS
#endif
#if !DISABLESTEAMWORKS
using System.Runtime.InteropServices;
using IntPtr = System.IntPtr;
namespace Steamworks
{
/// In a few places we need to set configuration options on listen sockets and connections, and
/// have them take effect *before* the listen socket or connection really starts doing anything.
/// Creating the object and then setting the options "immediately" after creation doesn't work
/// completely, because network packets could be received between the time the object is created and
/// when the options are applied. To set options at creation time in a reliable way, they must be
/// passed to the creation function. This structure is used to pass those options.
///
/// For the meaning of these fields, see ISteamNetworkingUtils::SetConfigValue. Basically
/// when the object is created, we just iterate over the list of options and call
/// ISteamNetworkingUtils::SetConfigValueStruct, where the scope arguments are supplied by the
/// object being created.
[System.Serializable]
[StructLayout(LayoutKind.Sequential)]
public struct SteamNetworkingConfigValue_t
{
/// Which option is being set
public ESteamNetworkingConfigValue m_eValue;
/// Which field below did you fill in?
public ESteamNetworkingConfigDataType m_eDataType;
/// Option value
public OptionValue m_val;
[StructLayout(LayoutKind.Explicit)]
public struct OptionValue
{
[FieldOffset(0)]
public int m_int32;
[FieldOffset(0)]
public long m_int64;
[FieldOffset(0)]
public float m_float;
[FieldOffset(0)]
public IntPtr m_string; // Points to your '\0'-terminated buffer
[FieldOffset(0)]
public IntPtr m_functionPtr;
}
}
}
#endif // !DISABLESTEAMWORKS

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 2b673ffa9a546ca4bad40431041e7588
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,30 @@
// This file is provided under The MIT License as part of Steamworks.NET.
// Copyright (c) 2013-2022 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
#if !(UNITY_STANDALONE_WIN || UNITY_STANDALONE_LINUX || UNITY_STANDALONE_OSX || STEAMWORKS_WIN || STEAMWORKS_LIN_OSX)
#define DISABLESTEAMWORKS
#endif
#if !DISABLESTEAMWORKS
using System.Runtime.InteropServices;
using IntPtr = System.IntPtr;
namespace Steamworks
{
/// Used to return English-language diagnostic error messages to caller.
/// (For debugging or spewing to a console, etc. Not intended for UI.)
[System.Serializable]
[StructLayout(LayoutKind.Sequential)]
public struct SteamNetworkingErrMsg
{
[MarshalAs(UnmanagedType.ByValArray, SizeConst = Constants.k_cchMaxSteamNetworkingErrMsg)]
public byte[] m_SteamNetworkingErrMsg;
}
}
#endif // !DISABLESTEAMWORKS

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: fd8272539368a044086b35f3cbab9243
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,114 @@
// This file is provided under The MIT License as part of Steamworks.NET.
// Copyright (c) 2013-2022 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
#if !(UNITY_STANDALONE_WIN || UNITY_STANDALONE_LINUX || UNITY_STANDALONE_OSX || STEAMWORKS_WIN || STEAMWORKS_LIN_OSX)
#define DISABLESTEAMWORKS
#endif
#if !DISABLESTEAMWORKS
using System.Runtime.InteropServices;
using IntPtr = System.IntPtr;
namespace Steamworks
{
/// Store an IP and port. IPv6 is always used; IPv4 is represented using
/// "IPv4-mapped" addresses: IPv4 aa.bb.cc.dd => IPv6 ::ffff:aabb:ccdd
/// (RFC 4291 section 2.5.5.2.)
[System.Serializable]
[StructLayout(LayoutKind.Sequential, Pack = 1)]
public struct SteamNetworkingIPAddr : System.IEquatable<SteamNetworkingIPAddr>
{
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 16)]
public byte[] m_ipv6;
public ushort m_port; // Host byte order
// Max length of the buffer needed to hold IP formatted using ToString, including '\0'
// ([0123:4567:89ab:cdef:0123:4567:89ab:cdef]:12345)
public const int k_cchMaxString = 48;
// Set everything to zero. E.g. [::]:0
public void Clear() {
NativeMethods.SteamAPI_SteamNetworkingIPAddr_Clear(ref this);
}
// Return true if the IP is ::0. (Doesn't check port.)
public bool IsIPv6AllZeros() {
return NativeMethods.SteamAPI_SteamNetworkingIPAddr_IsIPv6AllZeros(ref this);
}
// Set IPv6 address. IP is interpreted as bytes, so there are no endian issues. (Same as inaddr_in6.) The IP can be a mapped IPv4 address
public void SetIPv6(byte[] ipv6, ushort nPort) {
NativeMethods.SteamAPI_SteamNetworkingIPAddr_SetIPv6(ref this, ipv6, nPort);
}
// Sets to IPv4 mapped address. IP and port are in host byte order.
public void SetIPv4(uint nIP, ushort nPort) {
NativeMethods.SteamAPI_SteamNetworkingIPAddr_SetIPv4(ref this, nIP, nPort);
}
// Return true if IP is mapped IPv4
public bool IsIPv4() {
return NativeMethods.SteamAPI_SteamNetworkingIPAddr_IsIPv4(ref this);
}
// Returns IP in host byte order (e.g. aa.bb.cc.dd as 0xaabbccdd). Returns 0 if IP is not mapped IPv4.
public uint GetIPv4() {
return NativeMethods.SteamAPI_SteamNetworkingIPAddr_GetIPv4(ref this);
}
// Set to the IPv6 localhost address ::1, and the specified port.
public void SetIPv6LocalHost(ushort nPort = 0) {
NativeMethods.SteamAPI_SteamNetworkingIPAddr_SetIPv6LocalHost(ref this, nPort);
}
// Return true if this identity is localhost. (Either IPv6 ::1, or IPv4 127.0.0.1)
public bool IsLocalHost() {
return NativeMethods.SteamAPI_SteamNetworkingIPAddr_IsLocalHost(ref this);
}
/// Print to a string, with or without the port. Mapped IPv4 addresses are printed
/// as dotted decimal (12.34.56.78), otherwise this will print the canonical
/// form according to RFC5952. If you include the port, IPv6 will be surrounded by
/// brackets, e.g. [::1:2]:80. Your buffer should be at least k_cchMaxString bytes
/// to avoid truncation
///
/// See also SteamNetworkingIdentityRender
public void ToString(out string buf, bool bWithPort) {
IntPtr buf2 = Marshal.AllocHGlobal(k_cchMaxString);
NativeMethods.SteamAPI_SteamNetworkingIPAddr_ToString(ref this, buf2, k_cchMaxString, bWithPort);
buf = InteropHelp.PtrToStringUTF8(buf2);
Marshal.FreeHGlobal(buf2);
}
/// Parse an IP address and optional port. If a port is not present, it is set to 0.
/// (This means that you cannot tell if a zero port was explicitly specified.)
public bool ParseString(string pszStr) {
using (var pszStr2 = new InteropHelp.UTF8StringHandle(pszStr)) {
return NativeMethods.SteamAPI_SteamNetworkingIPAddr_ParseString(ref this, pszStr2);
}
}
/// See if two addresses are identical
public bool Equals(SteamNetworkingIPAddr x) {
return NativeMethods.SteamAPI_SteamNetworkingIPAddr_IsEqualTo(ref this, ref x);
}
/// Classify address as FakeIP. This function never returns
/// k_ESteamNetworkingFakeIPType_Invalid.
public ESteamNetworkingFakeIPType GetFakeIPType() {
return NativeMethods.SteamAPI_SteamNetworkingIPAddr_GetFakeIPType(ref this);
}
/// Return true if we are a FakeIP
public bool IsFakeIP() {
return GetFakeIPType() > ESteamNetworkingFakeIPType.k_ESteamNetworkingFakeIPType_NotFake;
}
}
}
#endif // !DISABLESTEAMWORKS

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: cf91bd24bcddd80499a9a07ed0497513
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,232 @@
// This file is provided under The MIT License as part of Steamworks.NET.
// Copyright (c) 2013-2022 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
#if !(UNITY_STANDALONE_WIN || UNITY_STANDALONE_LINUX || UNITY_STANDALONE_OSX || STEAMWORKS_WIN || STEAMWORKS_LIN_OSX)
#define DISABLESTEAMWORKS
#endif
#if !DISABLESTEAMWORKS
using System.Runtime.InteropServices;
using IntPtr = System.IntPtr;
namespace Steamworks
{
/// An abstract way to represent the identity of a network host. All identities can
/// be represented as simple string. Furthermore, this string representation is actually
/// used on the wire in several places, even though it is less efficient, in order to
/// facilitate forward compatibility. (Old client code can handle an identity type that
/// it doesn't understand.)
[System.Serializable]
[StructLayout(LayoutKind.Sequential, Pack = 1)]
public struct SteamNetworkingIdentity : System.IEquatable<SteamNetworkingIdentity>
{
/// Type of identity.
public ESteamNetworkingIdentityType m_eType;
//
// Internal representation. Don't access this directly, use the accessors!
//
// Number of bytes that are relevant below. This MUST ALWAYS be
// set. (Use the accessors!) This is important to enable old code to work
// with new identity types.
private int m_cbSize;
// Note this is written out as such because we want this to be a blittable/unmanaged type.
private uint m_reserved0; // Pad structure to leave easy room for future expansion
private uint m_reserved1;
private uint m_reserved2;
private uint m_reserved3;
private uint m_reserved4;
private uint m_reserved5;
private uint m_reserved6;
private uint m_reserved7;
private uint m_reserved8;
private uint m_reserved9;
private uint m_reserved10;
private uint m_reserved11;
private uint m_reserved12;
private uint m_reserved13;
private uint m_reserved14;
private uint m_reserved15;
private uint m_reserved16;
private uint m_reserved17;
private uint m_reserved18;
private uint m_reserved19;
private uint m_reserved20;
private uint m_reserved21;
private uint m_reserved22;
private uint m_reserved23;
private uint m_reserved24;
private uint m_reserved25;
private uint m_reserved26;
private uint m_reserved27;
private uint m_reserved28;
private uint m_reserved29;
private uint m_reserved30;
private uint m_reserved31;
// Max sizes
public const int k_cchMaxString = 128; // Max length of the buffer needed to hold any identity, formatted in string format by ToString
public const int k_cchMaxGenericString = 32; // Max length of the string for generic string identities. Including terminating '\0'
public const int k_cchMaxXboxPairwiseID = 33; // Including terminating '\0'
public const int k_cbMaxGenericBytes = 32;
//
// Get/Set in various formats.
//
public void Clear() {
NativeMethods.SteamAPI_SteamNetworkingIdentity_Clear(ref this);
}
// Return true if we are the invalid type. Does not make any other validity checks (e.g. is SteamID actually valid)
public bool IsInvalid() {
return NativeMethods.SteamAPI_SteamNetworkingIdentity_IsInvalid(ref this);
}
public void SetSteamID(CSteamID steamID) {
NativeMethods.SteamAPI_SteamNetworkingIdentity_SetSteamID(ref this, (ulong)steamID);
}
// Return black CSteamID (!IsValid()) if identity is not a SteamID
public CSteamID GetSteamID() {
return (CSteamID)NativeMethods.SteamAPI_SteamNetworkingIdentity_GetSteamID(ref this);
}
// Takes SteamID as raw 64-bit number
public void SetSteamID64(ulong steamID) {
NativeMethods.SteamAPI_SteamNetworkingIdentity_SetSteamID64(ref this, steamID);
}
// Returns 0 if identity is not SteamID
public ulong GetSteamID64() {
return NativeMethods.SteamAPI_SteamNetworkingIdentity_GetSteamID64(ref this);
}
// Returns false if invalid length
public bool SetXboxPairwiseID(string pszString)
{
using (var pszString2 = new InteropHelp.UTF8StringHandle(pszString)) {
return NativeMethods.SteamAPI_SteamNetworkingIdentity_SetXboxPairwiseID(ref this, pszString2);
}
}
// Returns nullptr if not Xbox ID
public string GetXboxPairwiseID()
{
return InteropHelp.PtrToStringUTF8(NativeMethods.SteamAPI_SteamNetworkingIdentity_GetXboxPairwiseID(ref this));
}
public void SetPSNID(ulong id)
{
NativeMethods.SteamAPI_SteamNetworkingIdentity_SetPSNID(ref this, id);
}
// Returns 0 if not PSN
public ulong GetPSNID()
{
return NativeMethods.SteamAPI_SteamNetworkingIdentity_GetPSNID(ref this);
}
// Set to specified IP:port
public void SetIPAddr(SteamNetworkingIPAddr addr) {
NativeMethods.SteamAPI_SteamNetworkingIdentity_SetIPAddr(ref this, ref addr);
}
// returns null if we are not an IP address.
public SteamNetworkingIPAddr GetIPAddr(){
throw new System.NotImplementedException();
// TODO: Should SteamNetworkingIPAddr be a class?
// or should this return some kind of pointer instead?
//return NativeMethods.SteamAPI_SteamNetworkingIdentity_GetIPAddr(ref this);
}
public void SetIPv4Addr(uint nIPv4, ushort nPort) {
NativeMethods.SteamAPI_SteamNetworkingIdentity_SetIPv4Addr(ref this, nIPv4, nPort);
}
// returns 0 if we are not an IPv4 address.
public uint GetIPv4() {
return NativeMethods.SteamAPI_SteamNetworkingIdentity_GetIPv4(ref this);
}
public ESteamNetworkingFakeIPType GetFakeIPType() {
return NativeMethods.SteamAPI_SteamNetworkingIdentity_GetFakeIPType(ref this);
}
public bool IsFakeIP() {
return GetFakeIPType() > ESteamNetworkingFakeIPType.k_ESteamNetworkingFakeIPType_NotFake;
}
// "localhost" is equivalent for many purposes to "anonymous." Our remote
// will identify us by the network address we use.
// Set to localhost. (We always use IPv6 ::1 for this, not 127.0.0.1)
public void SetLocalHost() {
NativeMethods.SteamAPI_SteamNetworkingIdentity_SetLocalHost(ref this);
}
// Return true if this identity is localhost.
public bool IsLocalHost() {
return NativeMethods.SteamAPI_SteamNetworkingIdentity_IsLocalHost(ref this);
}
// Returns false if invalid length
public bool SetGenericString(string pszString) {
using (var pszString2 = new InteropHelp.UTF8StringHandle(pszString)) {
return NativeMethods.SteamAPI_SteamNetworkingIdentity_SetGenericString(ref this, pszString2);
}
}
// Returns nullptr if not generic string type
public string GetGenericString() {
return InteropHelp.PtrToStringUTF8(NativeMethods.SteamAPI_SteamNetworkingIdentity_GetGenericString(ref this));
}
// Returns false if invalid size.
public bool SetGenericBytes(byte[] data, uint cbLen) {
return NativeMethods.SteamAPI_SteamNetworkingIdentity_SetGenericBytes(ref this, data, cbLen);
}
// Returns null if not generic bytes type
public byte[] GetGenericBytes(out int cbLen) {
throw new System.NotImplementedException();
//return NativeMethods.SteamAPI_SteamNetworkingIdentity_GetGenericBytes(ref this, out cbLen);
}
/// See if two identities are identical
public bool Equals(SteamNetworkingIdentity x) {
return NativeMethods.SteamAPI_SteamNetworkingIdentity_IsEqualTo(ref this, ref x);
}
/// Print to a human-readable string. This is suitable for debug messages
/// or any other time you need to encode the identity as a string. It has a
/// URL-like format (type:<type-data>). Your buffer should be at least
/// k_cchMaxString bytes big to avoid truncation.
///
/// See also SteamNetworkingIPAddrRender
public void ToString(out string buf) {
IntPtr buf2 = Marshal.AllocHGlobal(k_cchMaxString);
NativeMethods.SteamAPI_SteamNetworkingIdentity_ToString(ref this, buf2, k_cchMaxString);
buf = InteropHelp.PtrToStringUTF8(buf2);
Marshal.FreeHGlobal(buf2);
}
/// Parse back a string that was generated using ToString. If we don't understand the
/// string, but it looks "reasonable" (it matches the pattern type:<type-data> and doesn't
/// have any funky characters, etc), then we will return true, and the type is set to
/// k_ESteamNetworkingIdentityType_UnknownType. false will only be returned if the string
/// looks invalid.
public bool ParseString(string pszStr) {
using (var pszStr2 = new InteropHelp.UTF8StringHandle(pszStr)) {
return NativeMethods.SteamAPI_SteamNetworkingIdentity_ParseString(ref this, pszStr2);
}
}
}
}
#endif // !DISABLESTEAMWORKS

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 88cd24c900131bb40959f94848afdebe
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,124 @@
// This file is provided under The MIT License as part of Steamworks.NET.
// Copyright (c) 2013-2022 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
#if !(UNITY_STANDALONE_WIN || UNITY_STANDALONE_LINUX || UNITY_STANDALONE_OSX || STEAMWORKS_WIN || STEAMWORKS_LIN_OSX)
#define DISABLESTEAMWORKS
#endif
#if !DISABLESTEAMWORKS
using System.Runtime.InteropServices;
using IntPtr = System.IntPtr;
namespace Steamworks
{
/// A message that has been received.
[System.Serializable]
[StructLayout(LayoutKind.Sequential)]
public struct SteamNetworkingMessage_t
{
/// Message payload
public IntPtr m_pData;
/// Size of the payload.
public int m_cbSize;
/// For messages received on connections: what connection did this come from?
/// For outgoing messages: what connection to send it to?
/// Not used when using the ISteamNetworkingMessages interface
public HSteamNetConnection m_conn;
/// For inbound messages: Who sent this to us?
/// For outbound messages on connections: not used.
/// For outbound messages on the ad-hoc ISteamNetworkingMessages interface: who should we send this to?
public SteamNetworkingIdentity m_identityPeer;
/// For messages received on connections, this is the user data
/// associated with the connection.
///
/// This is *usually* the same as calling GetConnection() and then
/// fetching the user data associated with that connection, but for
/// the following subtle differences:
///
/// - This user data will match the connection's user data at the time
/// is captured at the time the message is returned by the API.
/// If you subsequently change the userdata on the connection,
/// this won't be updated.
/// - This is an inline call, so it's *much* faster.
/// - You might have closed the connection, so fetching the user data
/// would not be possible.
///
/// Not used when sending messages.
public long m_nConnUserData;
/// Local timestamp when the message was received
/// Not used for outbound messages.
public SteamNetworkingMicroseconds m_usecTimeReceived;
/// Message number assigned by the sender. This is not used for outbound
/// messages. Note that if multiple lanes are used, each lane has its own
/// message numbers, which are assigned sequentially, so messages from
/// different lanes will share the same numbers.
public long m_nMessageNumber;
/// Function used to free up m_pData. This mechanism exists so that
/// apps can create messages with buffers allocated from their own
/// heap, and pass them into the library. This function will
/// usually be something like:
///
/// free( pMsg->m_pData );
public IntPtr m_pfnFreeData;
/// Function to used to decrement the internal reference count and, if
/// it's zero, release the message. You should not set this function pointer,
/// or need to access this directly! Use the Release() function instead!
internal IntPtr m_pfnRelease;
/// When using ISteamNetworkingMessages, the channel number the message was received on
/// (Not used for messages sent or received on "connections")
public int m_nChannel;
/// Bitmask of k_nSteamNetworkingSend_xxx flags.
/// For received messages, only the k_nSteamNetworkingSend_Reliable bit is valid.
/// For outbound messages, all bits are relevant
public int m_nFlags;
/// Arbitrary user data that you can use when sending messages using
/// ISteamNetworkingUtils::AllocateMessage and ISteamNetworkingSockets::SendMessage.
/// (The callback you set in m_pfnFreeData might use this field.)
///
/// Not used for received messages.
public long m_nUserData;
/// For outbound messages, which lane to use? See ISteamNetworkingSockets::ConfigureConnectionLanes.
/// For inbound messages, what lane was the message received on?
public ushort m_idxLane;
public ushort _pad1__;
/// You MUST call this when you're done with the object,
/// to free up memory, etc.
public void Release() {
throw new System.NotImplementedException("Please use the static Release function instead which takes an IntPtr.");
}
/// You MUST call this when you're done with the object,
/// to free up memory, etc.
/// This is a Steamworks.NET extension.
public static void Release(IntPtr pointer) {
NativeMethods.SteamAPI_SteamNetworkingMessage_t_Release(pointer);
}
/// Convert an IntPtr received from ISteamNetworkingSockets.ReceiveMessagesOnPollGroup into our structure.
/// This is a Steamworks.NET extension.
public static SteamNetworkingMessage_t FromIntPtr(IntPtr pointer) {
return (SteamNetworkingMessage_t)Marshal.PtrToStructure(pointer, typeof(SteamNetworkingMessage_t));
}
}
}
#endif // !DISABLESTEAMWORKS

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: be690315b0194d940a0efd3bb3184b90
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,64 @@
// This file is provided under The MIT License as part of Steamworks.NET.
// Copyright (c) 2013-2022 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
#if !(UNITY_STANDALONE_WIN || UNITY_STANDALONE_LINUX || UNITY_STANDALONE_OSX || STEAMWORKS_WIN || STEAMWORKS_LIN_OSX)
#define DISABLESTEAMWORKS
#endif
#if !DISABLESTEAMWORKS
using System.Runtime.InteropServices;
using IntPtr = System.IntPtr;
namespace Steamworks {
[System.Serializable]
public struct SteamNetworkingMicroseconds : System.IEquatable<SteamNetworkingMicroseconds>, System.IComparable<SteamNetworkingMicroseconds> {
public long m_SteamNetworkingMicroseconds;
public SteamNetworkingMicroseconds(long value) {
m_SteamNetworkingMicroseconds = value;
}
public override string ToString() {
return m_SteamNetworkingMicroseconds.ToString();
}
public override bool Equals(object other) {
return other is SteamNetworkingMicroseconds && this == (SteamNetworkingMicroseconds)other;
}
public override int GetHashCode() {
return m_SteamNetworkingMicroseconds.GetHashCode();
}
public static bool operator ==(SteamNetworkingMicroseconds x, SteamNetworkingMicroseconds y) {
return x.m_SteamNetworkingMicroseconds == y.m_SteamNetworkingMicroseconds;
}
public static bool operator !=(SteamNetworkingMicroseconds x, SteamNetworkingMicroseconds y) {
return !(x == y);
}
public static explicit operator SteamNetworkingMicroseconds(long value) {
return new SteamNetworkingMicroseconds(value);
}
public static explicit operator long(SteamNetworkingMicroseconds that) {
return that.m_SteamNetworkingMicroseconds;
}
public bool Equals(SteamNetworkingMicroseconds other) {
return m_SteamNetworkingMicroseconds == other.m_SteamNetworkingMicroseconds;
}
public int CompareTo(SteamNetworkingMicroseconds other) {
return m_SteamNetworkingMicroseconds.CompareTo(other.m_SteamNetworkingMicroseconds);
}
}
}
#endif // !DISABLESTEAMWORKS

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: e1e21ac0fb80e0646b09d95b609c47ae
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,64 @@
// This file is provided under The MIT License as part of Steamworks.NET.
// Copyright (c) 2013-2022 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
#if !(UNITY_STANDALONE_WIN || UNITY_STANDALONE_LINUX || UNITY_STANDALONE_OSX || STEAMWORKS_WIN || STEAMWORKS_LIN_OSX)
#define DISABLESTEAMWORKS
#endif
#if !DISABLESTEAMWORKS
using System.Runtime.InteropServices;
using IntPtr = System.IntPtr;
namespace Steamworks {
[System.Serializable]
public struct SteamNetworkingPOPID : System.IEquatable<SteamNetworkingPOPID>, System.IComparable<SteamNetworkingPOPID> {
public uint m_SteamNetworkingPOPID;
public SteamNetworkingPOPID(uint value) {
m_SteamNetworkingPOPID = value;
}
public override string ToString() {
return m_SteamNetworkingPOPID.ToString();
}
public override bool Equals(object other) {
return other is SteamNetworkingPOPID && this == (SteamNetworkingPOPID)other;
}
public override int GetHashCode() {
return m_SteamNetworkingPOPID.GetHashCode();
}
public static bool operator ==(SteamNetworkingPOPID x, SteamNetworkingPOPID y) {
return x.m_SteamNetworkingPOPID == y.m_SteamNetworkingPOPID;
}
public static bool operator !=(SteamNetworkingPOPID x, SteamNetworkingPOPID y) {
return !(x == y);
}
public static explicit operator SteamNetworkingPOPID(uint value) {
return new SteamNetworkingPOPID(value);
}
public static explicit operator uint(SteamNetworkingPOPID that) {
return that.m_SteamNetworkingPOPID;
}
public bool Equals(SteamNetworkingPOPID other) {
return m_SteamNetworkingPOPID == other.m_SteamNetworkingPOPID;
}
public int CompareTo(SteamNetworkingPOPID other) {
return m_SteamNetworkingPOPID.CompareTo(other.m_SteamNetworkingPOPID);
}
}
}
#endif // !DISABLESTEAMWORKS

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: c7173e2ce2d968348a916a5a34f69802
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 785e5463da50dc044a1885d9ec1ad5b3
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,64 @@
// This file is provided under The MIT License as part of Steamworks.NET.
// Copyright (c) 2013-2022 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
#if !(UNITY_STANDALONE_WIN || UNITY_STANDALONE_LINUX || UNITY_STANDALONE_OSX || STEAMWORKS_WIN || STEAMWORKS_LIN_OSX)
#define DISABLESTEAMWORKS
#endif
#if !DISABLESTEAMWORKS
using System.Runtime.InteropServices;
using IntPtr = System.IntPtr;
namespace Steamworks {
[System.Serializable]
public struct RemotePlayCursorID_t : System.IEquatable<RemotePlayCursorID_t>, System.IComparable<RemotePlayCursorID_t> {
public uint m_RemotePlayCursorID;
public RemotePlayCursorID_t(uint value) {
m_RemotePlayCursorID = value;
}
public override string ToString() {
return m_RemotePlayCursorID.ToString();
}
public override bool Equals(object other) {
return other is RemotePlayCursorID_t && this == (RemotePlayCursorID_t)other;
}
public override int GetHashCode() {
return m_RemotePlayCursorID.GetHashCode();
}
public static bool operator ==(RemotePlayCursorID_t x, RemotePlayCursorID_t y) {
return x.m_RemotePlayCursorID == y.m_RemotePlayCursorID;
}
public static bool operator !=(RemotePlayCursorID_t x, RemotePlayCursorID_t y) {
return !(x == y);
}
public static explicit operator RemotePlayCursorID_t(uint value) {
return new RemotePlayCursorID_t(value);
}
public static explicit operator uint(RemotePlayCursorID_t that) {
return that.m_RemotePlayCursorID;
}
public bool Equals(RemotePlayCursorID_t other) {
return m_RemotePlayCursorID == other.m_RemotePlayCursorID;
}
public int CompareTo(RemotePlayCursorID_t other) {
return m_RemotePlayCursorID.CompareTo(other.m_RemotePlayCursorID);
}
}
}
#endif // !DISABLESTEAMWORKS

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 0b19cc735d31c8244a71638cb983396d
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,55 @@
// This file is provided under The MIT License as part of Steamworks.NET.
// Copyright (c) 2013-2022 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
#if !(UNITY_STANDALONE_WIN || UNITY_STANDALONE_LINUX || UNITY_STANDALONE_OSX || STEAMWORKS_WIN || STEAMWORKS_LIN_OSX)
#define DISABLESTEAMWORKS
#endif
#if !DISABLESTEAMWORKS
using System.Runtime.InteropServices;
using IntPtr = System.IntPtr;
namespace Steamworks
{
[System.Serializable]
[StructLayout(LayoutKind.Sequential, Pack = Packsize.value)]
public struct RemotePlayInput_t
{
public RemotePlaySessionID_t m_unSessionID;
public ERemotePlayInputType m_eType;
/// Option value
public OptionValue m_val;
[StructLayout(LayoutKind.Explicit, Size = 56)]
public struct OptionValue
{
// Mouse motion event data, valid when m_eType is k_ERemotePlayInputMouseMotion
[FieldOffset(0)]
public RemotePlayInputMouseMotion_t m_MouseMotion;
// Mouse button event data, valid when m_eType is k_ERemotePlayInputMouseButtonDown or k_ERemotePlayInputMouseButtonUp
[FieldOffset(0)]
public ERemotePlayMouseButton m_eMouseButton;
// Mouse wheel event data, valid when m_eType is k_ERemotePlayInputMouseWheel
[FieldOffset(0)]
public RemotePlayInputMouseWheel_t m_MouseWheel;
// Key event data, valid when m_eType is k_ERemotePlayInputKeyDown or k_ERemotePlayInputKeyUp
[FieldOffset(0)]
public RemotePlayInputKey_t m_Key;
// Unused space for future use
//char padding[ 64 - ( sizeof( m_unSessionID ) + sizeof( m_eType ) ) ];
}
}
}
#endif // !DISABLESTEAMWORKS

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 79e7401651a41df40a276003a360f8c0
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,64 @@
// This file is provided under The MIT License as part of Steamworks.NET.
// Copyright (c) 2013-2022 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
#if !(UNITY_STANDALONE_WIN || UNITY_STANDALONE_LINUX || UNITY_STANDALONE_OSX || STEAMWORKS_WIN || STEAMWORKS_LIN_OSX)
#define DISABLESTEAMWORKS
#endif
#if !DISABLESTEAMWORKS
using System.Runtime.InteropServices;
using IntPtr = System.IntPtr;
namespace Steamworks {
[System.Serializable]
public struct RemotePlaySessionID_t : System.IEquatable<RemotePlaySessionID_t>, System.IComparable<RemotePlaySessionID_t> {
public uint m_RemotePlaySessionID;
public RemotePlaySessionID_t(uint value) {
m_RemotePlaySessionID = value;
}
public override string ToString() {
return m_RemotePlaySessionID.ToString();
}
public override bool Equals(object other) {
return other is RemotePlaySessionID_t && this == (RemotePlaySessionID_t)other;
}
public override int GetHashCode() {
return m_RemotePlaySessionID.GetHashCode();
}
public static bool operator ==(RemotePlaySessionID_t x, RemotePlaySessionID_t y) {
return x.m_RemotePlaySessionID == y.m_RemotePlaySessionID;
}
public static bool operator !=(RemotePlaySessionID_t x, RemotePlaySessionID_t y) {
return !(x == y);
}
public static explicit operator RemotePlaySessionID_t(uint value) {
return new RemotePlaySessionID_t(value);
}
public static explicit operator uint(RemotePlaySessionID_t that) {
return that.m_RemotePlaySessionID;
}
public bool Equals(RemotePlaySessionID_t other) {
return m_RemotePlaySessionID == other.m_RemotePlaySessionID;
}
public int CompareTo(RemotePlaySessionID_t other) {
return m_RemotePlaySessionID.CompareTo(other.m_RemotePlaySessionID);
}
}
}
#endif // !DISABLESTEAMWORKS

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 4e82598941b6d1a4f8e37e437d646bc7
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

Some files were not shown because too many files have changed in this diff Show More