Exemplo n.º 1
0
        public void CountArtObject(ArtPrimitive obj)
        {
            switch (obj.artCategoryTag)
            {
            case ArtCategoryTag.ActorsSpawners:
                actorsSpawners.quantity++;
                break;

            case ArtCategoryTag.NavShapes:
                navShapes.quantity++;
                break;

            case ArtCategoryTag.Splines:
                splines.quantity++;
                break;

            case ArtCategoryTag.Regions:
                regions.quantity++;
                break;

            case ArtCategoryTag.Traversal:
                traversal.quantity++;
                break;

            case ArtCategoryTag.FeatureOverlays:
                featureOverlays.quantity++;
                break;

            default:
                throw new ArgumentOutOfRangeException();
            }
        }
Exemplo n.º 2
0
        private void CountObject(ArtPrimitive obj)
        {
            var group = GetGroup(obj.artGroupTag);

            group.CountArtObject(obj);
        }