Skip to main content

Asset packages

The bundle, directory or zip a style project is read from. Created with kind assets.

TypeClass
"bundle"BundleAssetPackage
"dir"DirAssetPackage
"zip"ZippedAssetPackage

"bundle" — BundleAssetPackage

{"type": "bundle", "path":, "base":}
{"type": "bundle", "path":}
KeyTypeAlways requiredNotes
pathstringyes
baseobject std::shared_ptr<AssetPackage>noan id of kind assets, or an inline spec
PropertyTypeAccessDescription
basePathstringread-onlyReturns the path of the bundled directory the assets are read from.
localAssetNamesstruct std::vector<std::string>read-onlyReturns the list of assets found in the bundle, ignoring the base asset package.

Inherited from AssetPackage:

PropertyTypeAccessDescription
assetNamesstruct std::vector<std::string>read-only

"dir" — DirAssetPackage

{"type": "dir", "path":, "base":}
{"type": "dir", "path":}
KeyTypeAlways requiredNotes
pathstringyes
baseobject std::shared_ptr<AssetPackage>noan id of kind assets, or an inline spec
PropertyTypeAccessDescription
dirPathstringread-onlyReturns the full path of the directory containing the assets.
localAssetNamesstruct std::vector<std::string>read-onlyReturns the list of assets stored in the directory, ignoring the base asset package.

Inherited from AssetPackage:

PropertyTypeAccessDescription
assetNamesstruct std::vector<std::string>read-only

"zip" — ZippedAssetPackage

{"type": "zip", "data":, "base":}
{"type": "zip", "data":}
KeyTypeAlways requiredNotes
dataobject std::shared_ptr<BinaryData>yesan id of kind data, or an inline spec
baseobject std::shared_ptr<AssetPackage>noan id of kind assets, or an inline spec
PropertyTypeAccessDescription
localAssetNamesstruct std::vector<std::string>read-only

Inherited from AssetPackage:

PropertyTypeAccessDescription
assetNamesstruct std::vector<std::string>read-only

Base classes

Not constructed directly. Their properties are reachable on every object above that derives from them.

AssetPackage

PropertyTypeAccessDescription
assetNamesstruct std::vector<std::string>read-only