GameFramework.ServerStorySystem.PauseMessageHandler C# (CSharp) Method

PauseMessageHandler() public method

public PauseMessageHandler ( string msgId, bool pause ) : void
msgId string
pause bool
return void
        public void PauseMessageHandler(string msgId, bool pause)
        {
            int ct = m_StoryLogicInfos.Count;
            for (int ix = ct - 1; ix >= 0; --ix) {
                StoryInstance info = m_StoryLogicInfos[ix];
                info.PauseMessageHandler(msgId, pause);
            }
            foreach (var pair in m_AiStoryInstancePool) {
                var infos = pair.Value;
                int aiCt = infos.Count;
                for (int ix = aiCt - 1; ix >= 0; --ix) {
                    if (infos[ix].m_IsUsed && null != infos[ix].m_StoryInstance) {
                        infos[ix].m_StoryInstance.PauseMessageHandler(msgId, pause);
                    }
                }
            }
        }