Ejemplo n.º 1
0
        public LabEquipment install()
        {
            LabEquipment ret = leq;

            setEquipment(LabEquipment.getNullObject());
            return(ret);
        }
Ejemplo n.º 2
0
 public void chooseEquipment()
 {
     if (leq.getType() == EquipmentRacks.NONE)
     {
         availableRacks = EquipmentRackRegistry.getAvailableRacks();
         showGui        = true;
     }
     else
     {
         setEquipment(LabEquipment.getNullObject());
         Events["chooseEquipment"].guiName = "Add Lab Equipment";
     }
 }
Ejemplo n.º 3
0
 public void chooseEquipment()
 {
     if (leq.getType() == EquipmentRacks.NONE)
     {
         availableRacks = EquipmentRackRegistry.getAvailableRacks();
         showAddGui();
     }
     else
     {
         setEquipment(LabEquipment.getNullObject());
         Events["chooseEquipment"].guiName = Localizer.GetStringByTag("#ne_Add_Lab_Equipment");
     }
 }
Ejemplo n.º 4
0
        public override void OnLoad(ConfigNode node)
        {
            base.OnLoad(node);
            ConfigNode eqNode = node.GetNode(LabEquipment.CONFIG_NODE_NAME);

            if (eqNode != null)
            {
                setEquipment(LabEquipment.getLabEquipmentFromNode(eqNode, null));
            }
            else
            {
                setEquipment(LabEquipment.getNullObject());
            }
        }