Skip to content

TagDef beta ​

Interface of @v12-engine/engine

ts
export interface TagDef

A tag of items (ItemDef.tags), named and given a look: what a shop shows of it and whether it is one of the shop's filters. A tag no TagDef names still works, shown as its own word (Rules.tags)

Members ​

color ​

ts
color?: string;

The colour it is shown in, as CSS has it (#e0a030)

description ​

ts
description?: string;

A line about it, shown when the pointer is over it

filter ​

ts
filter?: boolean;

One of the shop's filters, a chip to pick: not when left out

icon ​

ts
icon?: string;

An icon of its own, by path or by a name of the game's icons

id ​

ts
id: string;

The tag as items say it: attack, lifesteal, anti-heal

name ​

ts
name?: string;

What the player sees it called: its id when left out