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); }
public static TestMachine ParseObject(string data) { TestMachine h = Serialize.ReadFromXMLFile <TestMachine>(data); return(h); }