Skip to main content

nil_payload/npc/
bot.rs

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