LooksEntry beta
Interface of @v12-engine/client/looks-file
export interface LooksEntryWhat a unit type looks like, as data: the part of a UnitLook the editor's model setup writes, in a game's looks.json next to its code. The game's view spreads the file into its looks (layLooks): what the file says of a field is laid over the code's, and code still says the rest
Members
altitude
altitude?: number;How high above the ground it flies
attacks
attacks?: AttackLook[];How each of its attacks looks, by place (AttackLook, the Model view's Attack tab): its clips, how fast, what it shoots, its effects and sounds, as data. Each over the code's attack of the same place, field by field
baked
baked?: boolean | {
near?: number;
};Far off, drawn as copies of one mesh (UnitLook.baked: { near }, a skeleton of its own within so many cells and in view), or with its own skeleton always (false); left out, as the game has it (GameView.units.baked). Set up as a unit writes it
casts
casts?: Record<string, CastLook>;How it casts each ability, by the ability's id (CastLook, the Model view's Attack tab): over the code's (UnitLook.casts, the ability's own AbilityLook.cast) field by field
construction
construction?: ConstructionLook;How it goes up, as data (the Model view's Going up tab): over the code's construction
damaged
damaged?: DamagedStage[];How it looks as it is hurt, as data (the Model view's Damage tab): over the code's damaged
death
death?: DeathDef;How it dies, as data (the Model view's Death tab): over the code's death and onDeath
detail
detail?: {
ratio?: number;
from?: number;
under?: number;
draw?: 'none' | 'impostor';
}[];How it is drawn by its distance, as data (UnitLook.detail): levels with the part of its triangles each keeps, from how far (or under how many pixels tall) it is drawn so. [{}] for at full always. Left out, as the game and the map say. Set up as a unit writes it
height
height?: number;Where the health bar goes
icon
icon?: string;Its picture, by its path in icons/ (the Model view's Icon tab): over the view's hud.icons.units, what the card, the tiles of a group and the selection show of it (campaign plan RC4)
model
model?: ModelDef;The model the entry replaces the look's own with, as data
portrait
portrait?: PortraitLook;Its portrait (the Model view's Portrait tab): its picture where one is shown bigger than its icon (the heroes' row, a hero's panel; picture, by its path in icons/: its icon when left out), and its live portrait's model, framing, light and clips (PortraitLook), over the code's UnitLook.portrait field by field
rallyFlag
rallyFlag?: RallyFlagLook | false;A building's own rally flag, as data (the Model view's Rally flag tab): over the view's, false none
sounds
sounds?: LooksSounds;What it sounds like, by the names of the sounds (the Model view's Sounds tab): over the view's sounds.types, field by field