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
 public bool EqualsTo(ref NetworkingIdentity identity)
 {
     return(Native.SteamAPI_SteamNetworkingIdentity_EqualTo(ref this, ref identity));
 }
 internal static extern bool SteamAPI_ISteamNetworkingSockets_GetIdentity(IntPtr sockets, ref NetworkingIdentity identity);
 internal static extern bool SteamAPI_ISteamNetworkingSockets_CreateSocketPair(IntPtr sockets, Connection connectionLeft, Connection connectionRight, bool useNetworkLoopback, ref NetworkingIdentity identityLeft, ref NetworkingIdentity identityRight);
 internal static extern bool GameNetworkingSockets_Init(ref NetworkingIdentity identity, StringBuilder errorMessage);
 public bool GetIdentity(ref NetworkingIdentity identity)
 {
     return Native.SteamAPI_ISteamNetworkingSockets_GetIdentity(nativeSockets, ref identity);
 }
 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);
 }
 internal static extern void SteamAPI_SteamNetworkingIdentity_SetSteamID64(ref NetworkingIdentity identity, ulong steamID);
 internal static extern bool SteamAPI_SteamNetworkingIdentity_IsInvalid(ref NetworkingIdentity identity);
Пример #10
0
 internal static extern ulong SteamAPI_SteamNetworkingIdentity_GetSteamID64(ref NetworkingIdentity identity);
Пример #11
0
 internal static extern bool SteamAPI_SteamNetworkingIdentity_EqualTo(NetworkingIdentity identityOne, NetworkingIdentity identityTwo);
Пример #12
0
 internal static extern bool SteamAPI_ISteamNetworkingSockets_CreateSocketPair(IntPtr sockets, Connection connectionOne, Connection connectionTwo, bool useNetworkLoopback, NetworkingIdentity identityOne, NetworkingIdentity identityTwo);
Пример #13
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));
 }