GameProductCmdrTypeUtils
Registers the shared cmdr enum types used by the game product commands. These must be registered on both the server (so commands validate and parse) and the client (so cmdr can autocomplete them), mirroring how GameConfigCmdrUtils registers the asset id types.
Properties
OwnableAssetTypeName
GameProductCmdrTypeUtils.OwnableAssetTypeName: "ownableAssetType"The name of the ownable-asset-type enum cmdr type.
OwnershipStateName
GameProductCmdrTypeUtils.OwnershipStateName: "ownershipState"The name of the ownership-state enum cmdr type.
OwnableAssetIdOrKeyName
GameProductCmdrTypeUtils.OwnableAssetIdOrKeyName: "ownableAssetIdOrKey"The name of the ownable-asset id/key cmdr type. Autocompletes asset keys across all ownable asset types (a union -- it is not filtered by the command's chosen AssetType, since cmdr types cannot read sibling arguments) and also accepts raw numeric ids.
OwnershipStates
GameProductCmdrTypeUtils.OwnershipStates: {"own","disown","clear"}Ownership override states accepted by the set-ownership command.
Functions
registerTypes
Registers the game product cmdr types. Safe to call once per cmdr registry (server and each client). Registering a duplicate type name throws, so this should only be called from a single service on each realm.