Exemplo n.º 1
0
        public void AssignNewDialogue(DialogueInfo info)
        {
            DialogueOption dialogue = DialogueService.GetInstance().GetDialogue(info);
            IChattable     npc      = EntityService.GetInstance().GetNpcById(info.NpcId);

            npc.AddDialogue(dialogue);
            hasChanged = true;
        }
Exemplo n.º 2
0
        public void Update(GameTime gameTime)
        {
            if (chattable != null)
            {
                chattable.RemoveDialogue(this);

                foreach (DialogueInfo info in successorInfo)
                {
                    DialogueOption option = DialogueService.GetInstance().GetDialogue(info);
                    IChattable     npc    = EntityService.GetInstance().GetNpcById(info.NpcId);
                    npc.AddDialogue(option);
                }
            }

            if (Selected != null)
            {
                Selected(dialogueInfo, null);
            }

            if (ProccessAdditionalData != null && additionalData != null)
            {
                ProccessAdditionalData(additionalData, null);
            }
        }