//:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: // PROTECTED FUNCTION //:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: // @Brief : Add initialize command // @Param : pReader => Stream reader // : pScript => Script container // : pStr => String of one line protected override void Add(StreamReader pReader, KrCharagekiScript pScript, string pStr) { if (pStr.Equals(c_pSECTION + ":")) { KrDebug.Log("New section", typeof(KrCharagekiMain)); KrCharagekiSection pSection = new KrCharagekiSection(); pSection.Add(pReader, pScript); c_pSectionScripts.Add(pSection); } }
// @Brief : Update for main script private void ScriptUpdate() { //::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: // UPDATE CHARAGEKI KrDebug.Log("Play section. No." + m_sSectionIndex, typeof(KrCharagekiManager)); KrCharagekiSection pSection = m_pMainCharagekiSections[m_sSectionIndex]; List <KrCharagekiCommand> pCommands = pSection.GetCommands(); for (int sIndex = 0; sIndex < pCommands.Count; sIndex++) { pCommands[sIndex].Exec(this); } m_sSectionIndex++; }