Пример #1
0
        public override Item getOne()
        {
            TestMachine Light = new TestMachine(this.parentSheetIndex, this.tileLocation, this.lightColor, this.drawColor, this.areLightAndDrawColorsDifferent);

            /*
             * drawPosition = this.drawPosition;
             * defaultBoundingBox = this.defaultBoundingBox;
             * boundingBox = this.boundingBox;
             * currentRotation = this.currentRotation - 1;
             * rotations = this.rotations;
             * rotate();
             */
            return(Light);
        }
Пример #2
0
        public static TestMachine ParseObject(string data)
        {
            TestMachine h = Serialize.ReadFromXMLFile <TestMachine>(data);

            return(h);
        }