Exemplo n.º 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));
        }
Exemplo n.º 2
0
 internal static extern bool SteamAPI_SteamNetworkingIdentity_EqualTo(ref NetworkingIdentity identityOne, ref NetworkingIdentity identityTwo);
Exemplo n.º 3
0
 internal static extern ulong SteamAPI_SteamNetworkingIdentity_GetSteamID64(ref NetworkingIdentity identity);
Exemplo n.º 4
0
 internal static extern void SteamAPI_SteamNetworkingIdentity_SetSteamID64(ref NetworkingIdentity identity, ulong steamID);
Exemplo n.º 5
0
 internal static extern bool SteamAPI_SteamNetworkingIdentity_IsInvalid(ref NetworkingIdentity identity);
Exemplo n.º 6
0
 internal static extern bool SteamAPI_ISteamNetworkingSockets_CreateSocketPair(IntPtr sockets, Connection connectionOne, Connection connectionTwo, bool useNetworkLoopback, NetworkingIdentity identityOne, NetworkingIdentity identityTwo);
Exemplo n.º 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));
 }
Exemplo n.º 8
0
 internal static extern bool SteamAPI_ISteamNetworkingSockets_GetIdentity(IntPtr sockets, ref NetworkingIdentity identity);
Exemplo n.º 9
0
 internal static extern bool SteamAPI_ISteamNetworkingSockets_CreateSocketPair(IntPtr sockets, Connection connectionLeft, Connection connectionRight, bool useNetworkLoopback, ref NetworkingIdentity identityLeft, ref NetworkingIdentity identityRight);
Exemplo n.º 10
0
 internal static extern bool GameNetworkingSockets_Init(ref NetworkingIdentity identity, StringBuilder errorMessage);
Exemplo n.º 11
0
 public bool GetIdentity(ref NetworkingIdentity identity)
 {
     return(Native.SteamAPI_ISteamNetworkingSockets_GetIdentity(nativeSockets, ref identity));
 }
Exemplo n.º 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));
 }