diff --git a/src/config.ts b/src/application/config.ts similarity index 100% rename from src/config.ts rename to src/application/config.ts diff --git a/src/types.ts b/src/application/types.ts similarity index 91% rename from src/types.ts rename to src/application/types.ts index 4e88cfc..16ee39a 100644 --- a/src/types.ts +++ b/src/application/types.ts @@ -4,6 +4,12 @@ export type Notification = { message?: string } +export type HttpResponse = { + success: boolean + message?: string + data?: T +} + export type AssetDataT = { key: string data: string @@ -157,7 +163,6 @@ export type CharacterType = { export type CharacterHair = { id: number name: string - spriteId: string sprite: Sprite gender: CharacterGender isSelectable: boolean @@ -185,6 +190,7 @@ export type Character = { zone: Zone chats: Chat[] items: CharacterItem[] + equipment: CharacterEquipment[] } export type ZoneCharacter = { @@ -201,6 +207,22 @@ export type CharacterItem = { quantity: number } +export type CharacterEquipment = { + id: number + slot: CharacterEquipmentSlotType + characterItemId: number + characterItem: CharacterItem +} + +export enum CharacterEquipmentSlotType { + HEAD = 'HEAD', + BODY = 'BODY', + ARMS = 'ARMS', + LEGS = 'LEGS', + NECK = 'NECK', + RING = 'RING' +} + export type Sprite = { id: string name: string diff --git a/src/utilities.ts b/src/application/utilities.ts similarity index 100% rename from src/utilities.ts rename to src/application/utilities.ts diff --git a/src/components/Effects.vue b/src/components/Effects.vue index fa327b7..c9c100a 100644 --- a/src/components/Effects.vue +++ b/src/components/Effects.vue @@ -7,7 +7,7 @@ import { Scene } from 'phavuer' import { useZoneStore } from '@/stores/zoneStore' import { useGameStore } from '@/stores/gameStore' import { onBeforeUnmount, onMounted, ref, watch } from 'vue' -import type { WeatherState } from '@/types' +import type { WeatherState } from '@/application/types' // Constants const LIGHT_CONFIG = { diff --git a/src/components/game/character/Character.vue b/src/components/game/character/Character.vue index d90c953..38e4e04 100644 --- a/src/components/game/character/Character.vue +++ b/src/components/game/character/Character.vue @@ -3,22 +3,24 @@ + diff --git a/src/components/game/character/partials/CharacterHair.vue b/src/components/game/character/partials/CharacterHair.vue index a75a739..b8e25b6 100644 --- a/src/components/game/character/partials/CharacterHair.vue +++ b/src/components/game/character/partials/CharacterHair.vue @@ -5,7 +5,7 @@