コード例 #1
0
 /// <summary>
 /// Get next conversation
 /// </summary>
 /// <param name="gameState"></param>
 /// <returns></returns>
 private IConversation GetConversation(IGameState gameState)
 {
     foreach (ConversationCode code in _conversations)
     {
         IConversation fetched = StoryBuilder.GetConversation(code);
         if (fetched != null)
         {
             if (fetched.CanBeRead(gameState))
             {
                 NewConversation = true;
                 return(fetched);
             }
         }
     }
     return(null);
 }