nil_payload/infrastructure/mod.rs
1// Copyright (C) Call of Nil contributors
2// SPDX-License-Identifier: AGPL-3.0-only
3
4pub mod academy;
5pub mod prefecture;
6pub mod stable;
7pub mod workshop;
8
9use nil_core::continent::Coord;
10use nil_core::infrastructure::building::BuildingId;
11use nil_core::world::config::WorldId;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Debug, Deserialize, Serialize)]
15#[serde(rename_all = "camelCase")]
16pub struct ToggleBuildingRequest {
17 pub world: WorldId,
18 pub coord: Coord,
19 pub id: BuildingId,
20 pub enabled: bool,
21}