Esempio n. 1
0
 private void Button3_Click(object sender, EventArgs e)
 {
     StarsHostEditor editor = new StarsHostEditor();
     editor.Load(@"C:\openwar\Files\game.hst");
     editor.SwapPlanets(0x13, 0x16);
     editor.SwapPlanets(0x130, 40);
     editor.SwapPlanets(0x14e, 0x3b);
     editor.SwapPlanets(0x149, 0x2a);
     editor.SwapPlanets(0x8f, 0x131);
     editor.SwapPlanets(0x30, 320);
     editor.SwapPlanets(0xf5, 0x151);
     editor.SwapPlanets(0x13d, 0x129);
     editor.SwapPlanets(0x156, 10);
     editor.SwapPlanets(0x9a, 0x11);
     editor.SwapPlanets(0xf3, 30);
     editor.SwapPlanets(0x152, 0x2d);
     editor.SwapPlanets(0xc6, 0x160);
     editor.SwapPlanets(0x54, 0x15b);
     editor.SwapPlanets(50, 0x141);
     editor.SwapPlanets(11, 0x14b);
     editor.SaveHST(@"c:\openwar\files\game2.hst");
     editor.Save(@"C:\openwar\Files\game.hst", false);
     Interaction.Beep();
 }