pub struct TheGameDefsBuilder { /* private fields */ }
Expand description
Builder for TheGameDefs
.
Implementations§
Source§impl TheGameDefsBuilder
impl TheGameDefsBuilder
Sourcepub fn initial_energy(&mut self, value: f64) -> &mut Self
pub fn initial_energy(&mut self, value: f64) -> &mut Self
Initial Energy
Sourcepub fn initial_photon_torpedoes(&mut self, value: i32) -> &mut Self
pub fn initial_photon_torpedoes(&mut self, value: i32) -> &mut Self
Initial Photon Torpedoes
Sourcepub fn beginning_stardate(&mut self, value: StarDate) -> &mut Self
pub fn beginning_stardate(&mut self, value: StarDate) -> &mut Self
Initial StarDate
Sourcepub fn ending_stardate(&mut self, value: StarDate) -> &mut Self
pub fn ending_stardate(&mut self, value: StarDate) -> &mut Self
Final StarDate
Sourcepub fn initial_total_klingons(&mut self, value: i32) -> &mut Self
pub fn initial_total_klingons(&mut self, value: i32) -> &mut Self
Initial total Klingons
pub fn starbase_frequency(&mut self, value: f64) -> &mut Self
pub fn s9(&mut self, value: f64) -> &mut Self
pub fn x(&mut self, value: i32) -> &mut Self
pub fn y(&mut self, value: i32) -> &mut Self
pub fn x1(&mut self, value: f64) -> &mut Self
pub fn y1(&mut self, value: f64) -> &mut Self
pub fn x2(&mut self, value: f64) -> &mut Self
pub fn y2(&mut self, value: f64) -> &mut Self
Trait Implementations§
Source§impl Clone for TheGameDefsBuilder
impl Clone for TheGameDefsBuilder
Source§fn clone(&self) -> TheGameDefsBuilder
fn clone(&self) -> TheGameDefsBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for TheGameDefsBuilder
impl Default for TheGameDefsBuilder
Source§fn default() -> TheGameDefsBuilder
fn default() -> TheGameDefsBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TheGameDefsBuilder
impl RefUnwindSafe for TheGameDefsBuilder
impl Send for TheGameDefsBuilder
impl Sync for TheGameDefsBuilder
impl Unpin for TheGameDefsBuilder
impl UnwindSafe for TheGameDefsBuilder
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