use camelcase file names from now on...

This commit is contained in:
2024-08-21 20:55:58 +02:00
parent acc9eaae9e
commit 6b97e7d9cb
55 changed files with 396 additions and 116 deletions

34
src/utilities/types.ts Normal file
View File

@ -0,0 +1,34 @@
import { Socket } from 'socket.io'
import { Character, User } from '@prisma/client'
export type TSocket = Socket & {
user?: User
character?: ExtendedCharacter
handshake?: {
query?: {
token?: any
}
}
request?: {
headers?: {
cookie?: any
}
}
}
export type ExtendedCharacter = Character & {
isMoving?: boolean
}
export type TAsset = {
key: string
url: string
group: 'tiles' | 'objects' | 'sprites' | 'sprite_animations' | 'sound' | 'music' | 'ui' | 'font' | 'other'
frameWidth?: number
frameHeight?: number
}
// export type TCharacter = Socket & {
// user?: User
// character?: Character
// }