Exemplo n.º 1
0
        private void Handle(planet_spacket msg)
        {
            lPlanet.Trace(msg.ToString());

            Planet planet = galaxy.GetPlanet(msg.pnum);

            planet.TeamId = msg.owner;
            planet.Info   = msg.info;
            planet.Armies = msg.armies;
            planet.Flags  = (PlanetFlags)msg.flags;

            planet.TryCreateEntity(); // REVIEW
        }
        private void Handle(planet_spacket msg)
        {
            lPlanet.Trace(msg.ToString());

            Planet planet = galaxy.GetPlanet(msg.pnum);
            planet.TeamId = msg.owner;
            planet.Info = msg.info;
            planet.Armies = msg.armies;
            planet.Flags = (PlanetFlags)msg.flags;

            planet.TryCreateEntity(); // REVIEW
        }