Skip to content

@v12-engine/client/looks-file ​

Interfaces ​

NameWhat
LooksEntry betaWhat 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

Functions ​

NameWhat
layLooks betaThe looks of a game with what its looks.json says laid over them: for each type the file has, its height and altitude, its model over the model in code when it is the same file, and how it dies (in place of the code's death and onDeath), goes up and looks hurt. What the code says that the file does not stays. A type only the file has is drawn with its model, without parts
layPicturesAndSounds betaThe pictures and sounds a looks.json says of its types, laid over the view's (hud.icons.units, hud.icons.portraits, sounds.types, a type's sounds field by field): only the fields it changes
looksText betaA looks.json as its file has it: by type, in order, a tab in
readLooksEntry betaWhat a unit type looks like as data, checked: nothing in it that is not of a LooksEntry. Throws on what is wrong
readLooksFile betaA looks.json, checked. Throws on what is wrong
readMaterialDef betaA material of a model as data (MaterialDef), with nothing in it that is not of one: its colours 0..1, its pictures by their paths, a Node Material by its snippet, its file in materials/, or its JSON. Throws on what is wrong

Values ​

NameWhat
LOOKS_FILE betaA game's looks.json, laid over the view's looks (layLooks): in a game played, each type whose look changed is drawn as it says now (its models loaded first). Lay it before HUD_FILE, which lays over what it makes
SOUND_FIELDS betaThe sounds a type has, as the Model view's Sounds tab lists them: what they are for, and a word on each

Types ​

NameWhat
LooksFile betaA game's looks.json: what unit types look like, by their id
LooksSounds betaWhat a unit type sounds like as data (LooksEntry.sounds): an EntitySounds with no code in it, its lines by name