public override void Entry(IModHelper helper) { this.LoadContent(); helper.Events.GameLoop.UpdateTicked += OnUpdateTicked; // TODO: migrate old Farmhand code DialogueResultInformation dreamResult = new DialogueResultInformation(this, new Dialogue.AnswerResult(dream)); DialogueAnswerInformation dreamAnswer = new DialogueAnswerInformation(this, "SleepDream", "Dream", dreamResult); Dialogue.RegisterNewAnswer(Questions.Sleep, dreamAnswer); }
public override void Entry() { Instance = this; // Create a result, dictating what will happen if our answer is picked DialogueResultInformation newRobinResult = new DialogueResultInformation(Instance, new Dialogue.AnswerResult(RobinTeleport)); // Create an answer, an option that will show up as a response to a question DialogueAnswerInformation newRobinAnswer = new DialogueAnswerInformation(Instance, "RobinTeleport", "Teleport", newRobinResult); // Register our new answer to be included in robins's question Dialogue.RegisterNewAnswer(Questions.Carpenter, newRobinAnswer); // Remove robin's "Leave" option DialogueAnswerRemovalInformation removeRobinLeave = new DialogueAnswerRemovalInformation(Instance, Answers.Carpenter_Leave); Dialogue.RemoveDefaultAnswer(Questions.Carpenter, removeRobinLeave); }