public override int countIdentifierReferences(string id)
        {

            int count = 0;

            // Count the initial scene
            if (chapter.getTargetId().Equals(id))
                count++;

            // Spread the call to the rest of the elements
            count += scenesListDataControl.countIdentifierReferences(id);
            count += cutscenesListDataControl.countIdentifierReferences(id);
            count += itemsListDataControl.countIdentifierReferences(id);
            count += atrezzoListDataControl.countIdentifierReferences(id);
            count += npcsListDataControl.countIdentifierReferences(id);
            count += conversationsListDataControl.countIdentifierReferences(id);
            count += advancedFeaturesDataControl.countIdentifierReferences(id);
            count += extraDataControls.Sum(d => d.countIdentifierReferences(id));

            return count;
        }
コード例 #2
0
        public override int countIdentifierReferences(string id)
        {
            int count = 0;

            // Count the initial scene
            if (chapter.getTargetId().Equals(id))
            {
                count++;
            }

            // Spread the call to the rest of the elements
            count += scenesListDataControl.countIdentifierReferences(id);
            count += cutscenesListDataControl.countIdentifierReferences(id);
            count += itemsListDataControl.countIdentifierReferences(id);
            count += atrezzoListDataControl.countIdentifierReferences(id);
            count += npcsListDataControl.countIdentifierReferences(id);
            count += conversationsListDataControl.countIdentifierReferences(id);
            count += advancedFeaturesDataControl.countIdentifierReferences(id);
            //count += adaptationProfilesDataControl.countIdentifierReferences(id);
            //count += assessmentProfilesDataControl.countIdentifierReferences(id);

            return(count);
        }