use bon::Builder;
use nil_core::continent::coord::Coord;
use nil_core::world::config::WorldId;
use nil_payload_macros::FromWorld;
use serde::{Deserialize, Serialize};
#[derive(Builder, Clone, Debug, Deserialize, Serialize, FromWorld)]
#[serde(rename_all = "camelCase")]
#[cfg_attr(feature = "typescript", derive(ts_rs::TS))]
#[cfg_attr(feature = "typescript", ts(export))]
pub struct GetContinentSizeRequest {
#[builder(start_fn, into)]
pub world: WorldId,
}
#[derive(Builder, Clone, Debug, Deserialize, Serialize)]
#[serde(rename_all = "camelCase")]
#[cfg_attr(feature = "typescript", derive(ts_rs::TS))]
#[cfg_attr(feature = "typescript", ts(export))]
pub struct GetPublicFieldRequest {
#[builder(start_fn, into)]
pub world: WorldId,
#[builder(into)]
pub coord: Coord,
}
#[derive(Builder, Clone, Debug, Deserialize, Serialize)]
#[serde(rename_all = "camelCase")]
#[cfg_attr(feature = "typescript", derive(ts_rs::TS))]
#[cfg_attr(feature = "typescript", ts(export))]
pub struct GetPublicFieldsRequest {
#[builder(start_fn, into)]
pub world: WorldId,
#[serde(default)]
#[builder(default, with = FromIterator::from_iter)]
pub coords: Vec<Coord>,
}