// Iditacards asset definitions package iditacards #AssetKind: "image" | "tex" | "template" | "cat" #Asset: { // passed to convert to create the "print" version (usually to add bleed) // e.g. -set option:distort:viewport 825x1125-37-37 -virtual-pixel Edge -distort SRT 0 +repage print?: string depends: { assets: [...string] files: [...string] } kind: #AssetKind if kind == "image" { source: string } if kind == "template" { template: string size: #Dimensions data: _ } if kind == "cat" { contents: [...string] } if kind == "tex" { source: string size: #Dimensions } } // Assets are what actually need to be printed/created/etc assets: [string]: #Asset // Pseudo assets are useful to build for actually interacting with the game // (e.g. a PDF of all cards) pseudoassets: [string]: #Asset