Skip to content

packClassifier

packClassifier(packId, category, assetIdPrefix?): PlacementClassifier

Defined in: packages/declarative-hex-worlds/src/classifiers/classifiers.ts:113

Build a PlacementClassifier for a recognized pack (RFC0-TAGb). A placement belongs to the pack when EITHER its sourcePack metadata equals packId OR its assetId is namespaced under <packId>: (the adventurer:knight convention). Matching placements receive the pack category’s default classifiers (packDefaultClassifiers); everything else gets none, so pack classifiers compose cleanly on top of the kind-based DEFAULT_PLACEMENT_CLASSIFIERS.

string

The registered pack id (e.g. adventurers, skeletons).

PackClassifierCategory

The pack’s registry category (thread packDescriptor(id).category).

string = packId

Optional assetId namespace to also match (defaults to packId).

PlacementClassifier