public CommunityCenterManager(IModHelper helper, IMonitor monitor, BundleInjector bundler) { Helper = helper; Monitor = monitor; this.bundler = bundler; helper.Events.Player.Warped += (o, e) => Warped(e.NewLocation); helper.Events.Input.ButtonPressed += ButtonPressed; }
public override void Entry(IModHelper helper) { hlp = helper; bundler = new BundleInjector(helper, Monitor); var ccMan = new CommunityCenterManager(helper, Monitor, bundler); var stringer = new StringInjector(helper, Monitor); var cheats = new CheatManager(helper, Monitor); var achievs = new Acheivements(helper, Monitor); helper.Events.GameLoop.SaveLoaded += SaveLoaded; helper.Events.GameLoop.Saving += Saving; helper.Events.GameLoop.ReturnedToTitle += TitleReturn; helper.Content.AssetEditors.Add(bundler); helper.Content.AssetEditors.Add(stringer); helper.Content.AssetEditors.Add(cheats); helper.ConsoleCommands.Add("bundle", "Give all items for bundle.\n\nUsage: bundle <value>\n- value: the integer id of bundle in question.", this.GiveItems); }