Esempio n. 1
0
        internal static void Initialize(IMod ModInstance)
        {
            Helper  = ModInstance.Helper;
            Monitor = ModInstance.Monitor;

            TileActionHandler.RegisterTileAction("RSVMinecart", OpenMinecartDialogue);
        }
Esempio n. 2
0
        internal static void Initialize(IMod ModInstance)
        {
            Helper  = ModInstance.Helper;
            Monitor = ModInstance.Monitor;

            TileActionHandler.RegisterTileAction("PaulaCounter", OpenPaulaMenu);
        }
Esempio n. 3
0
        private void OnGameLaunched(object sender, EventArgs e)
        {
            TileActionHandler.Initialize(Helper);
            ImageMenu.Setup(Helper);
            MapMenu.Setup(Helper);
            TrashCans.Setup(Helper);
            RSVWorldMap.Setup(Helper);
            ExternalAPIs.Initialize(Helper);

            Config = Helper.ReadConfig <ModConfig>();

            if (!Helper.ModRegistry.IsLoaded("spacechase0.JsonAssets"))
            {
                Log.Error("JSON Assets is not loaded! This mod *requires* JSON Assets!");
                return;
            }

            // Custom CP Token Set-up
            CustomCPTokens.RegisterTokens();

            Helper.ConsoleCommands.Add("RSV_reset_pedestals", "", ResetPedestals);
            Helper.ConsoleCommands.Add("RSV_open_portal", "", OpenPortal);
            // RSV_rivera_secret in Patches/WalletItem

            // Generic Mod Config Menu setup
            ConfigMenu.RegisterMenu();
        }
Esempio n. 4
0
        internal static void Initialize(IMod ModInstance)
        {
            Helper  = ModInstance.Helper;
            Monitor = ModInstance.Monitor;

            Helper.Events.GameLoop.DayStarted += OnDayStarted;
            TileActionHandler.RegisterTileAction("IanCounter", OpenIanMenu);
        }
Esempio n. 5
0
        internal static void Initialize(IMod ModInstance)
        {
            Helper  = ModInstance.Helper;
            Monitor = ModInstance.Monitor;

            TileActionHandler.RegisterTileAction("ShipmentRSV", ShipmentBin);

            //Helper.Events.Input.ButtonPressed += OnButtonPressed;
        }
Esempio n. 6
0
        internal static void Initialize(IMod ModInstance)
        {
            Helper  = ModInstance.Helper;
            Monitor = ModInstance.Monitor;

            TileActionHandler.RegisterTileAction("RSVOpenDaiaBook", RSVOpenDaiaBook);
            TileActionHandler.RegisterTileAction("MyLetter", MyLetter);
            TileActionHandler.RegisterTileAction("RSVFoxbloomHint", GetFoxbloomHint);
        }
Esempio n. 7
0
        internal static void Initialize(IMod ModInstance)
        {
            Helper     = ModInstance.Helper;
            Monitor    = ModInstance.Monitor;
            FogTexture = Helper.ModContent.Load <Texture2D>(PathUtilities.NormalizePath("assets/SpiritRealmFog.png"));

            TileActionHandler.RegisterTileAction("RSVWarp", RSVWarp);
            TileActionHandler.RegisterTileAction("RSVCorruptedFire", CleanseCorruptedFire);
            Helper.Events.Player.Warped += OnWarped;
        }
Esempio n. 8
0
        internal static void Initialize(IMod ModInstance)
        {
            Helper  = ModInstance.Helper;
            Monitor = ModInstance.Monitor;

            Helper.Events.GameLoop.DayStarted += OnDayStarted;
            Helper.Events.GameLoop.DayEnding  += OnDayEnding;
            //SpaceEvents.TouchActionActivated += OnTileAction;

            TileActionHandler.RegisterTileAction("RSVMaiveLoan", RSVMaiveLoan);
        }
Esempio n. 9
0
        internal static void Initialize(IMod ModInstance)
        {
            Helper  = ModInstance.Helper;
            Monitor = ModInstance.Monitor;

            //Helper.Events.Input.ButtonPressed += OnButtonPressed;
            Helper.Events.GameLoop.DayStarted += OnDayStarted;
            Helper.Events.Player.Warped       += OnWarped;

            TileActionHandler.RegisterTileAction("HotelCounter", HandleHotelCounterMenu);
            TileActionHandler.RegisterTileAction("EventHallCounter", HandleEventHallMenu);
            TileActionHandler.RegisterTileAction("RatesCounter", HandleRatesMenu);
            TileActionHandler.RegisterTileAction("BlissBook", HandleBlissBook);
        }
Esempio n. 10
0
 internal static void Initialize(IMod ModInstance)
 {
     Helper  = ModInstance.Helper;
     Monitor = ModInstance.Monitor;
     TileActionHandler.RegisterTileAction("RSVUndreyaSched", RSVUndreyaSched);
 }
Esempio n. 11
0
 internal static void Setup(IModHelper Helper)
 {
     MapMenu.Helper = Helper;
     TileActionHandler.RegisterTileAction("ShowMap", Open);
 }
Esempio n. 12
0
 internal static void Setup(IModHelper Helper)
 {
     TrashCans.Helper = Helper;
     Helper.Events.GameLoop.DayStarted += OnDayStarted;
     TileActionHandler.RegisterTileAction("RSV.TrashCan", Trigger);
 }