@almadar/core 10.50.0 → 10.52.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 +13 -3
- package/dist/builders.js.map +1 -1
- package/dist/{effect-DjMRX8sI.d.ts → effect-CqTo1gAF.d.ts} +79 -13
- package/dist/{entityAccess-dYpx6Ipw.d.ts → entityAccess-3QD5qbqw.d.ts} +1 -1
- package/dist/factory/index.d.ts +4 -4
- package/dist/factory-runtime/index.d.ts +3 -3
- package/dist/factory-runtime/index.js +13 -3
- package/dist/factory-runtime/index.js.map +1 -1
- package/dist/index.d.ts +71 -10
- package/dist/index.js +150 -8
- package/dist/index.js.map +1 -1
- package/dist/mock/index.d.ts +12 -5
- package/dist/mock/index.js +38 -6
- package/dist/mock/index.js.map +1 -1
- package/dist/patterns/component-mapping.json +1 -1
- package/dist/patterns/event-contracts.json +1 -1
- package/dist/patterns/index.d.ts +89 -6
- package/dist/patterns/index.js +41 -4
- package/dist/patterns/index.js.map +1 -1
- package/dist/patterns/patterns-registry.json +39 -2
- package/dist/patterns/registry.json +39 -2
- package/dist/{schema-1bzTH92n.d.ts → schema-h6xcymfn.d.ts} +99 -99
- package/dist/{trait-DkMVtmED.d.ts → trait-CnbGhs6A.d.ts} +31 -23
- package/dist/types/index.d.ts +25 -8
- package/dist/types/index.js +17 -4
- package/dist/types/index.js.map +1 -1
- package/dist/{types-CUdqUyzi.d.ts → types-jWqiZC2S.d.ts} +2 -2
- package/package.json +1 -1
package/dist/builders.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { I as IdentityLedger, A as AnyPatternConfig, U as UISlot, c as Effect, h as RenderBinding, i as RenderUIEffect, d as EntityId, e as Entity, E as EntityField, a as EntityPersistence, f as EntityRow } from './effect-
|
|
2
|
-
import { a as OrbitalDefinition, O as OrbitalSchema, U as UseDeclaration, E as EntityRef, P as PageRef, b as Page, c as PageRefObject } from './schema-
|
|
3
|
-
import { b as TraitConfig, g as Trait, T as TraitEventListener, h as CallSiteConfig, j as TraitEventContract, d as TraitRef, a as TraitReference } from './trait-
|
|
1
|
+
import { I as IdentityLedger, A as AnyPatternConfig, U as UISlot, c as Effect, h as RenderBinding, i as RenderUIEffect, d as EntityId, e as Entity, E as EntityField, a as EntityPersistence, f as EntityRow } from './effect-CqTo1gAF.js';
|
|
2
|
+
import { a as OrbitalDefinition, O as OrbitalSchema, U as UseDeclaration, E as EntityRef, P as PageRef, b as Page, c as PageRefObject } from './schema-h6xcymfn.js';
|
|
3
|
+
import { b as TraitConfig, g as Trait, T as TraitEventListener, h as CallSiteConfig, j as TraitEventContract, d as TraitRef, a as TraitReference } from './trait-CnbGhs6A.js';
|
|
4
4
|
import { S as SExpr } from './expression-Yf7qvvOs.js';
|
|
5
5
|
import 'zod';
|
|
6
6
|
|
package/dist/builders.js
CHANGED
|
@@ -233,8 +233,10 @@ var ASSET_ASPECTS = ["1:1", "16:9", "5:7", "8:1"];
|
|
|
233
233
|
var AssetAspectSchema = z.enum(ASSET_ASPECTS);
|
|
234
234
|
var ANIMATION_NAMES = ["idle", "walk", "attack", "hit", "death"];
|
|
235
235
|
var AnimationNameSchema = z.enum(ANIMATION_NAMES);
|
|
236
|
-
var SPRITE_DIRECTIONS = ["se", "sw"];
|
|
236
|
+
var SPRITE_DIRECTIONS = ["se", "sw", "ne", "nw"];
|
|
237
237
|
var SpriteDirectionSchema = z.enum(SPRITE_DIRECTIONS);
|
|
238
|
+
var SHEET_PROJECTIONS = ["iso", "front", "back", "top", "perspective"];
|
|
239
|
+
z.enum(SHEET_PROJECTIONS);
|
|
238
240
|
var AnimationDefSchema = z.object({
|
|
239
241
|
row: z.number().int().nonnegative(),
|
|
240
242
|
frames: z.number().int().positive(),
|
|
@@ -250,7 +252,14 @@ z.object({
|
|
|
250
252
|
rows: z.number().int().positive(),
|
|
251
253
|
directions: z.array(SpriteDirectionSchema),
|
|
252
254
|
sheets: z.record(SpriteDirectionSchema, z.string()),
|
|
253
|
-
animations: z.record(AnimationNameSchema, AnimationDefSchema)
|
|
255
|
+
animations: z.record(AnimationNameSchema, AnimationDefSchema),
|
|
256
|
+
projections: z.object({
|
|
257
|
+
iso: z.record(SpriteDirectionSchema, z.string()).optional(),
|
|
258
|
+
front: z.string().optional(),
|
|
259
|
+
back: z.string().optional(),
|
|
260
|
+
top: z.string().optional(),
|
|
261
|
+
perspective: z.string().optional()
|
|
262
|
+
}).optional()
|
|
254
263
|
});
|
|
255
264
|
var SubTextureSchema = z.object({
|
|
256
265
|
x: z.number().nonnegative(),
|
|
@@ -314,7 +323,8 @@ z.object({
|
|
|
314
323
|
target: ScenePosSchema.optional(),
|
|
315
324
|
zoom: z.number().optional(),
|
|
316
325
|
fov: z.number().optional(),
|
|
317
|
-
mode: CameraModeSchema.optional()
|
|
326
|
+
mode: CameraModeSchema.optional(),
|
|
327
|
+
azimuth: z.number().optional()
|
|
318
328
|
});
|
|
319
329
|
var SExprDataSchema = z.lazy(
|
|
320
330
|
() => z.union([SExprAtomSchema, z.array(SExprDataSchema)])
|