use bon::Builder;
use nil_core::city::stability::Stability;
use nil_core::continent::coord::Coord;
use nil_core::ruler::Ruler;
use nil_core::world::config::WorldId;
use serde::{Deserialize, Serialize};
use std::collections::HashSet;
#[cfg(feature = "typescript")]
use ts_rs::TS;
#[derive(Builder, Clone, Debug, Deserialize, Serialize)]
#[serde(rename_all = "camelCase")]
#[cfg_attr(feature = "typescript", derive(TS))]
#[cfg_attr(feature = "typescript", ts(export))]
pub struct CheatGetCitiesRequest {
#[builder(start_fn, into)]
pub world: WorldId,
#[serde(default)]
#[builder(default, with = FromIterator::from_iter)]
pub coords: HashSet<Coord>,
#[serde(default)]
#[builder(default)]
pub score: bool,
#[serde(default)]
#[builder(default)]
pub all: bool,
}
#[derive(Builder, Clone, Debug, Deserialize, Serialize)]
#[serde(rename_all = "camelCase")]
#[cfg_attr(feature = "typescript", derive(TS))]
#[cfg_attr(feature = "typescript", ts(export))]
pub struct CheatGetCityRequest {
#[builder(start_fn, into)]
pub world: WorldId,
#[builder(into)]
pub coord: Coord,
#[serde(default)]
#[builder(default)]
pub score: bool,
}
#[derive(Builder, Clone, Debug, Deserialize, Serialize)]
#[serde(rename_all = "camelCase")]
#[cfg_attr(feature = "typescript", derive(TS))]
#[cfg_attr(feature = "typescript", ts(export))]
pub struct CheatSetStabilityRequest {
#[builder(start_fn, into)]
pub world: WorldId,
#[builder(into)]
pub coord: Coord,
#[builder(into)]
pub stability: Stability,
}
#[derive(Builder, Clone, Debug, Deserialize, Serialize)]
#[serde(rename_all = "camelCase")]
#[cfg_attr(feature = "typescript", derive(TS))]
#[cfg_attr(feature = "typescript", ts(export))]
pub struct CheatSpawnCityRequest {
#[builder(start_fn, into)]
pub world: WorldId,
#[serde(default)]
#[builder(into)]
pub ruler: Option<Ruler>,
#[builder(into)]
pub coord: Coord,
}