/** * World Initialization System * Provides declarative world setup analogous to entity-level spawn() */ import { ECSContext } from './ecs'; import { WorldDefinition, InitializeWorldOptions } from './worldSchema'; /** * Initialize a world from a declarative definition * This is the world-level equivalent of spawn() for entities * * @param ctx - ECS context * @param definition - Declarative world definition * @param options - Initialization options * * @example * ```typescript * initialize({ * title: "My World", * description: "An amazing world", * dimensions: [{ * name: "base", * gravity: -9.81, * useDayNightCycle: false, * sky: { color: "#87CEEB" } * }], * achievements: [{ * name: "First Steps", * description: "Walk 10 steps", * condition: { * type: "compare", * params: { * operator: "gte", * left: { type: "metric", params: { metric: "steps" } }, * right: { type: "literal", params: { value: 10 } } * } * } * }] * }); * ``` */ export declare function initialize(ctx: ECSContext, definition: WorldDefinition, options?: InitializeWorldOptions): void; /** * Helper function to create a world definition with proper defaults * This makes it easier to author world definitions by providing sensible defaults * * @param partial - Partial world definition * @returns Complete world definition with defaults */ export declare function createWorldDefinition(partial?: Partial): WorldDefinition; //# sourceMappingURL=initializeWorld.d.ts.map