LineDef beta
Interface of @v12-engine/engine
export interface LineDefSomething someone says: a commander between waves, a hero in a cutscene. The rules say a line is said, so that every player hears it at the same moment and a save knows where a conversation was; the view shows it (a box with a portrait, subtitles) and plays its voice. Who the speaker is on the screen, their name and portrait, is the view's (GameView.cinematics.speakers)
Members
emotion
emotion?: string;How it is said (angry, whisper): the speaker's face plays its clip for the mood, the box has it for its styles
seconds
seconds?: number;How long it stays, in seconds. LINE_SECONDS when left out: the rules know the key of the words, not how long they are
speaker
speaker: string;Who says it, by an id of the game's ('td.commander')
text
text: MessageRef;What is said, in the words of the game: a message key, with params
unit
unit?: number | string;The unit that says it, by its entity id or its name on the map: the screen shows its face talking (the HUD's portrait box, or the dialog box's) over the speaker's portrait. The speaker's look's portrait when left out