# Sandbox.Services.PackageType

A package type/category (e.g. "game", "model", "addon"), along with its allowed licenses and counts.
The list is fetched once per session via `M:Sandbox.Services.PackageType.LoadAsync` — typically on startup — and then
accessed synchronously via [Sandbox.Services.PackageType.All](/api/Sandbox.Services.PackageType/All) and [Sandbox.Services.PackageType.Get](/api/Sandbox.Services.PackageType/Get).

- Kind: class
- Namespace: `Sandbox.Services`
- Assembly: `Sandbox.Engine`
- Modifiers: sealed

## Constructors

- [`PackageType`](/api/Sandbox.Services.PackageType/.ctor)

## Properties

- [`Addon`](/api/Sandbox.Services.PackageType/Addon)
- [`All`](/api/Sandbox.Services.PackageType/All): All known package types. Empty until `M:Sandbox.Services.PackageType.LoadAsync` has completed.
- [`AssetLicenses`](/api/Sandbox.Services.PackageType/AssetLicenses): Licenses applicable to assets within packages of this type.
- [`Clothing`](/api/Sandbox.Services.PackageType/Clothing)
- [`Collection`](/api/Sandbox.Services.PackageType/Collection)
- [`Count`](/api/Sandbox.Services.PackageType/Count): Number of packages of this type that are visible.
- [`Game`](/api/Sandbox.Services.PackageType/Game)
- [`HasAssetLicenses`](/api/Sandbox.Services.PackageType/HasAssetLicenses): Whether this package type supports asset licenses.
- [`HasServices`](/api/Sandbox.Services.PackageType/HasServices): Whether packages of this type can offer backend services.
- [`Icon`](/api/Sandbox.Services.PackageType/Icon): Icon for this type.
- [`Library`](/api/Sandbox.Services.PackageType/Library)
- [`Map`](/api/Sandbox.Services.PackageType/Map)
- [`Material`](/api/Sandbox.Services.PackageType/Material)
- [`Model`](/api/Sandbox.Services.PackageType/Model)
- [`Name`](/api/Sandbox.Services.PackageType/Name): Internal name of the type (e.g. "game", "model").
- [`Prefab`](/api/Sandbox.Services.PackageType/Prefab)
- [`ShowOnIndex`](/api/Sandbox.Services.PackageType/ShowOnIndex): Whether this type is shown on the index page.
- [`SoftwareLicenses`](/api/Sandbox.Services.PackageType/SoftwareLicenses): Licenses applicable to the package itself when it's software.
- [`Sound`](/api/Sandbox.Services.PackageType/Sound)
- [`Title`](/api/Sandbox.Services.PackageType/Title): Display title of the type.
- [`TotalCount`](/api/Sandbox.Services.PackageType/TotalCount): Total number of packages of this type, including hidden/archived.

## Methods

- [`Get`](/api/Sandbox.Services.PackageType/Get): Find a package type by its [Sandbox.Services.PackageType.Name](/api/Sandbox.Services.PackageType/Name). Returns null if not found, or if `M:Sandbox.Services.PackageType.LoadAsync` hasn't been called yet.
- [`GetAssetLicenseOptions`](/api/Sandbox.Services.PackageType/GetAssetLicenseOptions): Get asset license options as simple value types. Useful for game/addon code that can't reference Sandbox.Services types directly.
