コード例 #1
0
        // Function from file: disposal-structures.dm
        public void init(Obj_Machinery_Disposal D = null)
        {
            Mob_Living  M  = null;
            Obj         O  = null;
            Mob_Living  M2 = null;
            Ent_Dynamic AM = null;
            Ent_Dynamic T  = null;
            Ent_Dynamic T2 = null;

            this.gas = D.air_contents;

            foreach (dynamic _a in Lang13.Enumerate(D, typeof(Mob_Living)))
            {
                M = _a;


                if (M.client != null)
                {
                    M.reset_perspective(this);
                }
                this.hasmob = true;
            }

            foreach (dynamic _c in Lang13.Enumerate(D, typeof(Obj)))
            {
                O = _c;


                if (O.contents != null)
                {
                    foreach (dynamic _b in Lang13.Enumerate(O.contents, typeof(Mob_Living)))
                    {
                        M2 = _b;

                        this.hasmob = true;
                    }
                }
            }

            foreach (dynamic _d in Lang13.Enumerate(D, typeof(Ent_Dynamic)))
            {
                AM = _d;

                AM.loc = this;

                if (AM is Obj_Structure_BigDelivery && !this.hasmob)
                {
                    T = AM;
                    this.destinationTag = Lang13.DoubleNullable(((dynamic)T).sortTag);
                }

                if (AM is Obj_Item_SmallDelivery && !this.hasmob)
                {
                    T2 = AM;
                    this.destinationTag = Lang13.DoubleNullable(((dynamic)T2).sortTag);
                }
            }
            return;
        }
コード例 #2
0
 // Function from file: disposal-structures.dm
 public void start(Obj_Machinery_Disposal D = null)
 {
     if (!Lang13.Bool(D.trunk))
     {
         D.expel(this);
         return;
     }
     this.loc    = D.trunk;
     this.active = true;
     this.dir    = GlobalVars.DOWN;
     this.move();
     return;
 }