assetSourceSpecSchema
constassetSourceSpecSchema:ZodObject<{assetRoot:ZodString;assets:ZodArray<ZodDiscriminatedUnion<[ZodObject<{biome:ZodString;edgeMask:ZodOptional<ZodNumber>;format:ZodEnum<{glb:"glb";gltf:"gltf";png:"png"; }>;id:ZodString;path:ZodString;role:ZodLiteral<"tile">; },$strip>,ZodObject<{biome:ZodOptional<ZodString>;format:ZodLiteral<"png">;grid:ZodObject<{cellHeight:ZodNumber;cellWidth:ZodNumber;cols:ZodNumber;rows:ZodNumber; },$strip>;id:ZodString;path:ZodString;role:ZodLiteral<"tileset">;transition:ZodOptional<ZodObject<{edgeCells:ZodRecord<…, …>; },$strip>>; },$strip>,ZodObject<{category:ZodOptional<ZodEnum<{encounter:"encounter";enemy:"enemy";npc:"npc";pc:"pc";prop:"prop";structure:"structure";unit:"unit"; }>>;format:ZodLiteral<"png">;id:ZodString;path:ZodString;role:ZodLiteral<"sprite">; },$strip>,ZodObject<{category:ZodOptional<ZodEnum<{encounter:"encounter";enemy:"enemy";npc:"npc";pc:"pc";prop:"prop";structure:"structure";unit:"unit"; }>>;format:ZodEnum<{glb:"glb";gltf:"gltf"; }>;id:ZodString;path:ZodString;role:ZodLiteral<"model">; },$strip>],"role">>;name:ZodString;specVersion:ZodLiteral<1>; },$strip>
Defined in: packages/declarative-hex-worlds/src/asset-source/spec.ts:128
A complete asset source: a named set of assets under an asset root.