Exemplo n.º 1
0
        // Function from file: canister.dm
        public Obj_Machinery_PortableAtmospherics_Canister(dynamic loc = null, GasMixture existing_mixture = null) : base((object)(loc))
        {
            // Warning: Super call was HERE! If anything above HERE is needed by the super call, it might break!;

            if (existing_mixture != null)
            {
                this.air_contents.copy_from(existing_mixture);
            }
            else
            {
                this.create_gas();
            }
            this.pump      = new Obj_Machinery_Atmospherics_Components_Binary_PassiveGate(this, GlobalVars.FALSE);
            this.pump.on   = GlobalVars.TRUE;
            this.pump.stat = 0;
            this.pump.build_network();
            this.update_icon();
            return;
        }
Exemplo n.º 2
0
 // Function from file: canister.dm
 public override dynamic Destroy(  )
 {
     GlobalFuncs.qdel(this.pump);
     this.pump = null;
     return(base.Destroy());
 }