示例#1
0
        static void Client()
        {
            /// Wait for the server to create a DSS-lobby
            network.StartLocatingLobbies(locator);
            LobbyInfo foundLobby = locator.WaitForFirstLobby();

            network.StopLocatingLobbies();

            DssServiceAccess.ConnectDSS(foundLobby, network, guest, guest);
        }
示例#2
0
        protected override void DssThreadProc()
        {
            DssServiceAccess.ConnectDSS(this.targetLobby, this.network, this, this);

            /// End of DSS --> deactivate the players
            for (int i = 0; i < this.simulator.MaxNumOfPlayers; i++)
            {
                Player currPlayer = this.simulator.GetPlayer(i);
                if (currPlayer.IsActive)
                {
                    currPlayer.Deactivate();
                }
            }

            /// Refresh the display
            Rectangle refreshedArea;

            Display.Instance.RenderOneFrame(out refreshedArea);
            this.uiCallMarshal.RefreshDisplay();

            this.uiCallMarshal.EndOfDss();
        }
示例#3
0
 static void Server()
 {
     DssServiceAccess.CreateDSS(8, network, host, host);
 }