예제 #1
0
 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;
 }
예제 #2
0
파일: MainForm.cs 프로젝트: kevincos/Vexed
 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);
         }
     }
 }