Beispiel #1
0
        // This copies all properties to another thing
        public void CopyPropertiesTo(Thing t)
        {
            t.BeforePropsChange();

            // Copy properties
            t.type             = type;
            t.dynamiclighttype = dynamiclighttype;
            t.anglerad         = anglerad;
            t.angledoom        = angledoom;
            t.roll             = roll;        //mxd
            t.pitch            = pitch;       //mxd
            t.rollrad          = rollrad;     //mxd
            t.pitchrad         = pitchrad;    //mxd
            t.scaleX           = scaleX;      //mxd
            t.scaleY           = scaleY;      //mxd
            t.spritescale      = spritescale; //mxd
            t.pos         = pos;
            t.flags       = new Dictionary <string, bool>(flags);
            t.tag         = tag;
            t.action      = action;
            t.args        = (int[])args.Clone();
            t.size        = size;
            t.rendersize  = rendersize;
            t.height      = height;        //mxd
            t.color       = color;
            t.directional = directional;
            t.fixedsize   = fixedsize;
            t.rendermode  = rendermode;            //mxd
            t.rollsprite  = rollsprite;            //mxd

            base.CopyPropertiesTo(t);
        }
Beispiel #2
0
        // This copies all properties to another thing
        public void CopyPropertiesTo(Thing t)
        {
            t.BeforePropsChange();

            // Copy properties
            t.type       = type;
            t.angle      = angle;
            t.pos        = pos;
            t.flags      = new Dictionary <string, bool>(flags);
            t.tag        = tag;
            t.action     = action;
            t.args       = (int[])args.Clone();
            t.size       = size;
            t.color      = color;
            t.iconoffset = iconoffset;
            t.fixedsize  = fixedsize;
            base.CopyPropertiesTo(t);
        }