@v12-engine/client/looks-file
Interfaces
| Name | What |
|---|---|
| LooksEntry beta | What 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
| Name | What |
|---|---|
| layLooks beta | The 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 beta | The 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 beta | A looks.json as its file has it: by type, in order, a tab in |
| readLooksEntry beta | What a unit type looks like as data, checked: nothing in it that is not of a LooksEntry. Throws on what is wrong |
| readLooksFile beta | A looks.json, checked. Throws on what is wrong |
| readMaterialDef beta | A 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
| Name | What |
|---|---|
| LOOKS_FILE beta | A 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 beta | The sounds a type has, as the Model view's Sounds tab lists them: what they are for, and a word on each |
Types
| Name | What |
|---|---|
| LooksFile beta | A game's looks.json: what unit types look like, by their id |
| LooksSounds beta | What a unit type sounds like as data (LooksEntry.sounds): an EntitySounds with no code in it, its lines by name |