nil-core 0.5.5

Multiplayer strategy game
Documentation
// Copyright (C) Call of Nil contributors
// SPDX-License-Identifier: AGPL-3.0-only

mod behavior;
mod city;
mod infrastructure;
mod military;
mod npc;
mod player;
mod resources;
mod round;

#[doc(hidden)]
#[macro_export]
macro_rules! bail_if_cheats_are_not_allowed {
  ($world:expr) => {
    if !$world.config.are_cheats_allowed() {
      use $crate::error::Error;
      return Err(Error::CheatingNotAllowed);
    }
  };
}