Skip to main content

nil_payload/
continent.rs

1// Copyright (C) Call of Nil contributors
2// SPDX-License-Identifier: AGPL-3.0-only
3
4use nil_core::continent::Coord;
5use nil_core::world::config::WorldId;
6use serde::{Deserialize, Serialize};
7
8#[derive(Clone, Debug, Deserialize, Serialize)]
9#[serde(rename_all = "camelCase")]
10pub struct GetContinentSizeRequest {
11  pub world: WorldId,
12}
13
14#[derive(Clone, Debug, Deserialize, Serialize)]
15#[serde(rename_all = "camelCase")]
16pub struct GetPublicFieldRequest {
17  pub world: WorldId,
18  pub coord: Coord,
19}
20#[derive(Clone, Debug, Deserialize, Serialize)]
21#[serde(rename_all = "camelCase")]
22pub struct GetPublicFieldsRequest {
23  pub world: WorldId,
24  pub coords: Vec<Coord>,
25}