package model

type NewRequest struct {
	Seed *Seed `json:"seed,omitempty"`
}

type Route struct {
	Path    [][2]int `json:"path"`
	Time    int      `json:"time"`
	Dusk    bool     `json:"dusk"`
	Hazard  int      `json:"hazard,omitempty"`
	Blocked string   `json:"blocked,omitempty"`
}

type Action struct {
	Kind    string `json:"kind"`
	T       int64  `json:"t"`
	X       int    `json:"x,omitempty"`
	Y       int    `json:"y,omitempty"`
	Steps   int    `json:"steps,omitempty"`
	ID      string `json:"id,omitempty"`
	Unit    string `json:"unit,omitempty"`
	Item    string `json:"item,omitempty"`
	Unequip bool   `json:"unequip,omitempty"`
	Text    string `json:"text,omitempty"`
}

type Entry struct {
	Action
	Err string `json:"err,omitempty"`
}

type Header struct {
	Game    string `json:"game"`
	Seed    Seed   `json:"seed"`
	Started int64  `json:"started"`
	Version int    `json:"version"`
}

type Run struct {
	Game    string    `json:"game"`
	Seed    Seed      `json:"seed"`
	Phase   string    `json:"phase"`
	Mission string    `json:"mission"`
	Boss    string    `json:"boss"`
	Day     int       `json:"day"`
	Keys    int       `json:"keys"`
	KeysOf  int       `json:"keysOf"`
	Gold    int       `json:"gold"`
	Summary Summary   `json:"summary"`
	Party   []RunHero `json:"party"`
}

type RunHero struct {
	Name  string `json:"name"`
	Race  string `json:"race"`
	Class string `json:"class"`
	Level int    `json:"level"`
}

type ErrorResponse struct {
	Error string `json:"error"`
}
