pub struct GalaxyConfig {
pub system_count: usize,
pub size: GalaxySize,
pub systems: SystemConfig,
}Expand description
Configuration for the Galaxy
Fields§
§system_count: usizeStatic System Count
size: GalaxySizeGalaxy size
systems: SystemConfigSystem Config
Implementations§
Source§impl GalaxyConfig
impl GalaxyConfig
Sourcepub fn get_structure_production(
&self,
structure: &str,
level: usize,
) -> ProductionConfig
pub fn get_structure_production( &self, structure: &str, level: usize, ) -> ProductionConfig
Get the production for a single structure at a given level.
Sourcepub fn get_structure_storage(
&self,
structure: &str,
level: usize,
) -> StorageConfig
pub fn get_structure_storage( &self, structure: &str, level: usize, ) -> StorageConfig
Get the storage for a single structure at a given level.
Trait Implementations§
Source§impl Debug for GalaxyConfig
impl Debug for GalaxyConfig
Source§impl Default for GalaxyConfig
impl Default for GalaxyConfig
Source§fn default() -> GalaxyConfig
fn default() -> GalaxyConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GalaxyConfig
impl<'de> Deserialize<'de> for GalaxyConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for GalaxyConfig
impl RefUnwindSafe for GalaxyConfig
impl Send for GalaxyConfig
impl Sync for GalaxyConfig
impl Unpin for GalaxyConfig
impl UnsafeUnpin for GalaxyConfig
impl UnwindSafe for GalaxyConfig
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