コード例 #1
0
        void _dplay_PlayerConnected(object sender, Session e)
        {
            // On receipt of a new connection, create a new player assigning it to a
            // random game thread. Notify all game threads of the new player.
            //var serverEvent = nextEvent as DPSessionConnectedEvent;

            var player = new Player.Player(e, e.DPlayID, NewPlayerID());

            _pump.PlayerUpdate(player);
        }