Exemple #1
0
        private void CollectInteractions(LogicBranch <Interaction> gr)
        {
            if (!gr.IsTrue())
            {
                return;
            }

            foreach (var si in gr.elements)
            {
                si.ResetSentences();

                if (!si.IsTrue())
                {
                    continue;
                }

                OptText.Add(si.texts.NameForPEGI);
                PossibleInteractions.Add(si);
            }

            foreach (var sgr in gr.subBranches)
            {
                CollectInteractions(sgr);
            }
        }
        void RenameReferenceLoop(LogicBranch <Interaction> br, string oldName, string newName)
        {
            foreach (var e in br.elements)
            {
                e.RenameReferenceName(oldName, newName);
            }

            foreach (var sb in br.subBranches)
            {
                RenameReferenceLoop(sb, oldName, newName);
            }
        }