diff --git a/src/types.ts b/src/types.ts index f249531..af20d10 100644 --- a/src/types.ts +++ b/src/types.ts @@ -145,6 +145,14 @@ export type CharacterType = { updatedAt: Date } +export type CharacterHair = { + id: number + name: string + spriteId: string + sprite: Sprite + // @TODO: Do we need addedAt and updatedAt? +} + export type Character = { id: number userId: number @@ -163,6 +171,8 @@ export type Character = { zone: Zone characterTypeId: number | null characterType: CharacterType | null + hairId: number | null + hair: CharacterHair | null chats: Chat[] items: CharacterItem[] } @@ -172,10 +182,6 @@ export type ZoneCharacter = { isMoving?: boolean } -export type ExtendedCharacter = Character & { - isMoving?: boolean -} - export type CharacterItem = { id: number characterId: number