当前位置: 首页>>代码示例>>C#>>正文


C# HSteamUser类代码示例

本文整理汇总了C#中HSteamUser的典型用法代码示例。如果您正苦于以下问题:C# HSteamUser类的具体用法?C# HSteamUser怎么用?C# HSteamUser使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


HSteamUser类属于命名空间,在下文中一共展示了HSteamUser类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: ReleaseUser

		/// <summary>
		/// <para> removes an allocated user</para>
		/// <para> NOT THREADSAFE - ensure that no other threads are accessing Steamworks API when calling</para>
		/// </summary>
		public static void ReleaseUser(HSteamPipe hSteamPipe, HSteamUser hUser) {
			InteropHelp.TestIfAvailableClient();
			NativeMethods.ISteamClient_ReleaseUser(hSteamPipe, hUser);
		}
开发者ID:rlabrecque,项目名称:Steamworks.NET,代码行数:8,代码来源:isteamclient.cs

示例2: GetISteamFriends

		/// <summary>
		/// <para> returns the ISteamFriends interface</para>
		/// </summary>
		public static IntPtr GetISteamFriends(HSteamUser hSteamUser, HSteamPipe hSteamPipe, string pchVersion) {
			InteropHelp.TestIfAvailableClient();
			using (var pchVersion2 = new InteropHelp.UTF8StringHandle(pchVersion)) {
				return NativeMethods.ISteamClient_GetISteamFriends(hSteamUser, hSteamPipe, pchVersion2);
			}
		}
开发者ID:rlabrecque,项目名称:Steamworks.NET,代码行数:9,代码来源:isteamclient.cs

示例3: ISteamClient_GetISteamVideo

		public static extern IntPtr ISteamClient_GetISteamVideo(HSteamUser hSteamuser, HSteamPipe hSteamPipe, InteropHelp.UTF8StringHandle pchVersion);
开发者ID:xulinqs,项目名称:Steamworks.NET,代码行数:1,代码来源:NativeMethods.cs

