Beispiel #1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="creatureId"></param>
 /// <param name="sequenceId"></param>
 /// <param name="startIndex"></param>
 /// <param name="endIndex"></param>
 public void ShowTalk(int sequenceId, int startIndex, int endIndex)
 {
     for (int i = startIndex; i <= endIndex; i++)
     {
         ConversationId conversationId = ConversationId.Create(this.ChapterId(), sequenceId, i);
         string         key            = conversationId.GetKeyForId();
         if (chapterDefinition.ConversationIds.ContainsKey(key))
         {
             int        creatureId = chapterDefinition.ConversationIds[key];
             FDCreature creature   = this.GetCreature(creatureId);
             TalkPack   pack       = new TalkPack(creature.Clone(), conversationId);
             gameCallback.OnHandlePack(pack);
         }
     }
 }