@almadar/core 10.18.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
package/dist/factory/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { g as FactoryParamValue, c as FactoryConfigTier, b as FactoryConfigParam, F as FactoryCallSite, h as FactorySignature, R as RuleOverlay, p as RuleOverlayEntry, o as PresentationOverlay, q as TraitOverlay } from '../types-
|
|
2
|
-
export { a as FactoryCallSiteParams, d as FactoryEntitySignature, e as FactoryEventSignature, f as FactoryPageSignature, i as FactorySignatureCatalog, j as FactorySignatureEntityField, k as FactoryTraitSignature, m as JsonSchema, n as JsonSchemaType, J as JsonValue, O as OwnershipOverlayEntry, P as PresentationNavItem, S as SchemaFieldType, r as TraitOverlayEntry, s as TraitOverlayListener } from '../types-
|
|
3
|
-
import { g as EntityPersistence, f as EntityField, j as TraitReference } from '../trait-
|
|
1
|
+
import { g as FactoryParamValue, c as FactoryConfigTier, b as FactoryConfigParam, F as FactoryCallSite, h as FactorySignature, R as RuleOverlay, p as RuleOverlayEntry, o as PresentationOverlay, q as TraitOverlay } from '../types-DBzaYmuJ.js';
|
|
2
|
+
export { a as FactoryCallSiteParams, d as FactoryEntitySignature, e as FactoryEventSignature, f as FactoryPageSignature, i as FactorySignatureCatalog, j as FactorySignatureEntityField, k as FactoryTraitSignature, m as JsonSchema, n as JsonSchemaType, J as JsonValue, O as OwnershipOverlayEntry, P as PresentationNavItem, S as SchemaFieldType, r as TraitOverlayEntry, s as TraitOverlayListener } from '../types-DBzaYmuJ.js';
|
|
3
|
+
import { g as EntityPersistence, f as EntityField, j as TraitReference } from '../trait-BcRvHKLW.js';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import '../expression-BUIi9ezJ.js';
|
|
6
6
|
import '@almadar/patterns';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { O as OrbitalSchema, a as OrbitalDefinition } from '../schema-
|
|
2
|
-
import { f as EntityField, g as EntityPersistence, C as CallSiteConfig, p as CallSiteConfigEntry, a as Trait } from '../trait-
|
|
1
|
+
import { O as OrbitalSchema, a as OrbitalDefinition } from '../schema-BEL2Gr4v.js';
|
|
2
|
+
import { f as EntityField, g as EntityPersistence, C as CallSiteConfig, p as CallSiteConfigEntry, a as Trait } from '../trait-BcRvHKLW.js';
|
|
3
3
|
import { MakeTraitRefOpts } from '../builders.js';
|
|
4
4
|
import '../expression-BUIi9ezJ.js';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import '@almadar/patterns';
|
|
7
|
-
import '../compose-behaviors-
|
|
7
|
+
import '../compose-behaviors-mP-vUG61.js';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Orbital factory manifest types — shared across all packages.
|
|
@@ -145,25 +145,13 @@ var ENTITY_ROLES = [
|
|
|
145
145
|
"decoration",
|
|
146
146
|
"vehicle"
|
|
147
147
|
];
|
|
148
|
-
|
|
148
|
+
z.enum(ENTITY_ROLES);
|
|
149
149
|
var VISUAL_STYLES = ["pixel", "vector", "hd", "1-bit", "isometric"];
|
|
150
150
|
var VisualStyleSchema = z.enum(VISUAL_STYLES);
|
|
151
151
|
var ASSET_DIMENSIONS = ["2d", "3d"];
|
|
152
152
|
var AssetDimensionSchema = z.enum(ASSET_DIMENSIONS);
|
|
153
153
|
var ASSET_ASPECTS = ["1:1", "16:9", "5:7", "8:1"];
|
|
154
154
|
var AssetAspectSchema = z.enum(ASSET_ASPECTS);
|
|
155
|
-
var GAME_TYPES = [
|
|
156
|
-
"platformer",
|
|
157
|
-
"roguelike",
|
|
158
|
-
"top-down",
|
|
159
|
-
"puzzle",
|
|
160
|
-
"racing",
|
|
161
|
-
"card",
|
|
162
|
-
"board",
|
|
163
|
-
"shooter",
|
|
164
|
-
"rpg"
|
|
165
|
-
];
|
|
166
|
-
var GameTypeSchema = z.enum(GAME_TYPES);
|
|
167
155
|
var ANIMATION_NAMES = ["idle", "walk", "attack", "hit", "death"];
|
|
168
156
|
var AnimationNameSchema = z.enum(ANIMATION_NAMES);
|
|
169
157
|
var SPRITE_DIRECTIONS = ["se", "sw"];
|
|
@@ -209,20 +197,8 @@ z.object({
|
|
|
209
197
|
spacing: z.number().nonnegative().optional(),
|
|
210
198
|
names: z.array(z.string()).optional()
|
|
211
199
|
});
|
|
212
|
-
var PACK_CLASSES = ["board-tileset", "character-kit", "shared-primitive"];
|
|
213
|
-
z.enum(PACK_CLASSES);
|
|
214
|
-
var CharacterKitLayerSchema = z.object({
|
|
215
|
-
slot: z.enum(["body", "head", "face", "hair", "facialHair", "shirt", "pants", "shoes", "accessory"]),
|
|
216
|
-
url: z.string(),
|
|
217
|
-
atlas: z.string().optional(),
|
|
218
|
-
sprite: z.string().optional()
|
|
219
|
-
});
|
|
220
|
-
z.object({
|
|
221
|
-
pack: z.string(),
|
|
222
|
-
layers: z.array(CharacterKitLayerSchema)
|
|
223
|
-
});
|
|
224
200
|
var SemanticAssetRefSchema = z.object({
|
|
225
|
-
role:
|
|
201
|
+
role: z.string().min(1),
|
|
226
202
|
category: z.string().min(1),
|
|
227
203
|
animations: z.array(z.string()).optional(),
|
|
228
204
|
style: VisualStyleSchema.optional(),
|
|
@@ -237,27 +213,6 @@ SemanticAssetRefSchema.extend({
|
|
|
237
213
|
name: z.string().optional(),
|
|
238
214
|
thumbnailUrl: z.string().optional()
|
|
239
215
|
});
|
|
240
|
-
z.object({
|
|
241
|
-
basePath: z.string(),
|
|
242
|
-
path: z.string(),
|
|
243
|
-
tiles: z.array(z.number()).optional(),
|
|
244
|
-
tileSize: z.number().positive().optional(),
|
|
245
|
-
files: z.array(z.string()).optional(),
|
|
246
|
-
animations: z.record(AnimationDefSchema).optional()
|
|
247
|
-
});
|
|
248
|
-
var AssetMappingSchema = z.object({
|
|
249
|
-
path: z.string(),
|
|
250
|
-
tiles: z.array(z.number()).optional(),
|
|
251
|
-
tileSize: z.number().positive().optional(),
|
|
252
|
-
files: z.array(z.string()).optional(),
|
|
253
|
-
animations: z.record(AnimationDefSchema).optional()
|
|
254
|
-
});
|
|
255
|
-
z.object({
|
|
256
|
-
gameType: GameTypeSchema,
|
|
257
|
-
style: VisualStyleSchema,
|
|
258
|
-
basePath: z.string(),
|
|
259
|
-
mappings: z.record(AssetMappingSchema)
|
|
260
|
-
});
|
|
261
216
|
var AssetCatalogEntrySchema = z.object({
|
|
262
217
|
url: z.string(),
|
|
263
218
|
name: z.string(),
|
|
@@ -268,6 +223,20 @@ var AssetCatalogEntrySchema = z.object({
|
|
|
268
223
|
aspect: AssetAspectSchema.optional()
|
|
269
224
|
});
|
|
270
225
|
z.array(AssetCatalogEntrySchema);
|
|
226
|
+
var ScenePosSchema = z.object({
|
|
227
|
+
x: z.number(),
|
|
228
|
+
y: z.number(),
|
|
229
|
+
z: z.number().optional()
|
|
230
|
+
});
|
|
231
|
+
var CAMERA_MODES = ["isometric", "perspective", "top-down", "follow", "chase"];
|
|
232
|
+
var CameraModeSchema = z.enum(CAMERA_MODES);
|
|
233
|
+
z.object({
|
|
234
|
+
pos: ScenePosSchema.optional(),
|
|
235
|
+
target: ScenePosSchema.optional(),
|
|
236
|
+
zoom: z.number().optional(),
|
|
237
|
+
fov: z.number().optional(),
|
|
238
|
+
mode: CameraModeSchema.optional()
|
|
239
|
+
});
|
|
271
240
|
|
|
272
241
|
// src/types/entity.ts
|
|
273
242
|
var EntityPersistenceSchema = z.enum([
|