Beispiel #1
0
        private void DoInteract(SimulationComponent simulation, IInteractor interactor, IInteractable interactable)
        {
            var quest = simulation.World.Quests.SingleOrDefault(q => q.Name == "Heidis Quest");

            before.Visible = quest.State == QuestState.Inactive;
            after.Visible  = quest.State == QuestState.Active && quest.CurrentProgress.Id == "return";

            Game1 game = simulation.Game as Game1;

            simulation.ShowInteractionScreen(interactor as Player, new DialogScreen(game.Screen, this, interactor as Player, dialog));
        }
Beispiel #2
0
        private void DoInteract(SimulationComponent simulation, IInteractor interactor, IInteractable interactable)
        {
            RheinwerkGame game = simulation.Game as RheinwerkGame;

            simulation.ShowInteractionScreen(interactor as Player, new ShoutScreen(game.Screen, this, "Bleib ein Weilchen und hoer zu!"));
        }