MultiplayerClientSpawn.cs 1.1 KB

1234567891011121314151617181920212223242526272829
  1. using GadgetCore.API;
  2. using GadgetCore.API.ConfigMenu;
  3. using ScrapYard.API;
  4. namespace MultiplayerClientSpawn
  5. {
  6. [Gadget("MultiplayerClientSpawn", LoadAfter: new string[] { "ScrapYard" }, Dependencies: new string[] { "ScrapYard" })]
  7. public class MultiplayerClientSpawn : Gadget<MultiplayerClientSpawn>
  8. {
  9. public const string MOD_VERSION = "1.1"; // Set this to the version of your mod.
  10. public const string CONFIG_VERSION = "1.0"; // Increment this whenever you change your mod's config file.
  11. public override IGadgetConfigMenu GetConfigMenu() { return null; }
  12. public override string GetModDescription()
  13. {
  14. return "A mod that adds a multiplayer spawn point.";
  15. }
  16. protected override void Initialize()
  17. {
  18. Logger.Log("Multiplayer Client Spawn v" + Info.Mod.Version);
  19. Core.logger = Logger;
  20. Core.itemSpawnId = ItemUtil.CreatePlacableSpawnItem("spawnpoint.png", "iSpawn.png", "spawnpoint0.png", "spawnpoint1.png", "Multiplayer Spawn");
  21. ShopPlatform.DefaultObjects.AddShopPlatformEntry(new ShopPlatformEntry(Core.itemSpawnId, 10));
  22. }
  23. }
  24. }