Updated TS types
This commit is contained in:
parent
3748c459f8
commit
ad4651844d
14
src/types.ts
14
src/types.ts
@ -145,6 +145,14 @@ export type CharacterType = {
|
|||||||
updatedAt: Date
|
updatedAt: Date
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type CharacterHair = {
|
||||||
|
id: number
|
||||||
|
name: string
|
||||||
|
spriteId: string
|
||||||
|
sprite: Sprite
|
||||||
|
// @TODO: Do we need addedAt and updatedAt?
|
||||||
|
}
|
||||||
|
|
||||||
export type Character = {
|
export type Character = {
|
||||||
id: number
|
id: number
|
||||||
userId: number
|
userId: number
|
||||||
@ -163,6 +171,8 @@ export type Character = {
|
|||||||
zone: Zone
|
zone: Zone
|
||||||
characterTypeId: number | null
|
characterTypeId: number | null
|
||||||
characterType: CharacterType | null
|
characterType: CharacterType | null
|
||||||
|
hairId: number | null
|
||||||
|
hair: CharacterHair | null
|
||||||
chats: Chat[]
|
chats: Chat[]
|
||||||
items: CharacterItem[]
|
items: CharacterItem[]
|
||||||
}
|
}
|
||||||
@ -172,10 +182,6 @@ export type ZoneCharacter = {
|
|||||||
isMoving?: boolean
|
isMoving?: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ExtendedCharacter = Character & {
|
|
||||||
isMoving?: boolean
|
|
||||||
}
|
|
||||||
|
|
||||||
export type CharacterItem = {
|
export type CharacterItem = {
|
||||||
id: number
|
id: number
|
||||||
characterId: number
|
characterId: number
|
||||||
|
Loading…
x
Reference in New Issue
Block a user