Esempio n. 1
0
        private void Handle(pstatus_spacket msg)
        {
            lPlayerStatus.Trace(msg.ToString());
            Player player = galaxy.GetPlayer(msg.pnum);

            player.Status = (PlayerStatus)msg.status;

            if (player.Status == PlayerStatus.Alive && player.NetrekId == LockedPlayerId)
            {
                UpdateLockedEntity();
            }

            if (player.NetrekId == MyPlayerNumber)
            {
                if (!player.Status.HasFlag(PlayerStatus.Alive))
                {
                    ViewModel.LPilotedUnit = null;
                    //ViewModel.InterfaceController.MainInterfacePort.
                }
            }
        }
        private void Handle(pstatus_spacket msg)
        {
            lPlayerStatus.Trace(msg.ToString());
            Player player = galaxy.GetPlayer(msg.pnum);
            player.Status = (PlayerStatus)msg.status;

            if (player.Status == PlayerStatus.Alive && player.NetrekId == LockedPlayerId)
            {
                UpdateLockedEntity();
            }

            if (player.NetrekId == MyPlayerNumber)
            {
                if (!player.Status.HasFlag(PlayerStatus.Alive))
                {
                    ViewModel.LPilotedUnit = null;
                    //ViewModel.InterfaceController.MainInterfacePort.
                }
            }
        }