예제 #1
0
 public override void Initialize(TehModAPI api)
 {
     toolkit = Toolkit.GetToolkit();
     api.RegisterMenu(this, "Add World Features");
     api.AddOption(this, "Add Snow Biome", "addSnow", 2);
     api.AddOption(this, "Convert Dirt to Snow", "convertSnow", 2);
     api.AddOption(this, "Convert World to Snow", "convertWorldSnow", 2);
     api.AddOption(this, "Add Dungeon", "addDungeon", 2);
     api.AddOption(this, "Add Hell House", "addHell", 2);
     api.AddOption(this, "Add Floating Island", "addIsland", 2);
     api.AddOption(this, "Add Floating Island House", "addIslandHouse", 2);
     api.AddOption(this, "Add Mine House", "addMineHouse", 2);
     api.AddOption(this, "Start Hardmode", "startHm", 2);
     api.AddOption(this, "Start Hardmode (No Biome Changes)", "startHm2", 2);
     api.AddOption(this, "Stop Hardmode", "stopHm", 2);
     api.AddOption(this, "Convert Corruption to Hallow", "convertCorruption", 2);
     api.AddOption(this, "Convert Corruption to Normal", "convertCorruptionNormal", 2);
     api.AddOption(this, "Convert Hallow to Corruption", "convertHallow", 2);
     api.AddOption(this, "Convert Hallow to Normal", "convertHallowNormal", 2);
     api.AddOption(this, "Start Goblin Invasion", "startGoblin", 2);
     api.AddOption(this, "Start Frost Legion Invasion", "startFrost", 2);
     api.AddOption(this, "Stop Invasion", "stopInvade", 2);
     api.AddOption(this, "Christmas", "xMas", 0);
     api.AddOption(this, "Quit Without Saving World", "exitNoSave", 2);
 }
예제 #2
0
 public override void Initialize(TehModAPI api)
 {
     toolkit = Toolkit.GetToolkit();
     api.RegisterMenu(this, "Add World Features");
     api.AddOption(this, "Add Snow Biome", "addSnow", 2);
     api.AddOption(this, "Convert Dirt to Snow", "convertSnow", 2);
     api.AddOption(this, "Convert World to Snow", "convertWorldSnow", 2);
     api.AddOption(this, "Add Dungeon", "addDungeon", 2);
     api.AddOption(this, "Add Hell House", "addHell", 2);
     api.AddOption(this, "Add Floating Island", "addIsland", 2);
     api.AddOption(this, "Add Floating Island House", "addIslandHouse", 2);
     api.AddOption(this, "Add Mine House", "addMineHouse", 2);
     api.AddOption(this, "Start Hardmode", "startHm", 2);
     api.AddOption(this, "Start Hardmode (No Biome Changes)", "startHm2", 2);
     api.AddOption(this, "Stop Hardmode", "stopHm", 2);
     api.AddOption(this, "Convert Corruption to Hallow", "convertCorruption", 2);
     api.AddOption(this, "Convert Corruption to Normal", "convertCorruptionNormal", 2);
     api.AddOption(this, "Convert Hallow to Corruption", "convertHallow", 2);
     api.AddOption(this, "Convert Hallow to Normal", "convertHallowNormal", 2);
     api.AddOption(this, "Start Goblin Invasion", "startGoblin", 2);
     api.AddOption(this, "Start Frost Legion Invasion", "startFrost", 2);
     api.AddOption(this, "Stop Invasion", "stopInvade", 2);
     api.AddOption(this, "Christmas", "xMas", 0);
     api.AddOption(this, "Quit Without Saving World", "exitNoSave", 2);
 }