public AdventureBegins(ISpecialModEvents modEvents, IQuestFrameworkEvents questEvents, IModEvents gameEvents, IContentLoader contentLoader, Config config, IMonitor monitor) : base() { this.modEvents = modEvents; this.questEvents = questEvents; this.gameEvents = gameEvents; this.contentLoader = contentLoader; this.config = config; this.monitor = monitor; }
public NpcOfferController(QuestOfferManager offerManager, QuestManager questmanager, IModEvents modEvents, IQuestFrameworkEvents qfEvents, IMonitor monitor) { this._npcQuestOffers = new PerScreen <List <QuestOffer <NpcOfferAttributes> > >(CreateOfferList); this._activeIndicators = new PerScreen <HashSet <string> >(CreateActiveIndicatorList); this._offerManager = offerManager; this._questManager = questmanager; this._monitor = monitor; modEvents.GameLoop.DayStarted += this.OnDayStarted; modEvents.GameLoop.TimeChanged += this.OnTimeChanged; modEvents.Player.Warped += this.OnPlayerWarped; modEvents.GameLoop.ReturnedToTitle += this.OnReturnedToTitle; modEvents.Display.RenderedWorld += this.OnRenderedWorld; qfEvents.QuestAccepted += this.OnQuestAccepted; }