From ad4651844d816ff9851400e33cdfd8a3b9375d81 Mon Sep 17 00:00:00 2001 From: Dennis Postma Date: Thu, 21 Nov 2024 03:00:09 +0100 Subject: [PATCH] Updated TS types --- src/types.ts | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) 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