本文整理汇总了C#中HSteamPipe类的典型用法代码示例。如果您正苦于以下问题:C# HSteamPipe类的具体用法?C# HSteamPipe怎么用?C# HSteamPipe使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
HSteamPipe类属于命名空间,在下文中一共展示了HSteamPipe类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ConnectToGlobalUser
/// <summary>
/// <para> connects to an existing global user, failing if none exists</para>
/// <para> used by the game to coordinate with the steamUI</para>
/// <para> NOT THREADSAFE - ensure that no other threads are accessing Steamworks API when calling</para>
/// </summary>
public static HSteamUser ConnectToGlobalUser(HSteamPipe hSteamPipe) {
InteropHelp.TestIfAvailableClient();
return (HSteamUser)NativeMethods.ISteamClient_ConnectToGlobalUser(hSteamPipe);
}
示例2: CreateLocalUser
/// <summary>
/// <para> used by game servers, create a steam user that won't be shared with anyone else</para>
/// <para> NOT THREADSAFE - ensure that no other threads are accessing Steamworks API when calling</para>
/// </summary>
public static HSteamUser CreateLocalUser(out HSteamPipe phSteamPipe, EAccountType eAccountType) {
InteropHelp.TestIfAvailableClient();
return (HSteamUser)NativeMethods.ISteamClient_CreateLocalUser(out phSteamPipe, eAccountType);
}
示例3: 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));
}
//.........这里部分代码省略.........
示例4: BReleaseSteamPipe
/// <summary>
/// <para> Releases a previously created communications pipe</para>
/// <para> NOT THREADSAFE - ensure that no other threads are accessing Steamworks API when calling</para>
/// </summary>
public static bool BReleaseSteamPipe(HSteamPipe hSteamPipe) {
InteropHelp.TestIfAvailableClient();
return NativeMethods.ISteamClient_BReleaseSteamPipe(hSteamPipe);
}
示例5: ISteamClient_GetISteamVideo
public static extern IntPtr ISteamClient_GetISteamVideo(HSteamUser hSteamuser, HSteamPipe hSteamPipe, InteropHelp.UTF8StringHandle pchVersion);
示例6: Steam_RunCallbacks
public static extern void Steam_RunCallbacks(HSteamPipe hSteamPipe, [MarshalAs(UnmanagedType.I1)] bool bGameServerCallbacks);
示例7: ISteamClient_GetISteamMatchmakingServers
public static extern IntPtr ISteamClient_GetISteamMatchmakingServers(HSteamUser hSteamUser, HSteamPipe hSteamPipe, InteropHelp.UTF8StringHandle pchVersion);
示例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);
}
示例9: ISteamClient_ReleaseUser
public static extern void ISteamClient_ReleaseUser(HSteamPipe hSteamPipe, HSteamUser hUser);
示例10: ISteamClient_GetISteamUtils
public static extern IntPtr ISteamClient_GetISteamUtils(HSteamPipe hSteamPipe, InteropHelp.UTF8StringHandle pchVersion);
示例11: ISteamClient_CreateLocalUser
public static extern int ISteamClient_CreateLocalUser(out HSteamPipe phSteamPipe, EAccountType eAccountType);
示例12: ISteamClient_ConnectToGlobalUser
public static extern int ISteamClient_ConnectToGlobalUser(HSteamPipe hSteamPipe);
示例13: ISteamClient_BReleaseSteamPipe
public static extern bool ISteamClient_BReleaseSteamPipe(HSteamPipe hSteamPipe);
示例14: 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);
}
示例15: ISteamClient_GetISteamGenericInterface
public static extern IntPtr ISteamClient_GetISteamGenericInterface(HSteamUser hSteamUser, HSteamPipe hSteamPipe, InteropHelp.UTF8StringHandle pchVersion);