public override int countAssetReferences(string assetPath)
        {

            int count = 0;
            // Add the references from the elements
            count += scenesListDataControl.countAssetReferences(assetPath);
            count += cutscenesListDataControl.countAssetReferences(assetPath);
            count += booksListDataControl.countAssetReferences(assetPath);
            count += itemsListDataControl.countAssetReferences(assetPath);
            count += atrezzoListDataControl.countAssetReferences(assetPath);
            count += playerDataControl.countAssetReferences(assetPath);
            count += npcsListDataControl.countAssetReferences(assetPath);
            count += conversationsListDataControl.countAssetReferences(assetPath);
            count += advancedFeaturesDataControl.countAssetReferences(assetPath);
            count += extraDataControls.Sum(d => d.countAssetReferences(assetPath));

            return count;
        }
Ejemplo n.º 2
0
        public override int countAssetReferences(string assetPath)
        {
            int count = 0;

            // Add the references from the assessment and adaptation files
            // if( getAssessmentName( ).Equals( assetPath ) )
            //   count++;
            //if( getAdaptationName( ).Equals( assetPath ) )
            //  count++;

            // Add the references from the elements
            count += scenesListDataControl.countAssetReferences(assetPath);
            count += cutscenesListDataControl.countAssetReferences(assetPath);
            count += booksListDataControl.countAssetReferences(assetPath);
            count += itemsListDataControl.countAssetReferences(assetPath);
            count += atrezzoListDataControl.countAssetReferences(assetPath);
            count += playerDataControl.countAssetReferences(assetPath);
            count += npcsListDataControl.countAssetReferences(assetPath);
            count += conversationsListDataControl.countAssetReferences(assetPath);
            count += advancedFeaturesDataControl.countAssetReferences(assetPath);

            return(count);
        }