public HullSlot ActivateWest() { HullSlot slot = EnsureWest(); slot.Activate(); return(slot); }
public void Unequip(ExternalConstructionModule module) { if (module.hullSlot == null) { return; } if (module is HullConstructionModule) { if (((HullConstructionModule)module).internalModule != null) { return; } hullModules.Remove(module.hullSlot.transform.position); } else if (module is ThrusterConstructionModule) { thrust.thrusters.Remove((ThrusterConstructionModule)module); } else if (module is ManeuveringConstructionModule) { thrust.maneuverers.Remove((ManeuveringConstructionModule)module); } HullSlot slot = module.hullSlot; slot.module = null; module.hullSlot = null; slot.Activate(); slot.DeactivateAdjacents(); module.OnUnequip(); CalcBounds(); }
public HullSlot ActivateSouth() { HullSlot slot = EnsureSouth(); slot.Activate(); return(slot); }