Skip to content

cinematicSnippets ​

Namespace of @v12-engine/editor

Members ​

CinematicSnippet beta ​

ts
export interface CinematicSnippet extends CinematicClipboard

A group of items to put in a cinematic at once: items with the lane they were on and its kind, and markers, their times from its start (CinematicClipboard, named)

insertSnippet beta ​

ts
export declare function insertSnippet(def: CinematicDef, snippet: CinematicClipboard, at: number, options?: EditOptions): CinematicEdit;

Puts a snippet in a cinematic at a time, as a paste: each lane's items onto a lane of their kind where they lie over nothing, else onto a new one (the lanes it has none of yet are made). What was put in is selected

readSnippet beta ​

ts
export declare function readSnippet(json: unknown, name: string): CinematicSnippet;

A snippet read from its file, checked: its items { lane, kind, item: { at } }, its markers { at, name }. Throws with the path of what is wrong

SNIPPET_TEMPLATES beta ​

ts
SNIPPET_TEMPLATES: readonly SnippetTemplate[]

The editor's templates: an intro, an outro, a talk of two, an explosion, a duel

SnippetContext beta ​

ts
export interface SnippetContext

What a template of the editor's is made for: the view as a shot of the camera (viewShot), the game's speakers and effects (the first of them are used)

SnippetFiles beta ​

ts
export declare class SnippetFiles

The snippets of a game's cinematics as files (cinematics/snippets/<name>.json), through editor.files: what is written is a change until the map is saved (Ctrl+S)

snippetOf beta ​

ts
export declare function snippetOf(def: CinematicDef, selection: CinematicSelection, name: string): CinematicSnippet;

What is selected, as a snippet of a name: its times from the first of it

SNIPPETS_FOLDER beta ​

ts
SNIPPETS_FOLDER = "cinematics/snippets"

The folder of a game's snippets of cinematics, a file each (cinematics/snippets/talk.json)

snippetSummary beta ​

ts
export declare function snippetSummary(snippet: CinematicClipboard): string;

What a snippet puts in, in a few words: 3 items on camera, screen

SnippetTemplate beta ​

ts
export interface SnippetTemplate

A template of the editor's: made for the view as it is when it is put in