public override void replaceIdentifierReferences(string oldId, string newId)
        {

            // If the initial scene identifier has changed, update it
            if (chapter.getTargetId().Equals(oldId))
                chapter.setTargetId(newId);

            // Spread the call to the rest of the elements
            scenesListDataControl.replaceIdentifierReferences(oldId, newId);
            cutscenesListDataControl.replaceIdentifierReferences(oldId, newId);
            itemsListDataControl.replaceIdentifierReferences(oldId, newId);
            atrezzoListDataControl.replaceIdentifierReferences(oldId, newId);
            npcsListDataControl.replaceIdentifierReferences(oldId, newId);
            conversationsListDataControl.replaceIdentifierReferences(oldId, newId);
            advancedFeaturesDataControl.replaceIdentifierReferences(oldId, newId);
            extraDataControls.ForEach(d => d.replaceIdentifierReferences(oldId, newId));
        }
Exemplo n.º 2
0
        public override void replaceIdentifierReferences(string oldId, string newId)
        {
            // If the initial scene identifier has changed, update it
            if (chapter.getTargetId().Equals(oldId))
            {
                chapter.setTargetId(newId);
            }

            // Spread the call to the rest of the elements
            scenesListDataControl.replaceIdentifierReferences(oldId, newId);
            cutscenesListDataControl.replaceIdentifierReferences(oldId, newId);
            itemsListDataControl.replaceIdentifierReferences(oldId, newId);
            atrezzoListDataControl.replaceIdentifierReferences(oldId, newId);
            npcsListDataControl.replaceIdentifierReferences(oldId, newId);
            conversationsListDataControl.replaceIdentifierReferences(oldId, newId);
            advancedFeaturesDataControl.replaceIdentifierReferences(oldId, newId);
            completableListDataControl.replaceIdentifierReferences(oldId, newId);
            //        assessmentProfilesDataControl.replaceIdentifierReferences( oldId, newId );
            //adaptationProfilesDataControl.replaceIdentifierReferences(oldId, newId);
        }