nil-payload 0.7.7

Multiplayer strategy game
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright (C) Call of Nil contributors
// SPDX-License-Identifier: AGPL-3.0-only

use bon::Builder;
use nil_core::world::config::WorldId;
use serde::{Deserialize, Serialize};
use std::num::NonZeroU8;

#[derive(Builder, Clone, Debug, Deserialize, Serialize)]
#[serde(rename_all = "camelCase")]
#[cfg_attr(feature = "typescript", derive(ts_rs::TS))]
#[cfg_attr(feature = "typescript", ts(export))]
pub struct CheatSkipRoundRequest {
  #[builder(start_fn, into)]
  pub world: WorldId,
  #[builder(default = NonZeroU8::MIN)]
  pub amount: NonZeroU8,
}