@almadar/core 10.19.0 → 10.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/builders.d.ts +3 -3
- package/dist/builders.js +16 -47
- package/dist/builders.js.map +1 -1
- package/dist/{compose-behaviors-DEeRtnHP.d.ts → compose-behaviors-mP-vUG61.d.ts} +1 -1
- package/dist/factory/index.d.ts +3 -3
- package/dist/factory-runtime/index.d.ts +3 -3
- package/dist/factory-runtime/index.js +16 -47
- package/dist/factory-runtime/index.js.map +1 -1
- package/dist/index.d.ts +8 -8
- package/dist/index.js +16 -47
- package/dist/index.js.map +1 -1
- package/dist/{schema-BOGLyI7O.d.ts → schema-BEL2Gr4v.d.ts} +1530 -1530
- package/dist/{trait-BnNByIRE.d.ts → trait-BcRvHKLW.d.ts} +156 -371
- package/dist/types/index.d.ts +376 -255
- package/dist/types/index.js +16 -47
- package/dist/types/index.js.map +1 -1
- package/dist/{types-By4AQApw.d.ts → types-DBzaYmuJ.d.ts} +57 -57
- package/package.json +1 -1
|
@@ -994,12 +994,6 @@ declare const AssetDimensionSchema: z.ZodEnum<["2d", "3d"]>;
|
|
|
994
994
|
declare const ASSET_ASPECTS: readonly ["1:1", "16:9", "5:7", "8:1"];
|
|
995
995
|
type AssetAspect = (typeof ASSET_ASPECTS)[number];
|
|
996
996
|
declare const AssetAspectSchema: z.ZodEnum<["1:1", "16:9", "5:7", "8:1"]>;
|
|
997
|
-
/**
|
|
998
|
-
* Game type classifications
|
|
999
|
-
*/
|
|
1000
|
-
declare const GAME_TYPES: readonly ["platformer", "roguelike", "top-down", "puzzle", "racing", "card", "board", "shooter", "rpg"];
|
|
1001
|
-
type GameType = (typeof GAME_TYPES)[number];
|
|
1002
|
-
declare const GameTypeSchema: z.ZodEnum<["platformer", "roguelike", "top-down", "puzzle", "racing", "card", "board", "shooter", "rpg"]>;
|
|
1003
997
|
/**
|
|
1004
998
|
* Animation names matching a sprite sheet's row layout. Canonical home for
|
|
1005
999
|
* this vocabulary — `@almadar/ui`'s `spriteAnimationTypes.ts` re-exports it
|
|
@@ -1299,96 +1293,17 @@ declare const TilesheetSchema: z.ZodObject<{
|
|
|
1299
1293
|
spacing?: number | undefined;
|
|
1300
1294
|
names?: string[] | undefined;
|
|
1301
1295
|
}>;
|
|
1302
|
-
/**
|
|
1303
|
-
* The three roles a source pack plays, decided by the systematic per-folder
|
|
1304
|
-
* scan (see `docs/Almadar_Std_Assets.md`):
|
|
1305
|
-
* - `board-tileset` — a genre/canvas-matched terrain/level set, often ~1:1 with a board.
|
|
1306
|
-
* - `character-kit` — modular layered character parts assembled into one figure.
|
|
1307
|
-
* - `shared-primitive` — backgrounds / effects / UI / particles fanned out to many boards.
|
|
1308
|
-
*/
|
|
1309
|
-
declare const PACK_CLASSES: readonly ["board-tileset", "character-kit", "shared-primitive"];
|
|
1310
|
-
type PackClass = (typeof PACK_CLASSES)[number];
|
|
1311
|
-
declare const PackClassSchema: z.ZodEnum<["board-tileset", "character-kit", "shared-primitive"]>;
|
|
1312
|
-
/**
|
|
1313
|
-
* A modular character-kit layer: one selectable part (`head`/`hair`/`shirt`/…)
|
|
1314
|
-
* resolved to a sub-texture ref. Recorded now so the analysis can RECOGNIZE
|
|
1315
|
-
* modular packs; the layered compositor that stacks these is a later follow-up.
|
|
1316
|
-
*/
|
|
1317
|
-
interface CharacterKitLayer {
|
|
1318
|
-
/** Which body slot this layer fills. */
|
|
1319
|
-
slot: 'body' | 'head' | 'face' | 'hair' | 'facialHair' | 'shirt' | 'pants' | 'shoes' | 'accessory';
|
|
1320
|
-
/** Sheet PNG the part lives on. */
|
|
1321
|
-
url: AssetUrl;
|
|
1322
|
-
/** Atlas JSON next to the sheet. */
|
|
1323
|
-
atlas?: AssetUrl;
|
|
1324
|
-
/** Sub-texture name within the atlas. */
|
|
1325
|
-
sprite?: string;
|
|
1326
|
-
}
|
|
1327
|
-
declare const CharacterKitLayerSchema: z.ZodObject<{
|
|
1328
|
-
slot: z.ZodEnum<["body", "head", "face", "hair", "facialHair", "shirt", "pants", "shoes", "accessory"]>;
|
|
1329
|
-
url: z.ZodString;
|
|
1330
|
-
atlas: z.ZodOptional<z.ZodString>;
|
|
1331
|
-
sprite: z.ZodOptional<z.ZodString>;
|
|
1332
|
-
}, "strip", z.ZodTypeAny, {
|
|
1333
|
-
slot: "body" | "head" | "face" | "hair" | "facialHair" | "shirt" | "pants" | "shoes" | "accessory";
|
|
1334
|
-
url: string;
|
|
1335
|
-
atlas?: string | undefined;
|
|
1336
|
-
sprite?: string | undefined;
|
|
1337
|
-
}, {
|
|
1338
|
-
slot: "body" | "head" | "face" | "hair" | "facialHair" | "shirt" | "pants" | "shoes" | "accessory";
|
|
1339
|
-
url: string;
|
|
1340
|
-
atlas?: string | undefined;
|
|
1341
|
-
sprite?: string | undefined;
|
|
1342
|
-
}>;
|
|
1343
|
-
/** A recognized modular-character pack: an ordered, back-to-front layer stack. */
|
|
1344
|
-
interface CharacterKit {
|
|
1345
|
-
/** Source pack slug the kit came from. */
|
|
1346
|
-
pack: string;
|
|
1347
|
-
/** Layers in back-to-front draw order. */
|
|
1348
|
-
layers: CharacterKitLayer[];
|
|
1349
|
-
}
|
|
1350
|
-
declare const CharacterKitSchema: z.ZodObject<{
|
|
1351
|
-
pack: z.ZodString;
|
|
1352
|
-
layers: z.ZodArray<z.ZodObject<{
|
|
1353
|
-
slot: z.ZodEnum<["body", "head", "face", "hair", "facialHair", "shirt", "pants", "shoes", "accessory"]>;
|
|
1354
|
-
url: z.ZodString;
|
|
1355
|
-
atlas: z.ZodOptional<z.ZodString>;
|
|
1356
|
-
sprite: z.ZodOptional<z.ZodString>;
|
|
1357
|
-
}, "strip", z.ZodTypeAny, {
|
|
1358
|
-
slot: "body" | "head" | "face" | "hair" | "facialHair" | "shirt" | "pants" | "shoes" | "accessory";
|
|
1359
|
-
url: string;
|
|
1360
|
-
atlas?: string | undefined;
|
|
1361
|
-
sprite?: string | undefined;
|
|
1362
|
-
}, {
|
|
1363
|
-
slot: "body" | "head" | "face" | "hair" | "facialHair" | "shirt" | "pants" | "shoes" | "accessory";
|
|
1364
|
-
url: string;
|
|
1365
|
-
atlas?: string | undefined;
|
|
1366
|
-
sprite?: string | undefined;
|
|
1367
|
-
}>, "many">;
|
|
1368
|
-
}, "strip", z.ZodTypeAny, {
|
|
1369
|
-
pack: string;
|
|
1370
|
-
layers: {
|
|
1371
|
-
slot: "body" | "head" | "face" | "hair" | "facialHair" | "shirt" | "pants" | "shoes" | "accessory";
|
|
1372
|
-
url: string;
|
|
1373
|
-
atlas?: string | undefined;
|
|
1374
|
-
sprite?: string | undefined;
|
|
1375
|
-
}[];
|
|
1376
|
-
}, {
|
|
1377
|
-
pack: string;
|
|
1378
|
-
layers: {
|
|
1379
|
-
slot: "body" | "head" | "face" | "hair" | "facialHair" | "shirt" | "pants" | "shoes" | "accessory";
|
|
1380
|
-
url: string;
|
|
1381
|
-
atlas?: string | undefined;
|
|
1382
|
-
sprite?: string | undefined;
|
|
1383
|
-
}[];
|
|
1384
|
-
}>;
|
|
1385
1296
|
/**
|
|
1386
1297
|
* Semantic reference to an asset (not a hardcoded path).
|
|
1387
1298
|
* Resolved to actual paths at compile time via asset maps.
|
|
1388
1299
|
*/
|
|
1389
1300
|
interface SemanticAssetRef {
|
|
1390
|
-
/**
|
|
1391
|
-
|
|
1301
|
+
/**
|
|
1302
|
+
* Entity role — a free string. Core no longer constrains the vocabulary to
|
|
1303
|
+
* `EntityRole` (that enum stays an exported shared reference for the asset
|
|
1304
|
+
* tool + renderer); genre boards may use their own roles (`boss`, `tower`, …).
|
|
1305
|
+
*/
|
|
1306
|
+
role: string;
|
|
1392
1307
|
/** Sub-category within role (hero, slime, coin, etc.) */
|
|
1393
1308
|
category: string;
|
|
1394
1309
|
/** Required animations for this entity */
|
|
@@ -1403,7 +1318,7 @@ interface SemanticAssetRef {
|
|
|
1403
1318
|
aspect?: AssetAspect;
|
|
1404
1319
|
}
|
|
1405
1320
|
declare const SemanticAssetRefSchema: z.ZodObject<{
|
|
1406
|
-
role: z.
|
|
1321
|
+
role: z.ZodString;
|
|
1407
1322
|
category: z.ZodString;
|
|
1408
1323
|
animations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1409
1324
|
style: z.ZodOptional<z.ZodEnum<["pixel", "vector", "hd", "1-bit", "isometric"]>>;
|
|
@@ -1411,7 +1326,7 @@ declare const SemanticAssetRefSchema: z.ZodObject<{
|
|
|
1411
1326
|
dimension: z.ZodOptional<z.ZodEnum<["2d", "3d"]>>;
|
|
1412
1327
|
aspect: z.ZodOptional<z.ZodEnum<["1:1", "16:9", "5:7", "8:1"]>>;
|
|
1413
1328
|
}, "strip", z.ZodTypeAny, {
|
|
1414
|
-
role:
|
|
1329
|
+
role: string;
|
|
1415
1330
|
category: string;
|
|
1416
1331
|
animations?: string[] | undefined;
|
|
1417
1332
|
style?: "pixel" | "vector" | "hd" | "1-bit" | "isometric" | undefined;
|
|
@@ -1419,7 +1334,7 @@ declare const SemanticAssetRefSchema: z.ZodObject<{
|
|
|
1419
1334
|
dimension?: "2d" | "3d" | undefined;
|
|
1420
1335
|
aspect?: "1:1" | "16:9" | "5:7" | "8:1" | undefined;
|
|
1421
1336
|
}, {
|
|
1422
|
-
role:
|
|
1337
|
+
role: string;
|
|
1423
1338
|
category: string;
|
|
1424
1339
|
animations?: string[] | undefined;
|
|
1425
1340
|
style?: "pixel" | "vector" | "hd" | "1-bit" | "isometric" | undefined;
|
|
@@ -1457,7 +1372,7 @@ interface Asset extends SemanticAssetRef {
|
|
|
1457
1372
|
thumbnailUrl?: string;
|
|
1458
1373
|
}
|
|
1459
1374
|
declare const AssetSchema: z.ZodObject<{
|
|
1460
|
-
role: z.
|
|
1375
|
+
role: z.ZodString;
|
|
1461
1376
|
category: z.ZodString;
|
|
1462
1377
|
animations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1463
1378
|
style: z.ZodOptional<z.ZodEnum<["pixel", "vector", "hd", "1-bit", "isometric"]>>;
|
|
@@ -1472,249 +1387,31 @@ declare const AssetSchema: z.ZodObject<{
|
|
|
1472
1387
|
thumbnailUrl: z.ZodOptional<z.ZodString>;
|
|
1473
1388
|
}, "strip", z.ZodTypeAny, {
|
|
1474
1389
|
url: string;
|
|
1475
|
-
role:
|
|
1390
|
+
role: string;
|
|
1476
1391
|
category: string;
|
|
1477
1392
|
name?: string | undefined;
|
|
1478
1393
|
animations?: string[] | undefined;
|
|
1479
|
-
atlas?: string | undefined;
|
|
1480
|
-
sprite?: string | undefined;
|
|
1481
1394
|
style?: "pixel" | "vector" | "hd" | "1-bit" | "isometric" | undefined;
|
|
1482
1395
|
variant?: string | undefined;
|
|
1483
1396
|
dimension?: "2d" | "3d" | undefined;
|
|
1484
1397
|
aspect?: "1:1" | "16:9" | "5:7" | "8:1" | undefined;
|
|
1398
|
+
atlas?: string | undefined;
|
|
1399
|
+
sprite?: string | undefined;
|
|
1485
1400
|
thumbnailUrl?: string | undefined;
|
|
1486
1401
|
}, {
|
|
1487
1402
|
url: string;
|
|
1488
|
-
role:
|
|
1403
|
+
role: string;
|
|
1489
1404
|
category: string;
|
|
1490
1405
|
name?: string | undefined;
|
|
1491
1406
|
animations?: string[] | undefined;
|
|
1492
|
-
atlas?: string | undefined;
|
|
1493
|
-
sprite?: string | undefined;
|
|
1494
1407
|
style?: "pixel" | "vector" | "hd" | "1-bit" | "isometric" | undefined;
|
|
1495
1408
|
variant?: string | undefined;
|
|
1496
1409
|
dimension?: "2d" | "3d" | undefined;
|
|
1497
1410
|
aspect?: "1:1" | "16:9" | "5:7" | "8:1" | undefined;
|
|
1411
|
+
atlas?: string | undefined;
|
|
1412
|
+
sprite?: string | undefined;
|
|
1498
1413
|
thumbnailUrl?: string | undefined;
|
|
1499
1414
|
}>;
|
|
1500
|
-
/**
|
|
1501
|
-
* Result of resolving a SemanticAssetRef to actual asset paths
|
|
1502
|
-
*/
|
|
1503
|
-
interface ResolvedAsset {
|
|
1504
|
-
/** Base path to the asset pack */
|
|
1505
|
-
basePath: string;
|
|
1506
|
-
/** Relative path within the pack */
|
|
1507
|
-
path: string;
|
|
1508
|
-
/** Tile indices for tilesheet-based assets */
|
|
1509
|
-
tiles?: number[];
|
|
1510
|
-
/** Size of each tile in pixels */
|
|
1511
|
-
tileSize?: number;
|
|
1512
|
-
/** List of individual files (for non-tilesheet assets) */
|
|
1513
|
-
files?: string[];
|
|
1514
|
-
/** Animation definitions by name */
|
|
1515
|
-
animations?: Record<string, AnimationDef>;
|
|
1516
|
-
}
|
|
1517
|
-
declare const ResolvedAssetSchema: z.ZodObject<{
|
|
1518
|
-
basePath: z.ZodString;
|
|
1519
|
-
path: z.ZodString;
|
|
1520
|
-
tiles: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
1521
|
-
tileSize: z.ZodOptional<z.ZodNumber>;
|
|
1522
|
-
files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1523
|
-
animations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1524
|
-
row: z.ZodNumber;
|
|
1525
|
-
frames: z.ZodNumber;
|
|
1526
|
-
frameRate: z.ZodNumber;
|
|
1527
|
-
loop: z.ZodBoolean;
|
|
1528
|
-
}, "strip", z.ZodTypeAny, {
|
|
1529
|
-
row: number;
|
|
1530
|
-
frames: number;
|
|
1531
|
-
frameRate: number;
|
|
1532
|
-
loop: boolean;
|
|
1533
|
-
}, {
|
|
1534
|
-
row: number;
|
|
1535
|
-
frames: number;
|
|
1536
|
-
frameRate: number;
|
|
1537
|
-
loop: boolean;
|
|
1538
|
-
}>>>;
|
|
1539
|
-
}, "strip", z.ZodTypeAny, {
|
|
1540
|
-
path: string;
|
|
1541
|
-
basePath: string;
|
|
1542
|
-
animations?: Record<string, {
|
|
1543
|
-
row: number;
|
|
1544
|
-
frames: number;
|
|
1545
|
-
frameRate: number;
|
|
1546
|
-
loop: boolean;
|
|
1547
|
-
}> | undefined;
|
|
1548
|
-
tiles?: number[] | undefined;
|
|
1549
|
-
tileSize?: number | undefined;
|
|
1550
|
-
files?: string[] | undefined;
|
|
1551
|
-
}, {
|
|
1552
|
-
path: string;
|
|
1553
|
-
basePath: string;
|
|
1554
|
-
animations?: Record<string, {
|
|
1555
|
-
row: number;
|
|
1556
|
-
frames: number;
|
|
1557
|
-
frameRate: number;
|
|
1558
|
-
loop: boolean;
|
|
1559
|
-
}> | undefined;
|
|
1560
|
-
tiles?: number[] | undefined;
|
|
1561
|
-
tileSize?: number | undefined;
|
|
1562
|
-
files?: string[] | undefined;
|
|
1563
|
-
}>;
|
|
1564
|
-
/**
|
|
1565
|
-
* Single asset mapping entry in an asset map
|
|
1566
|
-
*/
|
|
1567
|
-
interface AssetMapping {
|
|
1568
|
-
/** Relative path to the asset */
|
|
1569
|
-
path: string;
|
|
1570
|
-
/** Tile indices for tilesheets */
|
|
1571
|
-
tiles?: number[];
|
|
1572
|
-
/** Tile size in pixels */
|
|
1573
|
-
tileSize?: number;
|
|
1574
|
-
/** Individual file patterns */
|
|
1575
|
-
files?: string[];
|
|
1576
|
-
/** Animation definitions */
|
|
1577
|
-
animations?: Record<string, AnimationDef>;
|
|
1578
|
-
}
|
|
1579
|
-
declare const AssetMappingSchema: z.ZodObject<{
|
|
1580
|
-
path: z.ZodString;
|
|
1581
|
-
tiles: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
1582
|
-
tileSize: z.ZodOptional<z.ZodNumber>;
|
|
1583
|
-
files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1584
|
-
animations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1585
|
-
row: z.ZodNumber;
|
|
1586
|
-
frames: z.ZodNumber;
|
|
1587
|
-
frameRate: z.ZodNumber;
|
|
1588
|
-
loop: z.ZodBoolean;
|
|
1589
|
-
}, "strip", z.ZodTypeAny, {
|
|
1590
|
-
row: number;
|
|
1591
|
-
frames: number;
|
|
1592
|
-
frameRate: number;
|
|
1593
|
-
loop: boolean;
|
|
1594
|
-
}, {
|
|
1595
|
-
row: number;
|
|
1596
|
-
frames: number;
|
|
1597
|
-
frameRate: number;
|
|
1598
|
-
loop: boolean;
|
|
1599
|
-
}>>>;
|
|
1600
|
-
}, "strip", z.ZodTypeAny, {
|
|
1601
|
-
path: string;
|
|
1602
|
-
animations?: Record<string, {
|
|
1603
|
-
row: number;
|
|
1604
|
-
frames: number;
|
|
1605
|
-
frameRate: number;
|
|
1606
|
-
loop: boolean;
|
|
1607
|
-
}> | undefined;
|
|
1608
|
-
tiles?: number[] | undefined;
|
|
1609
|
-
tileSize?: number | undefined;
|
|
1610
|
-
files?: string[] | undefined;
|
|
1611
|
-
}, {
|
|
1612
|
-
path: string;
|
|
1613
|
-
animations?: Record<string, {
|
|
1614
|
-
row: number;
|
|
1615
|
-
frames: number;
|
|
1616
|
-
frameRate: number;
|
|
1617
|
-
loop: boolean;
|
|
1618
|
-
}> | undefined;
|
|
1619
|
-
tiles?: number[] | undefined;
|
|
1620
|
-
tileSize?: number | undefined;
|
|
1621
|
-
files?: string[] | undefined;
|
|
1622
|
-
}>;
|
|
1623
|
-
/**
|
|
1624
|
-
* Asset map for a specific game type and visual style.
|
|
1625
|
-
* Maps semantic keys (role:category) to asset paths.
|
|
1626
|
-
*/
|
|
1627
|
-
interface AssetMap {
|
|
1628
|
-
/** Game type this map is for */
|
|
1629
|
-
gameType: GameType;
|
|
1630
|
-
/** Visual style this map is for */
|
|
1631
|
-
style: VisualStyle;
|
|
1632
|
-
/** Base path to the asset pack */
|
|
1633
|
-
basePath: string;
|
|
1634
|
-
/** Mappings from semantic keys to asset paths */
|
|
1635
|
-
mappings: Record<string, AssetMapping>;
|
|
1636
|
-
}
|
|
1637
|
-
declare const AssetMapSchema: z.ZodObject<{
|
|
1638
|
-
gameType: z.ZodEnum<["platformer", "roguelike", "top-down", "puzzle", "racing", "card", "board", "shooter", "rpg"]>;
|
|
1639
|
-
style: z.ZodEnum<["pixel", "vector", "hd", "1-bit", "isometric"]>;
|
|
1640
|
-
basePath: z.ZodString;
|
|
1641
|
-
mappings: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1642
|
-
path: z.ZodString;
|
|
1643
|
-
tiles: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
1644
|
-
tileSize: z.ZodOptional<z.ZodNumber>;
|
|
1645
|
-
files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1646
|
-
animations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1647
|
-
row: z.ZodNumber;
|
|
1648
|
-
frames: z.ZodNumber;
|
|
1649
|
-
frameRate: z.ZodNumber;
|
|
1650
|
-
loop: z.ZodBoolean;
|
|
1651
|
-
}, "strip", z.ZodTypeAny, {
|
|
1652
|
-
row: number;
|
|
1653
|
-
frames: number;
|
|
1654
|
-
frameRate: number;
|
|
1655
|
-
loop: boolean;
|
|
1656
|
-
}, {
|
|
1657
|
-
row: number;
|
|
1658
|
-
frames: number;
|
|
1659
|
-
frameRate: number;
|
|
1660
|
-
loop: boolean;
|
|
1661
|
-
}>>>;
|
|
1662
|
-
}, "strip", z.ZodTypeAny, {
|
|
1663
|
-
path: string;
|
|
1664
|
-
animations?: Record<string, {
|
|
1665
|
-
row: number;
|
|
1666
|
-
frames: number;
|
|
1667
|
-
frameRate: number;
|
|
1668
|
-
loop: boolean;
|
|
1669
|
-
}> | undefined;
|
|
1670
|
-
tiles?: number[] | undefined;
|
|
1671
|
-
tileSize?: number | undefined;
|
|
1672
|
-
files?: string[] | undefined;
|
|
1673
|
-
}, {
|
|
1674
|
-
path: string;
|
|
1675
|
-
animations?: Record<string, {
|
|
1676
|
-
row: number;
|
|
1677
|
-
frames: number;
|
|
1678
|
-
frameRate: number;
|
|
1679
|
-
loop: boolean;
|
|
1680
|
-
}> | undefined;
|
|
1681
|
-
tiles?: number[] | undefined;
|
|
1682
|
-
tileSize?: number | undefined;
|
|
1683
|
-
files?: string[] | undefined;
|
|
1684
|
-
}>>;
|
|
1685
|
-
}, "strip", z.ZodTypeAny, {
|
|
1686
|
-
style: "pixel" | "vector" | "hd" | "1-bit" | "isometric";
|
|
1687
|
-
basePath: string;
|
|
1688
|
-
gameType: "platformer" | "roguelike" | "top-down" | "puzzle" | "racing" | "card" | "board" | "shooter" | "rpg";
|
|
1689
|
-
mappings: Record<string, {
|
|
1690
|
-
path: string;
|
|
1691
|
-
animations?: Record<string, {
|
|
1692
|
-
row: number;
|
|
1693
|
-
frames: number;
|
|
1694
|
-
frameRate: number;
|
|
1695
|
-
loop: boolean;
|
|
1696
|
-
}> | undefined;
|
|
1697
|
-
tiles?: number[] | undefined;
|
|
1698
|
-
tileSize?: number | undefined;
|
|
1699
|
-
files?: string[] | undefined;
|
|
1700
|
-
}>;
|
|
1701
|
-
}, {
|
|
1702
|
-
style: "pixel" | "vector" | "hd" | "1-bit" | "isometric";
|
|
1703
|
-
basePath: string;
|
|
1704
|
-
gameType: "platformer" | "roguelike" | "top-down" | "puzzle" | "racing" | "card" | "board" | "shooter" | "rpg";
|
|
1705
|
-
mappings: Record<string, {
|
|
1706
|
-
path: string;
|
|
1707
|
-
animations?: Record<string, {
|
|
1708
|
-
row: number;
|
|
1709
|
-
frames: number;
|
|
1710
|
-
frameRate: number;
|
|
1711
|
-
loop: boolean;
|
|
1712
|
-
}> | undefined;
|
|
1713
|
-
tiles?: number[] | undefined;
|
|
1714
|
-
tileSize?: number | undefined;
|
|
1715
|
-
files?: string[] | undefined;
|
|
1716
|
-
}>;
|
|
1717
|
-
}>;
|
|
1718
1415
|
/**
|
|
1719
1416
|
* Single browsable asset in the inspector picker catalog.
|
|
1720
1417
|
* Backs the asset/icon pickers — a flat list the inspector renders for
|
|
@@ -1802,10 +1499,113 @@ declare const AssetCatalogSchema: z.ZodArray<z.ZodObject<{
|
|
|
1802
1499
|
* friction would buy nothing; the value is the marker the tool finds.
|
|
1803
1500
|
*/
|
|
1804
1501
|
type AssetUrl = string;
|
|
1502
|
+
/**
|
|
1503
|
+
* A neutral position in scene space: 2D (`x`,`y`) or optionally 3D (`x`,`y`,`z`).
|
|
1504
|
+
* The single coordinate type shared by every drawable descriptor and camera pose
|
|
1505
|
+
* across the 2D and 3D canvas hosts, so a scene composes from the same `{x,y,z?}`
|
|
1506
|
+
* regardless of projection or painter. Logical, not pixel — the host's projector
|
|
1507
|
+
* maps a `ScenePos` to screen space.
|
|
1508
|
+
*/
|
|
1509
|
+
interface ScenePos {
|
|
1510
|
+
x: number;
|
|
1511
|
+
y: number;
|
|
1512
|
+
z?: number;
|
|
1513
|
+
}
|
|
1514
|
+
declare const ScenePosSchema: z.ZodObject<{
|
|
1515
|
+
x: z.ZodNumber;
|
|
1516
|
+
y: z.ZodNumber;
|
|
1517
|
+
z: z.ZodOptional<z.ZodNumber>;
|
|
1518
|
+
}, "strip", z.ZodTypeAny, {
|
|
1519
|
+
x: number;
|
|
1520
|
+
y: number;
|
|
1521
|
+
z?: number | undefined;
|
|
1522
|
+
}, {
|
|
1523
|
+
x: number;
|
|
1524
|
+
y: number;
|
|
1525
|
+
z?: number | undefined;
|
|
1526
|
+
}>;
|
|
1527
|
+
/**
|
|
1528
|
+
* Camera behaviors, unifying the former per-host vocab (2D `camera` string +
|
|
1529
|
+
* 3D `cameraMode`). `isometric`/`top-down` are fixed framings; `follow`/`chase`
|
|
1530
|
+
* track a target; `perspective` is the 3D dramatic framing.
|
|
1531
|
+
*/
|
|
1532
|
+
declare const CAMERA_MODES: readonly ["isometric", "perspective", "top-down", "follow", "chase"];
|
|
1533
|
+
type CameraMode = (typeof CAMERA_MODES)[number];
|
|
1534
|
+
declare const CameraModeSchema: z.ZodEnum<["isometric", "perspective", "top-down", "follow", "chase"]>;
|
|
1535
|
+
/**
|
|
1536
|
+
* A neutral camera pose shared by the 2D and 3D canvas hosts, so `type: canvas`
|
|
1537
|
+
* carries one camera object regardless of painter. `pos`/`target` are `ScenePos`
|
|
1538
|
+
* (logical scene space, not pixels); `zoom` scales the view (the former `scale`);
|
|
1539
|
+
* `fov` is the 3D field of view; `mode` selects the framing/tracking behavior.
|
|
1540
|
+
* Every field is optional — an omitted camera means the host's default framing.
|
|
1541
|
+
*/
|
|
1542
|
+
interface Camera {
|
|
1543
|
+
pos?: ScenePos;
|
|
1544
|
+
target?: ScenePos;
|
|
1545
|
+
zoom?: number;
|
|
1546
|
+
fov?: number;
|
|
1547
|
+
mode?: CameraMode;
|
|
1548
|
+
}
|
|
1549
|
+
declare const CameraSchema: z.ZodObject<{
|
|
1550
|
+
pos: z.ZodOptional<z.ZodObject<{
|
|
1551
|
+
x: z.ZodNumber;
|
|
1552
|
+
y: z.ZodNumber;
|
|
1553
|
+
z: z.ZodOptional<z.ZodNumber>;
|
|
1554
|
+
}, "strip", z.ZodTypeAny, {
|
|
1555
|
+
x: number;
|
|
1556
|
+
y: number;
|
|
1557
|
+
z?: number | undefined;
|
|
1558
|
+
}, {
|
|
1559
|
+
x: number;
|
|
1560
|
+
y: number;
|
|
1561
|
+
z?: number | undefined;
|
|
1562
|
+
}>>;
|
|
1563
|
+
target: z.ZodOptional<z.ZodObject<{
|
|
1564
|
+
x: z.ZodNumber;
|
|
1565
|
+
y: z.ZodNumber;
|
|
1566
|
+
z: z.ZodOptional<z.ZodNumber>;
|
|
1567
|
+
}, "strip", z.ZodTypeAny, {
|
|
1568
|
+
x: number;
|
|
1569
|
+
y: number;
|
|
1570
|
+
z?: number | undefined;
|
|
1571
|
+
}, {
|
|
1572
|
+
x: number;
|
|
1573
|
+
y: number;
|
|
1574
|
+
z?: number | undefined;
|
|
1575
|
+
}>>;
|
|
1576
|
+
zoom: z.ZodOptional<z.ZodNumber>;
|
|
1577
|
+
fov: z.ZodOptional<z.ZodNumber>;
|
|
1578
|
+
mode: z.ZodOptional<z.ZodEnum<["isometric", "perspective", "top-down", "follow", "chase"]>>;
|
|
1579
|
+
}, "strip", z.ZodTypeAny, {
|
|
1580
|
+
target?: {
|
|
1581
|
+
x: number;
|
|
1582
|
+
y: number;
|
|
1583
|
+
z?: number | undefined;
|
|
1584
|
+
} | undefined;
|
|
1585
|
+
pos?: {
|
|
1586
|
+
x: number;
|
|
1587
|
+
y: number;
|
|
1588
|
+
z?: number | undefined;
|
|
1589
|
+
} | undefined;
|
|
1590
|
+
zoom?: number | undefined;
|
|
1591
|
+
fov?: number | undefined;
|
|
1592
|
+
mode?: "isometric" | "perspective" | "top-down" | "follow" | "chase" | undefined;
|
|
1593
|
+
}, {
|
|
1594
|
+
target?: {
|
|
1595
|
+
x: number;
|
|
1596
|
+
y: number;
|
|
1597
|
+
z?: number | undefined;
|
|
1598
|
+
} | undefined;
|
|
1599
|
+
pos?: {
|
|
1600
|
+
x: number;
|
|
1601
|
+
y: number;
|
|
1602
|
+
z?: number | undefined;
|
|
1603
|
+
} | undefined;
|
|
1604
|
+
zoom?: number | undefined;
|
|
1605
|
+
fov?: number | undefined;
|
|
1606
|
+
mode?: "isometric" | "perspective" | "top-down" | "follow" | "chase" | undefined;
|
|
1607
|
+
}>;
|
|
1805
1608
|
type SemanticAssetRefInput = z.input<typeof SemanticAssetRefSchema>;
|
|
1806
|
-
type ResolvedAssetInput = z.input<typeof ResolvedAssetSchema>;
|
|
1807
|
-
type AssetMappingInput = z.input<typeof AssetMappingSchema>;
|
|
1808
|
-
type AssetMapInput = z.input<typeof AssetMapSchema>;
|
|
1809
1609
|
type AnimationDefInput = z.input<typeof AnimationDefSchema>;
|
|
1810
1610
|
type AssetCatalogEntryInput = z.input<typeof AssetCatalogEntrySchema>;
|
|
1811
1611
|
type SpriteSheetAtlasInput = z.input<typeof SpriteSheetAtlasSchema>;
|
|
@@ -1933,7 +1733,7 @@ declare const OrbitalEntitySchema: z.ZodObject<{
|
|
|
1933
1733
|
description: z.ZodOptional<z.ZodString>;
|
|
1934
1734
|
visual_prompt: z.ZodOptional<z.ZodString>;
|
|
1935
1735
|
assetRef: z.ZodOptional<z.ZodObject<{
|
|
1936
|
-
role: z.
|
|
1736
|
+
role: z.ZodString;
|
|
1937
1737
|
category: z.ZodString;
|
|
1938
1738
|
animations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1939
1739
|
style: z.ZodOptional<z.ZodEnum<["pixel", "vector", "hd", "1-bit", "isometric"]>>;
|
|
@@ -1941,7 +1741,7 @@ declare const OrbitalEntitySchema: z.ZodObject<{
|
|
|
1941
1741
|
dimension: z.ZodOptional<z.ZodEnum<["2d", "3d"]>>;
|
|
1942
1742
|
aspect: z.ZodOptional<z.ZodEnum<["1:1", "16:9", "5:7", "8:1"]>>;
|
|
1943
1743
|
}, "strip", z.ZodTypeAny, {
|
|
1944
|
-
role:
|
|
1744
|
+
role: string;
|
|
1945
1745
|
category: string;
|
|
1946
1746
|
animations?: string[] | undefined;
|
|
1947
1747
|
style?: "pixel" | "vector" | "hd" | "1-bit" | "isometric" | undefined;
|
|
@@ -1949,7 +1749,7 @@ declare const OrbitalEntitySchema: z.ZodObject<{
|
|
|
1949
1749
|
dimension?: "2d" | "3d" | undefined;
|
|
1950
1750
|
aspect?: "1:1" | "16:9" | "5:7" | "8:1" | undefined;
|
|
1951
1751
|
}, {
|
|
1952
|
-
role:
|
|
1752
|
+
role: string;
|
|
1953
1753
|
category: string;
|
|
1954
1754
|
animations?: string[] | undefined;
|
|
1955
1755
|
style?: "pixel" | "vector" | "hd" | "1-bit" | "isometric" | undefined;
|
|
@@ -1969,7 +1769,7 @@ declare const OrbitalEntitySchema: z.ZodObject<{
|
|
|
1969
1769
|
softDelete?: boolean | undefined;
|
|
1970
1770
|
visual_prompt?: string | undefined;
|
|
1971
1771
|
assetRef?: {
|
|
1972
|
-
role:
|
|
1772
|
+
role: string;
|
|
1973
1773
|
category: string;
|
|
1974
1774
|
animations?: string[] | undefined;
|
|
1975
1775
|
style?: "pixel" | "vector" | "hd" | "1-bit" | "isometric" | undefined;
|
|
@@ -1989,7 +1789,7 @@ declare const OrbitalEntitySchema: z.ZodObject<{
|
|
|
1989
1789
|
softDelete?: boolean | undefined;
|
|
1990
1790
|
visual_prompt?: string | undefined;
|
|
1991
1791
|
assetRef?: {
|
|
1992
|
-
role:
|
|
1792
|
+
role: string;
|
|
1993
1793
|
category: string;
|
|
1994
1794
|
animations?: string[] | undefined;
|
|
1995
1795
|
style?: "pixel" | "vector" | "hd" | "1-bit" | "isometric" | undefined;
|
|
@@ -2014,7 +1814,7 @@ declare const EntitySchema: z.ZodObject<{
|
|
|
2014
1814
|
description: z.ZodOptional<z.ZodString>;
|
|
2015
1815
|
visual_prompt: z.ZodOptional<z.ZodString>;
|
|
2016
1816
|
assetRef: z.ZodOptional<z.ZodObject<{
|
|
2017
|
-
role: z.
|
|
1817
|
+
role: z.ZodString;
|
|
2018
1818
|
category: z.ZodString;
|
|
2019
1819
|
animations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2020
1820
|
style: z.ZodOptional<z.ZodEnum<["pixel", "vector", "hd", "1-bit", "isometric"]>>;
|
|
@@ -2022,7 +1822,7 @@ declare const EntitySchema: z.ZodObject<{
|
|
|
2022
1822
|
dimension: z.ZodOptional<z.ZodEnum<["2d", "3d"]>>;
|
|
2023
1823
|
aspect: z.ZodOptional<z.ZodEnum<["1:1", "16:9", "5:7", "8:1"]>>;
|
|
2024
1824
|
}, "strip", z.ZodTypeAny, {
|
|
2025
|
-
role:
|
|
1825
|
+
role: string;
|
|
2026
1826
|
category: string;
|
|
2027
1827
|
animations?: string[] | undefined;
|
|
2028
1828
|
style?: "pixel" | "vector" | "hd" | "1-bit" | "isometric" | undefined;
|
|
@@ -2030,7 +1830,7 @@ declare const EntitySchema: z.ZodObject<{
|
|
|
2030
1830
|
dimension?: "2d" | "3d" | undefined;
|
|
2031
1831
|
aspect?: "1:1" | "16:9" | "5:7" | "8:1" | undefined;
|
|
2032
1832
|
}, {
|
|
2033
|
-
role:
|
|
1833
|
+
role: string;
|
|
2034
1834
|
category: string;
|
|
2035
1835
|
animations?: string[] | undefined;
|
|
2036
1836
|
style?: "pixel" | "vector" | "hd" | "1-bit" | "isometric" | undefined;
|
|
@@ -2050,7 +1850,7 @@ declare const EntitySchema: z.ZodObject<{
|
|
|
2050
1850
|
softDelete?: boolean | undefined;
|
|
2051
1851
|
visual_prompt?: string | undefined;
|
|
2052
1852
|
assetRef?: {
|
|
2053
|
-
role:
|
|
1853
|
+
role: string;
|
|
2054
1854
|
category: string;
|
|
2055
1855
|
animations?: string[] | undefined;
|
|
2056
1856
|
style?: "pixel" | "vector" | "hd" | "1-bit" | "isometric" | undefined;
|
|
@@ -2070,7 +1870,7 @@ declare const EntitySchema: z.ZodObject<{
|
|
|
2070
1870
|
softDelete?: boolean | undefined;
|
|
2071
1871
|
visual_prompt?: string | undefined;
|
|
2072
1872
|
assetRef?: {
|
|
2073
|
-
role:
|
|
1873
|
+
role: string;
|
|
2074
1874
|
category: string;
|
|
2075
1875
|
animations?: string[] | undefined;
|
|
2076
1876
|
style?: "pixel" | "vector" | "hd" | "1-bit" | "isometric" | undefined;
|
|
@@ -2200,22 +2000,6 @@ declare const UI_SLOTS: readonly ["main", "sidebar", "modal", "drawer", "overlay
|
|
|
2200
2000
|
type UISlot = (typeof UI_SLOTS)[number];
|
|
2201
2001
|
declare const UISlotSchema: z.ZodEnum<["main", "sidebar", "modal", "drawer", "overlay", "center", "toast", "floating", "system", "content", "screen", "hud", "hud-top", "hud-bottom", "hud.health", "hud.score", "hud.inventory", "hud.stamina", "overlay.inventory", "overlay.dialogue", "overlay.menu", "overlay.pause"]>;
|
|
2202
2002
|
|
|
2203
|
-
/**
|
|
2204
|
-
* Configuration for render-ui effect.
|
|
2205
|
-
* Used in runtime to specify which slot and pattern to render.
|
|
2206
|
-
*/
|
|
2207
|
-
interface RenderUIConfig {
|
|
2208
|
-
/** Target UI slot */
|
|
2209
|
-
slot: UISlot;
|
|
2210
|
-
/** Pattern configuration (null clears the slot) */
|
|
2211
|
-
pattern: AnyPatternConfig | null;
|
|
2212
|
-
/** Target element (trait name or entity ID) */
|
|
2213
|
-
target?: string;
|
|
2214
|
-
/** Additional props for the pattern */
|
|
2215
|
-
props?: ResolvedPatternProps;
|
|
2216
|
-
/** Optional priority for slot ordering */
|
|
2217
|
-
priority?: number;
|
|
2218
|
-
}
|
|
2219
2003
|
/**
|
|
2220
2004
|
* Configuration extracted from call-service effects
|
|
2221
2005
|
*/
|
|
@@ -2255,8 +2039,9 @@ type RenderUIEffect = ['render-ui', UISlot, AnyPatternConfig] | ['render-ui', UI
|
|
|
2255
2039
|
*/
|
|
2256
2040
|
type RenderItemLambda = ['fn', string, AnyPatternConfig];
|
|
2257
2041
|
/**
|
|
2258
|
-
* Navigate effect - navigates to
|
|
2042
|
+
* Navigate effect - navigates to an internal page path or an external URL.
|
|
2259
2043
|
* @example ['navigate', '/tasks'] or ['navigate', '/tasks/:id', { id: '123' }]
|
|
2044
|
+
* @example ['navigate', 'https://example.com']
|
|
2260
2045
|
*/
|
|
2261
2046
|
type NavigateEffect = ['navigate', string] | ['navigate', string, Record<string, string>];
|
|
2262
2047
|
/**
|
|
@@ -4684,7 +4469,7 @@ declare const TraitSchema: z.ZodObject<{
|
|
|
4684
4469
|
description: z.ZodOptional<z.ZodString>;
|
|
4685
4470
|
visual_prompt: z.ZodOptional<z.ZodString>;
|
|
4686
4471
|
assetRef: z.ZodOptional<z.ZodObject<{
|
|
4687
|
-
role: z.
|
|
4472
|
+
role: z.ZodString;
|
|
4688
4473
|
category: z.ZodString;
|
|
4689
4474
|
animations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4690
4475
|
style: z.ZodOptional<z.ZodEnum<["pixel", "vector", "hd", "1-bit", "isometric"]>>;
|
|
@@ -4692,7 +4477,7 @@ declare const TraitSchema: z.ZodObject<{
|
|
|
4692
4477
|
dimension: z.ZodOptional<z.ZodEnum<["2d", "3d"]>>;
|
|
4693
4478
|
aspect: z.ZodOptional<z.ZodEnum<["1:1", "16:9", "5:7", "8:1"]>>;
|
|
4694
4479
|
}, "strip", z.ZodTypeAny, {
|
|
4695
|
-
role:
|
|
4480
|
+
role: string;
|
|
4696
4481
|
category: string;
|
|
4697
4482
|
animations?: string[] | undefined;
|
|
4698
4483
|
style?: "pixel" | "vector" | "hd" | "1-bit" | "isometric" | undefined;
|
|
@@ -4700,7 +4485,7 @@ declare const TraitSchema: z.ZodObject<{
|
|
|
4700
4485
|
dimension?: "2d" | "3d" | undefined;
|
|
4701
4486
|
aspect?: "1:1" | "16:9" | "5:7" | "8:1" | undefined;
|
|
4702
4487
|
}, {
|
|
4703
|
-
role:
|
|
4488
|
+
role: string;
|
|
4704
4489
|
category: string;
|
|
4705
4490
|
animations?: string[] | undefined;
|
|
4706
4491
|
style?: "pixel" | "vector" | "hd" | "1-bit" | "isometric" | undefined;
|
|
@@ -4720,7 +4505,7 @@ declare const TraitSchema: z.ZodObject<{
|
|
|
4720
4505
|
softDelete?: boolean | undefined;
|
|
4721
4506
|
visual_prompt?: string | undefined;
|
|
4722
4507
|
assetRef?: {
|
|
4723
|
-
role:
|
|
4508
|
+
role: string;
|
|
4724
4509
|
category: string;
|
|
4725
4510
|
animations?: string[] | undefined;
|
|
4726
4511
|
style?: "pixel" | "vector" | "hd" | "1-bit" | "isometric" | undefined;
|
|
@@ -4740,7 +4525,7 @@ declare const TraitSchema: z.ZodObject<{
|
|
|
4740
4525
|
softDelete?: boolean | undefined;
|
|
4741
4526
|
visual_prompt?: string | undefined;
|
|
4742
4527
|
assetRef?: {
|
|
4743
|
-
role:
|
|
4528
|
+
role: string;
|
|
4744
4529
|
category: string;
|
|
4745
4530
|
animations?: string[] | undefined;
|
|
4746
4531
|
style?: "pixel" | "vector" | "hd" | "1-bit" | "isometric" | undefined;
|
|
@@ -4888,7 +4673,7 @@ declare const TraitSchema: z.ZodObject<{
|
|
|
4888
4673
|
softDelete?: boolean | undefined;
|
|
4889
4674
|
visual_prompt?: string | undefined;
|
|
4890
4675
|
assetRef?: {
|
|
4891
|
-
role:
|
|
4676
|
+
role: string;
|
|
4892
4677
|
category: string;
|
|
4893
4678
|
animations?: string[] | undefined;
|
|
4894
4679
|
style?: "pixel" | "vector" | "hd" | "1-bit" | "isometric" | undefined;
|
|
@@ -5036,7 +4821,7 @@ declare const TraitSchema: z.ZodObject<{
|
|
|
5036
4821
|
softDelete?: boolean | undefined;
|
|
5037
4822
|
visual_prompt?: string | undefined;
|
|
5038
4823
|
assetRef?: {
|
|
5039
|
-
role:
|
|
4824
|
+
role: string;
|
|
5040
4825
|
category: string;
|
|
5041
4826
|
animations?: string[] | undefined;
|
|
5042
4827
|
style?: "pixel" | "vector" | "hd" | "1-bit" | "isometric" | undefined;
|
|
@@ -5544,7 +5329,7 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
|
5544
5329
|
description: z.ZodOptional<z.ZodString>;
|
|
5545
5330
|
visual_prompt: z.ZodOptional<z.ZodString>;
|
|
5546
5331
|
assetRef: z.ZodOptional<z.ZodObject<{
|
|
5547
|
-
role: z.
|
|
5332
|
+
role: z.ZodString;
|
|
5548
5333
|
category: z.ZodString;
|
|
5549
5334
|
animations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
5550
5335
|
style: z.ZodOptional<z.ZodEnum<["pixel", "vector", "hd", "1-bit", "isometric"]>>;
|
|
@@ -5552,7 +5337,7 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
|
5552
5337
|
dimension: z.ZodOptional<z.ZodEnum<["2d", "3d"]>>;
|
|
5553
5338
|
aspect: z.ZodOptional<z.ZodEnum<["1:1", "16:9", "5:7", "8:1"]>>;
|
|
5554
5339
|
}, "strip", z.ZodTypeAny, {
|
|
5555
|
-
role:
|
|
5340
|
+
role: string;
|
|
5556
5341
|
category: string;
|
|
5557
5342
|
animations?: string[] | undefined;
|
|
5558
5343
|
style?: "pixel" | "vector" | "hd" | "1-bit" | "isometric" | undefined;
|
|
@@ -5560,7 +5345,7 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
|
5560
5345
|
dimension?: "2d" | "3d" | undefined;
|
|
5561
5346
|
aspect?: "1:1" | "16:9" | "5:7" | "8:1" | undefined;
|
|
5562
5347
|
}, {
|
|
5563
|
-
role:
|
|
5348
|
+
role: string;
|
|
5564
5349
|
category: string;
|
|
5565
5350
|
animations?: string[] | undefined;
|
|
5566
5351
|
style?: "pixel" | "vector" | "hd" | "1-bit" | "isometric" | undefined;
|
|
@@ -5580,7 +5365,7 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
|
5580
5365
|
softDelete?: boolean | undefined;
|
|
5581
5366
|
visual_prompt?: string | undefined;
|
|
5582
5367
|
assetRef?: {
|
|
5583
|
-
role:
|
|
5368
|
+
role: string;
|
|
5584
5369
|
category: string;
|
|
5585
5370
|
animations?: string[] | undefined;
|
|
5586
5371
|
style?: "pixel" | "vector" | "hd" | "1-bit" | "isometric" | undefined;
|
|
@@ -5600,7 +5385,7 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
|
5600
5385
|
softDelete?: boolean | undefined;
|
|
5601
5386
|
visual_prompt?: string | undefined;
|
|
5602
5387
|
assetRef?: {
|
|
5603
|
-
role:
|
|
5388
|
+
role: string;
|
|
5604
5389
|
category: string;
|
|
5605
5390
|
animations?: string[] | undefined;
|
|
5606
5391
|
style?: "pixel" | "vector" | "hd" | "1-bit" | "isometric" | undefined;
|
|
@@ -5748,7 +5533,7 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
|
5748
5533
|
softDelete?: boolean | undefined;
|
|
5749
5534
|
visual_prompt?: string | undefined;
|
|
5750
5535
|
assetRef?: {
|
|
5751
|
-
role:
|
|
5536
|
+
role: string;
|
|
5752
5537
|
category: string;
|
|
5753
5538
|
animations?: string[] | undefined;
|
|
5754
5539
|
style?: "pixel" | "vector" | "hd" | "1-bit" | "isometric" | undefined;
|
|
@@ -5896,7 +5681,7 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
|
5896
5681
|
softDelete?: boolean | undefined;
|
|
5897
5682
|
visual_prompt?: string | undefined;
|
|
5898
5683
|
assetRef?: {
|
|
5899
|
-
role:
|
|
5684
|
+
role: string;
|
|
5900
5685
|
category: string;
|
|
5901
5686
|
animations?: string[] | undefined;
|
|
5902
5687
|
style?: "pixel" | "vector" | "hd" | "1-bit" | "isometric" | undefined;
|
|
@@ -6474,7 +6259,7 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
|
6474
6259
|
description: z.ZodOptional<z.ZodString>;
|
|
6475
6260
|
visual_prompt: z.ZodOptional<z.ZodString>;
|
|
6476
6261
|
assetRef: z.ZodOptional<z.ZodObject<{
|
|
6477
|
-
role: z.
|
|
6262
|
+
role: z.ZodString;
|
|
6478
6263
|
category: z.ZodString;
|
|
6479
6264
|
animations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
6480
6265
|
style: z.ZodOptional<z.ZodEnum<["pixel", "vector", "hd", "1-bit", "isometric"]>>;
|
|
@@ -6482,7 +6267,7 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
|
6482
6267
|
dimension: z.ZodOptional<z.ZodEnum<["2d", "3d"]>>;
|
|
6483
6268
|
aspect: z.ZodOptional<z.ZodEnum<["1:1", "16:9", "5:7", "8:1"]>>;
|
|
6484
6269
|
}, "strip", z.ZodTypeAny, {
|
|
6485
|
-
role:
|
|
6270
|
+
role: string;
|
|
6486
6271
|
category: string;
|
|
6487
6272
|
animations?: string[] | undefined;
|
|
6488
6273
|
style?: "pixel" | "vector" | "hd" | "1-bit" | "isometric" | undefined;
|
|
@@ -6490,7 +6275,7 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
|
6490
6275
|
dimension?: "2d" | "3d" | undefined;
|
|
6491
6276
|
aspect?: "1:1" | "16:9" | "5:7" | "8:1" | undefined;
|
|
6492
6277
|
}, {
|
|
6493
|
-
role:
|
|
6278
|
+
role: string;
|
|
6494
6279
|
category: string;
|
|
6495
6280
|
animations?: string[] | undefined;
|
|
6496
6281
|
style?: "pixel" | "vector" | "hd" | "1-bit" | "isometric" | undefined;
|
|
@@ -6510,7 +6295,7 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
|
6510
6295
|
softDelete?: boolean | undefined;
|
|
6511
6296
|
visual_prompt?: string | undefined;
|
|
6512
6297
|
assetRef?: {
|
|
6513
|
-
role:
|
|
6298
|
+
role: string;
|
|
6514
6299
|
category: string;
|
|
6515
6300
|
animations?: string[] | undefined;
|
|
6516
6301
|
style?: "pixel" | "vector" | "hd" | "1-bit" | "isometric" | undefined;
|
|
@@ -6530,7 +6315,7 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
|
6530
6315
|
softDelete?: boolean | undefined;
|
|
6531
6316
|
visual_prompt?: string | undefined;
|
|
6532
6317
|
assetRef?: {
|
|
6533
|
-
role:
|
|
6318
|
+
role: string;
|
|
6534
6319
|
category: string;
|
|
6535
6320
|
animations?: string[] | undefined;
|
|
6536
6321
|
style?: "pixel" | "vector" | "hd" | "1-bit" | "isometric" | undefined;
|
|
@@ -6678,7 +6463,7 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
|
6678
6463
|
softDelete?: boolean | undefined;
|
|
6679
6464
|
visual_prompt?: string | undefined;
|
|
6680
6465
|
assetRef?: {
|
|
6681
|
-
role:
|
|
6466
|
+
role: string;
|
|
6682
6467
|
category: string;
|
|
6683
6468
|
animations?: string[] | undefined;
|
|
6684
6469
|
style?: "pixel" | "vector" | "hd" | "1-bit" | "isometric" | undefined;
|
|
@@ -6826,7 +6611,7 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
|
6826
6611
|
softDelete?: boolean | undefined;
|
|
6827
6612
|
visual_prompt?: string | undefined;
|
|
6828
6613
|
assetRef?: {
|
|
6829
|
-
role:
|
|
6614
|
+
role: string;
|
|
6830
6615
|
category: string;
|
|
6831
6616
|
animations?: string[] | undefined;
|
|
6832
6617
|
style?: "pixel" | "vector" | "hd" | "1-bit" | "isometric" | undefined;
|
|
@@ -6837,4 +6622,4 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
|
6837
6622
|
} | undefined;
|
|
6838
6623
|
}>]>;
|
|
6839
6624
|
|
|
6840
|
-
export {
|
|
6625
|
+
export { CameraSchema as $, ANIMATION_NAMES as A, type Asset as B, type CallSiteConfig as C, type AssetAspect as D, type Effect as E, type FieldValue as F, AssetAspectSchema as G, type AssetCatalog as H, type AssetCatalogEntry as I, type AssetCatalogEntryInput as J, AssetCatalogEntrySchema as K, AssetCatalogSchema as L, type AssetDimension as M, AssetDimensionSchema as N, AssetSchema as O, type AssetUrl as P, type AtomicEffect as Q, type RenderBinding as R, type ServiceRef as S, type TraitConfig as T, type UISlot as U, CAMERA_MODES as V, type CallServiceConfig as W, type CallServiceEffect as X, type Camera as Y, type CameraMode as Z, CameraModeSchema as _, type Trait as a, type PersistData as a$, type CheckpointLoadEffect as a0, type CheckpointSaveEffect as a1, ConfigFieldDeclarationSchema as a2, type DeclaredTraitConfig as a3, DeclaredTraitConfigSchema as a4, type DerefEffect as a5, type DespawnEffect as a6, type DoEffect as a7, ENTITY_ROLES as a8, type EffectInput as a9, type FieldFormat as aA, FieldFormatSchema as aB, FieldSchema as aC, type FieldType as aD, FieldTypeSchema as aE, type ForwardConfig as aF, type ForwardEffect as aG, type Guard as aH, type GuardInput as aI, GuardSchema as aJ, type ListenSource as aK, ListenSourceSchema as aL, type LogEffect as aM, type McpServiceDef as aN, McpServiceDefSchema as aO, type NavigateEffect as aP, type NnConfig as aQ, type NnLayer as aR, type NotifyEffect as aS, type OrbitalEntity as aT, type OrbitalEntityInput as aU, OrbitalEntitySchema as aV, type OrbitalTraitRef as aW, OrbitalTraitRefSchema as aX, type OsEffect as aY, type PayloadField as aZ, PayloadFieldSchema as a_, EffectSchema as aa, type EmitConfig as ab, type EmitEffect as ac, type EntityData as ad, type EntityFieldContract as ae, EntityFieldContractSchema as af, type EntityFieldInput as ag, EntityFieldSchema as ah, EntityPersistenceSchema as ai, type EntityRole as aj, EntityRoleSchema as ak, EntitySchema as al, type EntityWith as am, type EnumEntityField as an, type EvaluateConfig as ao, type EvaluateEffect as ap, type Event as aq, type EventInput as ar, EventPayloadFieldSchema as as, EventSchema as at, type EventScope as au, EventScopeSchema as av, type FetchEffect as aw, type FetchOptions as ax, type FetchResult as ay, type Field as az, type RenderUIEffect as b, TraitDataEntitySchema as b$, type PersistEffect as b0, type PersistEmitConfig as b1, type PresentationType as b2, type RefEffect as b3, RelationConfigSchema as b4, type RelationEntityField as b5, type RenderItemLambda as b6, type RenderUINode as b7, type RequiredField as b8, RequiredFieldSchema as b9, SocketServiceDefSchema as bA, type SpawnEffect as bB, type SpriteDirection as bC, SpriteDirectionSchema as bD, type SpriteSheetAtlas as bE, type SpriteSheetAtlasInput as bF, SpriteSheetAtlasSchema as bG, type StateInput as bH, type StateMachine as bI, type StateMachineInput as bJ, StateMachineSchema as bK, StateSchema as bL, type SubTexture as bM, SubTextureSchema as bN, type SwapEffect as bO, type TextureAtlas as bP, TextureAtlasSchema as bQ, type Tilesheet as bR, TilesheetSchema as bS, type TrainConfig as bT, type TrainEffect as bU, type TraitCategory as bV, TraitCategorySchema as bW, TraitConfigSchema as bX, type TraitConfigValue as bY, TraitConfigValueSchema as bZ, type TraitDataEntity as b_, type ResolvedPatternProps as ba, type RestAuthConfig as bb, RestAuthConfigSchema as bc, type RestServiceDef as bd, RestServiceDefSchema as be, SERVICE_TYPES as bf, SPRITE_DIRECTIONS as bg, type ScalarEntityField as bh, type ScenePos as bi, ScenePosSchema as bj, type SemanticAssetRef as bk, type SemanticAssetRefInput as bl, SemanticAssetRefSchema as bm, ServiceDefinitionSchema as bn, type ServiceParams as bo, type ServiceParamsValue as bp, type ServiceRefObject as bq, ServiceRefObjectSchema as br, ServiceRefSchema as bs, ServiceRefStringSchema as bt, type ServiceType as bu, ServiceTypeSchema as bv, type SetEffect as bw, type SocketEvents as bx, SocketEventsSchema as by, type SocketServiceDef as bz, type TraitEventContract as c, type TraitEntityField as c0, TraitEntityFieldSchema as c1, TraitEventContractSchema as c2, TraitEventListenerSchema as c3, type TraitInput as c4, TraitRefSchema as c5, type TraitReferenceInput as c6, TraitReferenceSchema as c7, TraitSchema as c8, type TraitTick as c9, hasService as cA, isCallSiteConfigDeclaration as cB, isCircuitEvent as cC, isEffect as cD, isInlineTrait as cE, isMcpService as cF, isRestService as cG, isRuntimeEntity as cH, isSExprEffect as cI, isServiceReference as cJ, isServiceReferenceObject as cK, isSocketService as cL, navigate as cM, normalizeTraitRef as cN, notify as cO, parseAssetKey as cP, parseServiceRef as cQ, persist as cR, persistenceModeAllowsOverrides as cS, ref as cT, renderUI as cU, set as cV, spawn as cW, swap as cX, validateAssetAnimations as cY, watch as cZ, type TraitScope as c_, TraitTickSchema as ca, type TraitUIBinding as cb, type Transition as cc, type TransitionInput as cd, TransitionSchema as ce, type TypedEffect as cf, UISlotSchema as cg, UI_SLOTS as ch, VISUAL_STYLES as ci, type VisualStyle as cj, VisualStyleSchema as ck, type WatchEffect as cl, type WatchOptions as cm, atomic as cn, callService as co, createAssetKey as cp, deref as cq, deriveCollection as cr, despawn as cs, doEffects as ct, emit as cu, findService as cv, getDefaultAnimationsForRole as cw, getServiceNames as cx, getTraitConfig as cy, getTraitName as cz, type Entity as d, type TraitEventListener as e, type EntityField as f, type EntityPersistence as g, type EntityRow as h, type TraitRef as i, type TraitReference as j, type RelationConfig as k, type TraitConfigObject as l, type EventPayloadField as m, type ConfigFieldDeclaration as n, type ServiceDefinition as o, type CallSiteConfigEntry as p, type State as q, ASSET_ASPECTS as r, ASSET_DIMENSIONS as s, type AgentEffect as t, type AnimationDef as u, type AnimationDefInput as v, AnimationDefSchema as w, type AnimationName as x, AnimationNameSchema as y, type ArrayEntityField as z };
|