Skip to content

MapInfo beta ​

Interface of @v12-engine/engine

ts
export interface MapInfo

What the map a world was made from says that is not an entity, as it is kept in the world: plain data, for a save

Members ​

cameras ​

ts
cameras?: MapCamera[];

Its views saved under names, for the screens (GameSession.cameras)

data ​

ts
data: Record<string, unknown>;

What the game kept with the map (GameMap.data), plain data the engine never looks inside

definitions ​

ts
definitions?: GameData;

The map's own definitions (GameMap.definitions): what a load of the world lays over the game again

doodads ​

ts
doodads?: MapDoodad[];

Its scenery, for the screens (GameSession.doodads)

environment ​

ts
environment?: MapEnvironment;

What the map looks like, for the screens (GameSession.environment)

forces ​

ts
forces?: MapForce[];

Its teams, named, and what they share

itemTables ​

ts
itemTables?: MapItemTable[];

What things placed on it drop when they die (MapObject.drops)

name ​

ts
name: string;

The map's name (GameMap.name)

paths ​

ts
paths: MapPath[];

The map's named paths, as world.map.path(name) finds them

players ​

ts
players?: MapPlayerInfo[];

Who plays each player, and the game's own fields of each (with what they are when not set)

points ​

ts
points: MapPoint[];

The map's named points, as world.map.point(name) finds them

regions ​

ts
regions?: MapRegion[];

Its regions, for the screens (GameSession.regions): what mist in places lies over by name. The rules know them as areas