/// <summary> /// The mods entry point. /// </summary>> /// <param name="helper">SMAPI's mod helper</param> public override void Entry(IModHelper helper) { // Load the config Config = helper.ReadConfig <ModConfig>(); // Initialize classes InitializeClasses(); // Set up the events SetUpEvents(); // Check for installed optional mods CheckIfOptionalModsAreInstalled(); // If SpaceCore installed then register the extended tilesheets if (IsSpaceCoreInstalled) { RegisterSpaceCoreSheets(); } // Initialize the LoadSaveMenu Patcher MenuPatcher.Init(); // Initialize and Patch with Harmony HarmonyHelper.InitializeAndPatch(); // Add the ContentLoader class to the AssetLoader List helper.Content.AssetLoaders.Add(new ContentLoader(this, PackHelper)); }
/// <summary> /// The mods entry point. /// </summary>> /// <param name="helper">SMAPI's mod helper</param> public override void Entry(IModHelper helper) { // Load the config Config = helper.ReadConfig <ModConfig>(); InitializeClasses(); SetUpEvents(); CheckIfOptionalModsAreInstalled(); // If SpaceCore installed then register the extended tilesheets if (IsSpaceCoreInstalled) { RegisterSpaceCoreSheets(); } MenuPatcher.Initialize(); HarmonyHelper.InitializeAndPatch(); helper.Content.AssetLoaders.Add(new ContentLoader(this, PlayerChanger)); }