示例#1
0
        public static bool Initialize(ref NetworkingIdentity identity, StringBuilder errorMessage)
        {
            if (errorMessage != null && errorMessage.Capacity != maxErrorMessageLength)
            {
                throw new ArgumentOutOfRangeException("Capacity of the error message must be equal to " + maxErrorMessageLength);
            }

            if (Object.Equals(identity, null))
            {
                throw new ArgumentNullException("identity");
            }

            return(Native.GameNetworkingSockets_Init(ref identity, errorMessage));
        }
示例#2
0
 internal static extern bool SteamAPI_SteamNetworkingIdentity_EqualTo(ref NetworkingIdentity identityOne, ref NetworkingIdentity identityTwo);
示例#3
0
 internal static extern ulong SteamAPI_SteamNetworkingIdentity_GetSteamID64(ref NetworkingIdentity identity);
示例#4
0
 internal static extern void SteamAPI_SteamNetworkingIdentity_SetSteamID64(ref NetworkingIdentity identity, ulong steamID);
示例#5
0
 internal static extern bool SteamAPI_SteamNetworkingIdentity_IsInvalid(ref NetworkingIdentity identity);
示例#6
0
 internal static extern bool SteamAPI_ISteamNetworkingSockets_CreateSocketPair(IntPtr sockets, Connection connectionOne, Connection connectionTwo, bool useNetworkLoopback, NetworkingIdentity identityOne, NetworkingIdentity identityTwo);
示例#7
0
 public bool CreateSocketPair(Connection connectionOne, Connection connectionTwo, bool useNetworkLoopback, NetworkingIdentity identityOne, NetworkingIdentity identityTwo)
 {
     return(Native.SteamAPI_ISteamNetworkingSockets_CreateSocketPair(nativeSockets, connectionOne, connectionTwo, useNetworkLoopback, identityOne, identityTwo));
 }
示例#8
0
 internal static extern bool SteamAPI_ISteamNetworkingSockets_GetIdentity(IntPtr sockets, ref NetworkingIdentity identity);
示例#9
0
 internal static extern bool SteamAPI_ISteamNetworkingSockets_CreateSocketPair(IntPtr sockets, Connection connectionLeft, Connection connectionRight, bool useNetworkLoopback, ref NetworkingIdentity identityLeft, ref NetworkingIdentity identityRight);
示例#10
0
 internal static extern bool GameNetworkingSockets_Init(ref NetworkingIdentity identity, StringBuilder errorMessage);
示例#11
0
 public bool GetIdentity(ref NetworkingIdentity identity)
 {
     return(Native.SteamAPI_ISteamNetworkingSockets_GetIdentity(nativeSockets, ref identity));
 }
示例#12
0
 public bool CreateSocketPair(Connection connectionLeft, Connection connectionRight, bool useNetworkLoopback, ref NetworkingIdentity identityLeft, ref NetworkingIdentity identityRight)
 {
     return(Native.SteamAPI_ISteamNetworkingSockets_CreateSocketPair(nativeSockets, connectionLeft, connectionRight, useNetworkLoopback, ref identityLeft, ref identityRight));
 }