GameFramework.ServerStorySystem.GetUnusedAiStoryInstanceInfoFromPool C# (CSharp) Method

GetUnusedAiStoryInstanceInfoFromPool() private method

private GetUnusedAiStoryInstanceInfoFromPool ( string storyId ) : AiStoryInstanceInfo
storyId string
return AiStoryInstanceInfo
        private AiStoryInstanceInfo GetUnusedAiStoryInstanceInfoFromPool(string storyId)
        {
            AiStoryInstanceInfo info = null;
            List<AiStoryInstanceInfo> infos;
            if (m_AiStoryInstancePool.TryGetValue(storyId, out infos)) {
                int ct = infos.Count;
                for (int ix = 0; ix < ct; ++ix) {
                    if (!infos[ix].m_IsUsed) {
                        info = infos[ix];
                        break;
                    }
                }
            }
            return info;
        }