Skip to main content

nil_payload/request/cheat/
behavior.rs

1// Copyright (C) Call of Nil contributors
2// SPDX-License-Identifier: AGPL-3.0-only
3
4use bon::Builder;
5use nil_core::continent::coord::Coord;
6use nil_core::world::config::WorldId;
7use serde::{Deserialize, Serialize};
8
9#[derive(Builder, Clone, Debug, Deserialize, Serialize)]
10#[serde(rename_all = "camelCase")]
11#[cfg_attr(feature = "typescript", derive(ts_rs::TS))]
12#[cfg_attr(feature = "typescript", ts(export))]
13pub struct CheatGetBuildStepsRequest {
14  #[builder(start_fn, into)]
15  pub world: WorldId,
16  #[builder(into)]
17  pub coord: Coord,
18}