Skip to main content

nil_payload/infrastructure/
stable.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::infrastructure::building::stable::recruit_queue::{
6  StableRecruitOrderId,
7  StableRecruitOrderRequest,
8};
9use nil_core::world::config::WorldId;
10use serde::{Deserialize, Serialize};
11
12#[derive(Clone, Debug, Deserialize, Serialize)]
13#[serde(rename_all = "camelCase")]
14pub struct AddStableRecruitOrderRequest {
15  pub world: WorldId,
16  pub request: StableRecruitOrderRequest,
17}
18
19#[derive(Clone, Debug, Deserialize, Serialize)]
20#[serde(rename_all = "camelCase")]
21pub struct CancelStableRecruitOrderRequest {
22  pub world: WorldId,
23  pub coord: Coord,
24  pub id: StableRecruitOrderId,
25}
26
27#[derive(Clone, Debug, Deserialize, Serialize)]
28#[serde(rename_all = "camelCase")]
29pub struct GetStableRecruitCatalogRequest {
30  pub world: WorldId,
31  pub coord: Coord,
32}