Example #1
0
    private void WaitForConnection()
    {
        while (!SplashKit.HasNewConnections())
        {
            SplashKit.AcceptAllNewConnections();
        }

        ThisPeer.CheckNewConnections();
    }
Example #2
0
    public void UpdateNetworkInfo()
    {
        if (IsServer)
        {
            SplashKit.AcceptAllNewConnections();
        }


        _otherPlayerMsg = ThisPeer.GetNewMessages();

        UpdateOtherPlayer();

        BroadcastMessage();
    }
Example #3
0
    public void UpdateNetworkInfo()
    {
        if (IsServer)
        {
            SplashKit.AcceptAllNewConnections();
        }

        // ThisPeer.PrintNewMessages();

        _otherPlayerMsg = ThisPeer.GetNewMessages();

        UpdateOtherPlayer();

        //Console.WriteLine(ThisPeer.GetNewMessages());
        BroadcastMessage();
    }