WorldOptions beta
Interface of @v12-engine/engine
export interface WorldOptions extends WorldChecksWhat a world is made of (new World): its ground and ways, its game, its players, its systems and hooks, and what it checks of itself
Members
areas
areas?: AreaDef[];Parts of the map the rules watch
hooks
hooks?: HookDef[];Hook handlers. The engine's own (coreHooks) when left out
listeners
listeners?: ListenerDef[];How the game reacts to events, subscribed in this order once the world is made
log
log?: Logger;The logger the world's own is made under (world.log): the root one when left out
logLevel
logLevel?: LogLevel;The least an entry of the world's log must matter to be said (Rules.log)
navigation
navigation: Navigation;The navigation units on the ground walk by
onError
onError?: ErrorPolicy;What becomes of a part of the game that throws (Rules.onError): it throws on, when left out
players
players: PlayerInit[];The players of the world, in order, from which its Players are made
randomRaces
randomRaces?: readonly string[];The races one is drawn from for a player given random: all of the game's when left out
registry
registry: Registry;The game's definitions: unit types, abilities, orders and the rest
seed
seed?: number;Seed for the world's random generator; 1 when left out
sequences
sequences?: SequenceDef[];Scripts of steps the game can start, by id
sidePaths
sidePaths?: SidePaths;The navigations the sides plan their routes on, of what each knows (Rules.paths: 'seen'). None when left out
systems
systems: (world: World) => System[];Makes the systems of the world, once it is made: what keeps state of its own keeps it for this world
terrain
terrain: Terrain;The ground the world stands on
tickRate
tickRate?: number;Simulation steps per second
timers
timers?: TimerDef[];What the game can set to go off later, by id
waterNavigation
waterNavigation?: Navigation;Where boats go (UnitTypeDef.naval): the deep water. None for a map without, and boats go on the ground