예제 #1
0
        private void Handle(you_spacket msg)
        {
            MyPlayerNumber = msg.pnum;

            Player player = galaxy.GetPlayer(msg.pnum);

            player.Flags   = msg.Flags;
            player.ETemp   = msg.etemp;
            player.WTemp   = msg.wtemp;
            player.Shield  = msg.shield;
            player.Damage  = msg.damage;
            player.Armies  = msg.armies;
            player.Fuel    = msg.fuel;
            player.Hostile = msg.hostile;
            player.Tractor = msg.tractor;
            player.War     = msg.war;
            player.WhoDead = msg.whodead;
            player.WhyDead = msg.whydead;

            lYou.Trace(msg.ToString());
        }
        private void Handle(you_spacket msg)
        {
            MyPlayerNumber = msg.pnum;

            Player player = galaxy.GetPlayer(msg.pnum);
            player.Flags = msg.Flags;
            player.ETemp = msg.etemp;
            player.WTemp = msg.wtemp;
            player.Shield = msg.shield;
            player.Damage = msg.damage;
            player.Armies = msg.armies;
            player.Fuel = msg.fuel;
            player.Hostile = msg.hostile;
            player.Tractor = msg.tractor;
            player.War = msg.war;
            player.WhoDead = msg.whodead;
            player.WhyDead = msg.whydead;

            lYou.Trace(msg.ToString());
        }