示例4: RenderOnGUI

	public void RenderOnGUI() {
		GUILayout.BeginArea(new Rect(Screen.width - 120, 0, 120, Screen.height));
		GUILayout.Label("Variables:");
		GUILayout.Label("m_Pipe: " + m_Pipe);
		GUILayout.Label("m_GlobalUser: " + m_GlobalUser);
		GUILayout.Label("m_LocalPipe: " + m_LocalPipe);
		GUILayout.Label("m_LocalUser: " + m_LocalUser);
		GUILayout.EndArea();

		GUILayout.Label("DON'T TOUCH THESE IF YOU DO NOT KNOW WHAT THEY DO, YOU COULD CRASH YOUR STEAM CLIENT");

		if (GUILayout.Button("SteamClient.CreateSteamPipe()")) {
			m_Pipe = SteamClient.CreateSteamPipe();
			print("SteamClient.CreateSteamPipe() : " + m_Pipe);
		}

		if (GUILayout.Button("SteamClient.BReleaseSteamPipe(m_Pipe)")) {
			print("SteamClient.BReleaseSteamPipe(" + m_Pipe + ") : " + SteamClient.BReleaseSteamPipe(m_Pipe));
		}

		if (GUILayout.Button("SteamClient.ConnectToGlobalUser(m_Pipe)")) {
			m_GlobalUser = SteamClient.ConnectToGlobalUser(m_Pipe);
			print("SteamClient.ConnectToGlobalUser(" + m_Pipe + ") : " + m_GlobalUser);
		}
		
		if (GUILayout.Button("SteamClient.CreateLocalUser(out m_LocalPipe, EAccountType.k_EAccountTypeGameServer)")) {
			m_LocalUser = SteamClient.CreateLocalUser(out m_LocalPipe, EAccountType.k_EAccountTypeGameServer);
			print("SteamClient.CreateLocalUser(out m_LocalPipe, EAccountType.k_EAccountTypeGameServer) : " + m_LocalUser + " -- " + m_LocalPipe);
		}

		if (GUILayout.Button("SteamClient.ReleaseUser(m_LocalPipe, m_LocalUser)")) {
			SteamClient.ReleaseUser(m_LocalPipe, m_LocalUser);
			print("SteamClient.ReleaseUser(" + m_LocalPipe + ", " + m_LocalUser + ")");
		}

		if (GUILayout.Button("SteamClient.GetISteamUser(SteamAPI.GetHSteamUser(), SteamAPI.GetHSteamPipe(), " + Constants.STEAMUSER_INTERFACE_VERSION + ")")) {
			print("SteamClient.GetISteamUser(" + SteamAPI.GetHSteamUser() + ", " + SteamAPI.GetHSteamPipe() + ", " + Constants.STEAMUSER_INTERFACE_VERSION + ") : " +
				SteamClient.GetISteamUser(SteamAPI.GetHSteamUser(), SteamAPI.GetHSteamPipe(), Constants.STEAMUSER_INTERFACE_VERSION));
		}

		if (GUILayout.Button("SteamClient.GetISteamGameServer(SteamAPI.GetHSteamUser(), SteamAPI.GetHSteamPipe(), " + Constants.STEAMGAMESERVER_INTERFACE_VERSION + ")")) {
			print("SteamClient.GetISteamGameServer(" + SteamAPI.GetHSteamUser() + ", " + SteamAPI.GetHSteamPipe() + ", " + Constants.STEAMGAMESERVER_INTERFACE_VERSION + ") : " +
				SteamClient.GetISteamGameServer(SteamAPI.GetHSteamUser(), SteamAPI.GetHSteamPipe(), Constants.STEAMGAMESERVER_INTERFACE_VERSION));
		}

		if (GUILayout.Button("SteamClient.SetLocalIPBinding(127.0.0.1, 27015)")) {
			SteamClient.SetLocalIPBinding(2130706433, 27015);
			print("SteamClient.SetLocalIPBinding(2130706433, 27015)");
		}

		if (GUILayout.Button("SteamClient.GetISteamFriends(SteamAPI.GetHSteamUser(), SteamAPI.GetHSteamPipe(), " + Constants.STEAMFRIENDS_INTERFACE_VERSION + ")")) {
			print("SteamClient.GetISteamFriends(" + SteamAPI.GetHSteamUser() + ", " + SteamAPI.GetHSteamPipe() + ", " + Constants.STEAMFRIENDS_INTERFACE_VERSION + ") : " +
				SteamClient.GetISteamFriends(SteamAPI.GetHSteamUser(), SteamAPI.GetHSteamPipe(), Constants.STEAMFRIENDS_INTERFACE_VERSION));
		}

		if (GUILayout.Button("SteamClient.GetISteamUtils(SteamAPI.GetHSteamPipe(), " + Constants.STEAMUTILS_INTERFACE_VERSION + ")")) {
			print("SteamClient.GetISteamUtils(" + SteamAPI.GetHSteamPipe() + ", " + Constants.STEAMUTILS_INTERFACE_VERSION + ") : " +
				SteamClient.GetISteamUtils(SteamAPI.GetHSteamPipe(), Constants.STEAMUTILS_INTERFACE_VERSION));
		}

		if (GUILayout.Button("SteamClient.GetISteamMatchmaking(SteamAPI.GetHSteamUser(), SteamAPI.GetHSteamPipe(), " + Constants.STEAMMATCHMAKING_INTERFACE_VERSION + ")")) {
			print("SteamClient.GetISteamMatchmaking(" + SteamAPI.GetHSteamUser() + ", " + SteamAPI.GetHSteamPipe() + ", " + Constants.STEAMMATCHMAKING_INTERFACE_VERSION + ") : " +
				SteamClient.GetISteamMatchmaking(SteamAPI.GetHSteamUser(), SteamAPI.GetHSteamPipe(), Constants.STEAMMATCHMAKING_INTERFACE_VERSION));
		}

		if (GUILayout.Button("SteamClient.GetISteamMatchmakingServers(SteamAPI.GetHSteamUser(), SteamAPI.GetHSteamPipe(), " + Constants.STEAMMATCHMAKINGSERVERS_INTERFACE_VERSION + ")")) {
			print("SteamClient.GetISteamMatchmakingServers(" + SteamAPI.GetHSteamUser() + ", " + SteamAPI.GetHSteamPipe() + ", " + Constants.STEAMMATCHMAKINGSERVERS_INTERFACE_VERSION + ") : " +
				SteamClient.GetISteamMatchmakingServers(SteamAPI.GetHSteamUser(), SteamAPI.GetHSteamPipe(), Constants.STEAMMATCHMAKINGSERVERS_INTERFACE_VERSION));
		}

		if (GUILayout.Button("SteamClient.GetISteamGenericInterface(SteamAPI.GetHSteamUser(), SteamAPI.GetHSteamPipe(), " + Constants.STEAMAPPTICKET_INTERFACE_VERSION + ")")) {
			print("SteamClient.GetISteamGenericInterface(" + SteamAPI.GetHSteamUser() + ", " + SteamAPI.GetHSteamPipe() + ", " + Constants.STEAMAPPTICKET_INTERFACE_VERSION + ") : " +
				SteamClient.GetISteamGenericInterface(SteamAPI.GetHSteamUser(), SteamAPI.GetHSteamPipe(), Constants.STEAMAPPTICKET_INTERFACE_VERSION));
		}

		if (GUILayout.Button("SteamClient.GetISteamUserStats(SteamAPI.GetHSteamUser(), SteamAPI.GetHSteamPipe(), " + Constants.STEAMUSERSTATS_INTERFACE_VERSION + ")")) {
			print("SteamClient.GetISteamUserStats(" + SteamAPI.GetHSteamUser() + ", " + SteamAPI.GetHSteamPipe() + ", " + Constants.STEAMUSERSTATS_INTERFACE_VERSION + ") : " +
				SteamClient.GetISteamUserStats(SteamAPI.GetHSteamUser(), SteamAPI.GetHSteamPipe(), Constants.STEAMUSERSTATS_INTERFACE_VERSION));
		}

		if (GUILayout.Button("SteamClient.GetISteamGameServerStats(SteamAPI.GetHSteamUser(), SteamAPI.GetHSteamPipe(), " + Constants.STEAMGAMESERVERSTATS_INTERFACE_VERSION + ")")) {
			print("SteamClient.GetISteamGameServerStats(" + SteamAPI.GetHSteamUser() + ", " + SteamAPI.GetHSteamPipe() + ", " + Constants.STEAMGAMESERVERSTATS_INTERFACE_VERSION + ") : " +
				SteamClient.GetISteamGameServerStats(SteamAPI.GetHSteamUser(), SteamAPI.GetHSteamPipe(), Constants.STEAMGAMESERVERSTATS_INTERFACE_VERSION));
		}

		if (GUILayout.Button("SteamClient.GetISteamApps(SteamAPI.GetHSteamUser(), SteamAPI.GetHSteamPipe(), " + Constants.STEAMAPPS_INTERFACE_VERSION + ")")) {
			print("SteamClient.GetISteamApps(" + SteamAPI.GetHSteamUser() + ", " + SteamAPI.GetHSteamPipe() + ", " + Constants.STEAMAPPS_INTERFACE_VERSION + ") : " +
				SteamClient.GetISteamApps(SteamAPI.GetHSteamUser(), SteamAPI.GetHSteamPipe(), Constants.STEAMAPPS_INTERFACE_VERSION));
		}

		if (GUILayout.Button("SteamClient.GetISteamNetworking(SteamAPI.GetHSteamUser(), SteamAPI.GetHSteamPipe(), " + Constants.STEAMNETWORKING_INTERFACE_VERSION + ")")) {
			print("SteamClient.GetISteamNetworking(" + SteamAPI.GetHSteamUser() + ", " + SteamAPI.GetHSteamPipe() + ", " + Constants.STEAMNETWORKING_INTERFACE_VERSION + ") : " +
				SteamClient.GetISteamNetworking(SteamAPI.GetHSteamUser(), SteamAPI.GetHSteamPipe(), Constants.STEAMNETWORKING_INTERFACE_VERSION));
		}

		if (GUILayout.Button("SteamClient.GetISteamRemoteStorage(SteamAPI.GetHSteamUser(), SteamAPI.GetHSteamPipe(), " + Constants.STEAMREMOTESTORAGE_INTERFACE_VERSION + ")")) {
			print("SteamClient.GetISteamRemoteStorage(" + SteamAPI.GetHSteamUser() + ", " + SteamAPI.GetHSteamPipe() + ", " + Constants.STEAMREMOTESTORAGE_INTERFACE_VERSION + ") : " +
				SteamClient.GetISteamRemoteStorage(SteamAPI.GetHSteamUser(), SteamAPI.GetHSteamPipe(), Constants.STEAMREMOTESTORAGE_INTERFACE_VERSION));
		}

//.........这里部分代码省略.........
开发者ID:yoraiz0r,项目名称:Steamworks.NET-Test,代码行数:101,代码来源:SteamClientTest.cs

示例5: ISteamClient_GetISteamGenericInterface

		public static extern IntPtr ISteamClient_GetISteamGenericInterface(HSteamUser hSteamUser, HSteamPipe hSteamPipe, InteropHelp.UTF8StringHandle pchVersion);
开发者ID:xulinqs,项目名称:Steamworks.NET,代码行数:1,代码来源:NativeMethods.cs

示例6: ISteamClient_GetISteamMatchmakingServers

		public static extern IntPtr ISteamClient_GetISteamMatchmakingServers(HSteamUser hSteamUser, HSteamPipe hSteamPipe, InteropHelp.UTF8StringHandle pchVersion);
开发者ID:xulinqs,项目名称:Steamworks.NET,代码行数:1,代码来源:NativeMethods.cs

示例7: ISteamClient_ReleaseUser

		public static extern void ISteamClient_ReleaseUser(HSteamPipe hSteamPipe, HSteamUser hUser);
开发者ID:xulinqs,项目名称:Steamworks.NET,代码行数:1,代码来源:NativeMethods.cs

示例8: GetISteamGameServerStats

		// returns the ISteamGameServerStats interface
		public static IntPtr GetISteamGameServerStats(HSteamUser hSteamuser, HSteamPipe hSteamPipe, string pchVersion) {
			InteropHelp.TestIfAvailableClient();
			return NativeMethods.ISteamClient_GetISteamGameServerStats(hSteamuser, hSteamPipe, pchVersion);
		}
开发者ID:konsordo,项目名称:Steamworks.NET-Test,代码行数:5,代码来源:isteamclient.cs

示例9: GetISteamMatchmaking

		// returns the ISteamMatchmaking interface
		public static IntPtr GetISteamMatchmaking(HSteamUser hSteamUser, HSteamPipe hSteamPipe, string pchVersion) {
			InteropHelp.TestIfAvailableClient();
			return NativeMethods.ISteamClient_GetISteamMatchmaking(hSteamUser, hSteamPipe, pchVersion);
		}
开发者ID:konsordo,项目名称:Steamworks.NET-Test,代码行数:5,代码来源:isteamclient.cs


注:本文中的HSteamUser类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。