cinematicSnippets
Namespace of @v12-engine/editor
Members
CinematicSnippet beta
export interface CinematicSnippet extends CinematicClipboardA 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
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
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
SNIPPET_TEMPLATES: readonly SnippetTemplate[]The editor's templates: an intro, an outro, a talk of two, an explosion, a duel
SnippetContext beta
export interface SnippetContextWhat 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
export declare class SnippetFilesThe 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
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
SNIPPETS_FOLDER = "cinematics/snippets"The folder of a game's snippets of cinematics, a file each (cinematics/snippets/talk.json)
snippetSummary beta
export declare function snippetSummary(snippet: CinematicClipboard): string;What a snippet puts in, in a few words: 3 items on camera, screen
SnippetTemplate beta
export interface SnippetTemplateA template of the editor's: made for the view as it is when it is put in