Skip to content

AvatarDef

An avatar, as data: one renderer draws any definition.

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.


optional alsoIn?: readonly AgeRange[]

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).


optional special?: boolean

A special avatar (the mascot): the host, not a player; in no band’s list (AVATAR_BANDS).


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: readonly HeadExtra[]

Things on the head (manes, hats, masks).


bodyExtras: readonly BodyExtra[]

Things on the body (wings, capes, belts).


optional extraColors?: readonly string[]

Colours of the rainbow mane, of the stripes, of the spots: per-avatar extra colours.