using UnityEngine; using GadgetCore.API; using GadgetCore.API.ConfigMenu; namespace LoopPortal { [Gadget("LoopPortal")] public class LoopPortal : Gadget { public const string MOD_VERSION = "1.1"; // Set this to the version of your mod. public const string CONFIG_VERSION = "1.0"; // Increment this whenever you change your mod's config file. public override IGadgetConfigMenu GetConfigMenu() { return null; } public override string GetModDescription() { return "Adds a 4th portal to the end of every level that is guaranteed to loop to the current planet."; } protected override void Initialize() { Logger.Log("Loop Portal v" + Info.Mod.Version); Core.logger = Logger; TileInfo tile = new TileInfo(TileType.INTERACTIVE, null as Texture2D, new GameObject("port4")).Register("port4"); Core.npcId = tile.GetID(); } } }