Skip to main content

nil_payload/
round.rs

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