@almadar/core 10.12.0 → 10.13.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 +18 -2
- package/dist/builders.js.map +1 -1
- package/dist/{compose-behaviors-Bhf-XFFc.d.ts → compose-behaviors-CmTHzC3Z.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 +18 -2
- package/dist/factory-runtime/index.js.map +1 -1
- package/dist/index.d.ts +7 -7
- package/dist/index.js +19 -3
- package/dist/index.js.map +1 -1
- package/dist/{schema-CSn8gU27.d.ts → schema-DisJeRQc.d.ts} +1 -1
- package/dist/{trait-DecHZfpm.d.ts → trait-Bwhkhv3V.d.ts} +173 -47
- package/dist/types/index.d.ts +6 -6
- package/dist/types/index.js +19 -3
- package/dist/types/index.js.map +1 -1
- package/dist/{types-C16w56HW.d.ts → types-CIi6Vxmc.d.ts} +1 -1
- 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-CIi6Vxmc.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-CIi6Vxmc.js';
|
|
3
|
+
import { g as EntityPersistence, f as EntityField, j as TraitReference } from '../trait-Bwhkhv3V.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,
|
|
1
|
+
import { O as OrbitalSchema, a as OrbitalDefinition } from '../schema-DisJeRQc.js';
|
|
2
|
+
import { f as EntityField, g as EntityPersistence, C as CallSiteConfig, $ as CallSiteConfigEntry, a as Trait } from '../trait-Bwhkhv3V.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-CmTHzC3Z.js';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Orbital factory manifest types — shared across all packages.
|
|
@@ -164,11 +164,27 @@ var GAME_TYPES = [
|
|
|
164
164
|
"rpg"
|
|
165
165
|
];
|
|
166
166
|
var GameTypeSchema = z.enum(GAME_TYPES);
|
|
167
|
+
var ANIMATION_NAMES = ["idle", "walk", "attack", "hit", "death"];
|
|
168
|
+
var AnimationNameSchema = z.enum(ANIMATION_NAMES);
|
|
169
|
+
var SPRITE_DIRECTIONS = ["se", "sw"];
|
|
170
|
+
var SpriteDirectionSchema = z.enum(SPRITE_DIRECTIONS);
|
|
167
171
|
var AnimationDefSchema = z.object({
|
|
168
|
-
|
|
169
|
-
|
|
172
|
+
row: z.number().int().nonnegative(),
|
|
173
|
+
frames: z.number().int().positive(),
|
|
174
|
+
frameRate: z.number().positive(),
|
|
170
175
|
loop: z.boolean()
|
|
171
176
|
});
|
|
177
|
+
z.object({
|
|
178
|
+
unit: z.string().optional(),
|
|
179
|
+
type: z.string().optional(),
|
|
180
|
+
frameWidth: z.number().positive(),
|
|
181
|
+
frameHeight: z.number().positive(),
|
|
182
|
+
columns: z.number().int().positive(),
|
|
183
|
+
rows: z.number().int().positive(),
|
|
184
|
+
directions: z.array(SpriteDirectionSchema),
|
|
185
|
+
sheets: z.record(SpriteDirectionSchema, z.string()),
|
|
186
|
+
animations: z.record(AnimationNameSchema, AnimationDefSchema)
|
|
187
|
+
});
|
|
172
188
|
var SemanticAssetRefSchema = z.object({
|
|
173
189
|
role: EntityRoleSchema,
|
|
174
190
|
category: z.string().min(1),
|