AvatarDef
An avatar, as data: one renderer draws any definition.
Properties
Section titled “Properties”id:
string
Stable kebab-case id: stored on the phone and sent around, never renamed.
name:
object
Its name, in English and Italian, for pickers.
en:
string
it:
string
band:
AvatarBand
The age band the avatar is for, its home: its style and its body proportions (see BAND_BODY in rig.ts). ‘all’: in no band’s list (the mascot), drawn with the 6–8 proportions. See alsoIn for an avatar offered in other bands too.
alsoIn?
Section titled “alsoIn?”
optionalalsoIn?: readonlyAgeRange[]
Other age bands the avatar is also offered in (listed in their AVATAR_BANDS too), besides its own band. Shown in one of them, it is drawn with that band’s proportions (bodyBand(def, band)); its band stays its home: its style (outline), bandOf, and its proportions when the band shown is not known. Not for ‘all’ (the mascot).
special?
Section titled “special?”
optionalspecial?:boolean
A special avatar (the mascot): the host, not a player; in no band’s list (AVATAR_BANDS).
palette
Section titled “palette”palette:
Palette
Its colours.
head:
HeadShape
The head’s outline.
ears:
EarKind
The ears, or what is in their place.
face:
FaceDef
The face.
tail:
TailKind
The tail.
headExtras
Section titled “headExtras”headExtras: readonly
HeadExtra[]
Things on the head (manes, hats, masks).
bodyExtras
Section titled “bodyExtras”bodyExtras: readonly
BodyExtra[]
Things on the body (wings, capes, belts).
extraColors?
Section titled “extraColors?”
optionalextraColors?: readonlystring[]
Colours of the rainbow mane, of the stripes, of the spots: per-avatar extra colours.