nil_payload/cheat/player.rs
1// Copyright (C) Call of Nil contributors
2// SPDX-License-Identifier: AGPL-3.0-only
3
4use nil_core::player::PlayerId;
5use nil_core::world::config::WorldId;
6use serde::{Deserialize, Serialize};
7
8#[derive(Clone, Debug, Deserialize, Serialize)]
9#[serde(rename_all = "camelCase")]
10pub struct CheatGetPlayerRequest {
11 pub world: WorldId,
12 #[serde(default)]
13 pub player: Option<PlayerId>,
14}
15
16#[derive(Clone, Debug, Deserialize, Serialize)]
17#[serde(rename_all = "camelCase")]
18pub struct CheatGetPlayersRequest {
19 pub world: WorldId,
20}