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(); } }
private void CountObject(ArtPrimitive obj) { var group = GetGroup(obj.artGroupTag); group.CountArtObject(obj); }