nil_core/world/cheat/
mod.rs1mod behavior;
5mod city;
6mod infrastructure;
7mod military;
8mod npc;
9mod player;
10mod resources;
11mod round;
12
13pub use behavior::get_build_steps;
14pub use city::{fill_world, get_city, set_stability, spawn_city};
15pub use infrastructure::{
16 get_academy_recruit_queue,
17 get_academy_recruit_queues,
18 get_all_academy_recruit_queues,
19 get_all_prefecture_build_queues,
20 get_all_stable_recruit_queues,
21 get_infrastructure,
22 get_prefecture_build_queue,
23 get_prefecture_build_queues,
24 get_stable_recruit_queue,
25 get_stable_recruit_queues,
26 get_storage_capacity,
27 set_building_level,
28 set_max_infrastructure,
29};
30pub use military::{
31 get_idle_armies_at,
32 get_idle_personnel_at,
33 get_maneuvers,
34 get_maneuvers_of,
35 spawn_personnel,
36};
37pub use npc::{get_ethics, set_bot_ethics, spawn_bot};
38pub use player::{get_player, get_players};
39pub use resources::{
40 get_resources,
41 set_food,
42 set_iron,
43 set_max_food,
44 set_max_iron,
45 set_max_resources,
46 set_max_silo_resources,
47 set_max_stone,
48 set_max_warehouse_resources,
49 set_max_wood,
50 set_resources,
51 set_stone,
52 set_wood,
53};
54pub use round::skip_round;
55
56#[doc(hidden)]
57#[macro_export]
58macro_rules! bail_if_cheats_are_not_allowed {
59 ($world:expr) => {
60 if !$world.config.are_cheats_allowed() {
61 use $crate::error::Error;
62 return Err(Error::CheatingNotAllowed);
63 }
64 };
65}