Example #1
0
    public HullSlot ActivateWest()
    {
        HullSlot slot = EnsureWest();

        slot.Activate();
        return(slot);
    }
Example #2
0
    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();
    }
Example #3
0
    public HullSlot ActivateSouth()
    {
        HullSlot slot = EnsureSouth();

        slot.Activate();
        return(slot);
    }