pub struct GodController {
pub inventory_size: i64,
pub item_pickup_distance: f64,
pub loot_pickup_distance: f64,
pub mining_speed: f64,
pub movement_speed: f64,
pub name: &'static str,
pub crafting_categories: Option<&'static [&'static str]>,
pub mining_categories: Option<&'static [&'static str]>,
}Expand description
Minimal GodControllerPrototype for data.extend.
Properties of the god controller.
type = "god-controller" is injected by the Lua generator.
Fields§
§inventory_size: i64Prototype property inventory_size.
item_pickup_distance: f64Prototype property item_pickup_distance.
loot_pickup_distance: f64Prototype property loot_pickup_distance.
mining_speed: f64Prototype property mining_speed.
movement_speed: f64Must be >= 0.34375.
name: &'static strName of the god-controller. Base game uses “default”.
crafting_categories: Option<&'static [&'static str]>Names of the crafting categories the player can craft recipes from.
mining_categories: Option<&'static [&'static str]>Names of the resource categories the player can mine resources from.
Trait Implementations§
Source§impl Clone for GodController
impl Clone for GodController
Source§fn clone(&self) -> GodController
fn clone(&self) -> GodController
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 GodController
Source§impl Debug for GodController
impl Debug for GodController
Source§impl Default for GodController
impl Default for GodController
Source§fn default() -> GodController
fn default() -> GodController
Returns the “default value” for a type. Read more
Source§impl PartialEq for GodController
impl PartialEq for GodController
impl StructuralPartialEq for GodController
Auto Trait Implementations§
impl Freeze for GodController
impl RefUnwindSafe for GodController
impl Send for GodController
impl Sync for GodController
impl Unpin for GodController
impl UnsafeUnpin for GodController
impl UnwindSafe for GodController
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