Example #1
0
 // Перемещение на указанный слот планеты
 public void MoveToLanding(Planet APlanet, int ASlot)
 {
     FSelf.Landing = APlanet.SlotByIndex(ASlot);
     FSelf.Planet.Ships.Remove(FSelf);
     FSelf.Planet = APlanet;
     FSelf.Transform.SetParent(FSelf.Landing.Transform, false);
     FSelf.Planet.Ships.Add(FSelf);
     foreach (ShipWeapon LWeapon in FSelf.Weapons)
     {
         LWeapon.Retarget(null);
     }
 }
Example #2
0
        private Landing LandingByUID(int aUID)
        {
            Planet tmpPlanet = PlanetByUID(aUID >> 16);

            if (tmpPlanet != null)
            {
                return(tmpPlanet.SlotByIndex(aUID & 0xFFFF));
            }
            else
            {
                return(null);
            }
        }