PanelFile beta
Interface of @v12-engine/editor
export interface PanelFile<T>A file of the game's laid over its view's code (ViewFile), as a panel edits it: read as the panel opens and again as it changes on disk, laid at once over the view here and in a game played here (client.takeFile), written as a step of the history. What every panel of such a file shares (the FX panel, the Unit HUD panel, the Words panel, the Look panel's Pings and Quality folds, a layer's Look) and a game's own panel of a file of its own
Members
error
error: Accessor<string | undefined>;What is wrong with the file on disk, where it could not be read
file
file: Accessor<T>;The file as it is now: what the panel last wrote, or what was read
write
write(next: T, name: string, merge?: string): void;Writes the file as a step of the history: Ctrl+Z puts it back. Writes with the same merge key one after another (a knob turned again and again) are one step