Skip to content

Draft beta ​

Interface of @v12-engine/client

ts
export interface Draft

A draft of a map being edited: the map as it was, which map it is, and when

Members ​

at ​

ts
at: number;

Milliseconds since 1970

file ​

ts
file?: string;

The path of the file of the project the prefab is saved to, where it is

key ​

ts
key: string;

Which map it is a draft of, among the game's: its project file (file:<name>), its place in the browser (kept:<id>), or a map of neither (new:<id>, one of each map made). A draft of each is kept

map ​

ts
map: unknown;

The map, as its file has it

mapId ​

ts
mapId?: string;

Where the browser keeps it, and the map file of the project it is, when it is either

name ​

ts
name: string;

The map's name, as a list of drafts shows it

pack ​

ts
pack?: MapPack;

The files the map brings with it (a ground made of a picture), as they were: none for a map without