pub struct MapSettings {
pub max_failed_behavior_count: i64,
pub name: &'static str,
pub asteroids: LuaAny,
pub difficulty_settings: LuaAny,
pub enemy_evolution: LuaAny,
pub enemy_expansion: LuaAny,
pub path_finder: LuaAny,
pub pollution: LuaAny,
pub unit_group: LuaAny,
}Expand description
Minimal MapSettings for data.extend.
The default map settings.
type = "map-settings" is injected by the Lua generator.
Fields§
§max_failed_behavior_count: i64If a behavior fails this many times, the enemy (or enemy group) is destroyed. This solves biters stuck within their own base.
name: &'static strName of the map-settings. Base game uses “map-settings”.
asteroids: LuaAnyPrototype property asteroids.
difficulty_settings: LuaAnyPrototype property difficulty_settings.
enemy_evolution: LuaAnyPrototype property enemy_evolution.
enemy_expansion: LuaAnyPrototype property enemy_expansion.
path_finder: LuaAnyPrototype property path_finder.
pollution: LuaAnyPrototype property pollution.
unit_group: LuaAnyPrototype property unit_group.
Trait Implementations§
Source§impl Clone for MapSettings
impl Clone for MapSettings
Source§fn clone(&self) -> MapSettings
fn clone(&self) -> MapSettings
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MapSettings
Source§impl Debug for MapSettings
impl Debug for MapSettings
Source§impl Default for MapSettings
impl Default for MapSettings
Source§fn default() -> MapSettings
fn default() -> MapSettings
Returns the “default value” for a type. Read more
impl Eq for MapSettings
Source§impl PartialEq for MapSettings
impl PartialEq for MapSettings
impl StructuralPartialEq for MapSettings
Auto Trait Implementations§
impl Freeze for MapSettings
impl RefUnwindSafe for MapSettings
impl Send for MapSettings
impl Sync for MapSettings
impl Unpin for MapSettings
impl UnsafeUnpin for MapSettings
impl UnwindSafe for MapSettings
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more