# Function: add() (/jsdoc/pixi-vn/index/namespaces/RegisteredCharacters/functions/add)



\> **add**(`character`): `void`

Defined in: [src/characters/decorators/character-decorator.ts:44](https://github.com/DRincs-Productions/pixi-vn/blob/998c1a75c5978f24c0dc137af5f42b90b2803967/src/characters/decorators/character-decorator.ts#L44)

Is a function that saves the character. If the character already exists, it will be overwritten.

Parameters [#parameters]

character [#character]

`CharacterInterface` | `CharacterInterface`\[]

is the character to save

Returns [#returns]

`void`

Example [#example]

```typescript
export const liam = new CharacterBaseModel('liam', { name: 'Liam'});
export const alice = new CharacterBaseModel('alice', { name: 'Alice'});
RegisteredCharacters.add([liam, alice]);
```
