public Decoration(Decoration d) { texture = d.texture; id = d.id; position = d.position; up = d.up; color = d.color; wrap = d.wrap; freespin = d.freespin; startFrame = 0; reverseAnimation = d.reverseAnimation; }
void world_copy(object sender, System.EventArgs e) { if (sender == this.elementCopy) { if (editMode == EditMode.Monster) { undoWorld = new World(world); Monster newMonster = new Monster(selectedMonster); newMonster.Init(); selectedFace.monsters.Add(newMonster); } if (editMode == EditMode.Block) { undoWorld = new World(world); Block newBlock = new Block(selectedBlock); newBlock.Init(); selectedFace.blocks.Add(newBlock); } if (editMode == EditMode.Doodad) { undoWorld = new World(world); Doodad newDoodad = new Doodad(selectedDoodad); newDoodad.Init(); selectedFace.doodads.Add(newDoodad); } if (editMode == EditMode.Decoration) { undoWorld = new World(world); Decoration newDecoration = new Decoration(selectedDecoration); newDecoration.Init(); selectedFace.decorations.Add(newDecoration); } } }