// Game-related TypeScript interfaces and types

export interface PlayerState {
  location_id: string
  location_name: string
  health: number
  max_health: number
  stamina: number
  max_stamina: number
  inventory: any[]
  status_effects: any[]
}

export interface DirectionDetail {
  direction: string
  stamina_cost: number
  distance: number
  destination: string
  destination_name?: string
}

export interface Location {
  id: string
  name: string
  description: string
  directions: string[]
  directions_detailed?: DirectionDetail[]
  danger_level?: number
  npcs: any[]
  items: any[]
  image_url?: string
  interactables?: any[]
  other_players?: any[]
  corpses?: any[]
  tags?: string[]
}

export interface Profile {
  name: string
  level: number
  xp: number
  hp: number
  max_hp: number
  stamina: number
  max_stamina: number
  strength: number
  agility: number
  endurance: number
  intellect: number
  unspent_points: number
  is_dead: boolean
  max_weight?: number
  current_weight?: number
  max_volume?: number
  current_volume?: number
}

export interface CombatLogEntry {
  time: string
  message: string
  isPlayer: boolean
}

export interface LocationMessage {
  time: string
  message: string
}

export interface Equipment {
  [slot: string]: any
}

export interface CombatState {
  is_pvp?: boolean
  in_pvp_combat?: boolean
  pvp_combat?: any
  combat_over?: boolean
  [key: string]: any
}

export type WorkbenchTab = 'craft' | 'repair' | 'uncraft'
export type MobileMenuState = 'none' | 'left' | 'right' | 'bottom'
