[−][src]Struct pokemon_rust::config::GameConfig

pub struct GameConfig {
    pub player_walking_speed: f32,
    pub player_running_speed: f32,
    pub text_delay: f32,
    pub fade_duration: f32,
    pub player_starting_map: String,
    pub player_starting_position: (u32, u32),
    pub play_bgm: bool,
    pub play_sfx: bool,
    pub show_fps: bool,
}

Describes the available fields of settings.ron.

Fields

player_walking_speed: f32

The speed of the player when they're walking, in pixels/second.

player_running_speed: f32

The speed of the player when they're running, in pixels/second.

text_delay: f32

The delay between letters appearing within a text box, in characters/second. This can be less than the interval between frames: that results in multiple characters appearing per frame.

fade_duration: f32

The duration of fade in/out animations, in seconds.

player_starting_map: String

The starting map of the player.

player_starting_position: (u32, u32)

The starting position of the player, in Map Coordinates.

play_bgm: bool

Decides whether background music should be played.

play_sfx: bool

Decides whether sound effects should be played.

show_fps: bool

Decides whether the FPS should be printed.

Trait Implementations

impl Clone for GameConfig[src]

impl Debug for GameConfig[src]

impl Default for GameConfig[src]

impl<'de> Deserialize<'de> for GameConfig[src]

impl Serialize for GameConfig[src]

Auto Trait Implementations

impl RefUnwindSafe for GameConfig

impl Send for GameConfig

impl Sync for GameConfig

impl Unpin for GameConfig

impl UnwindSafe for GameConfig

Blanket Implementations

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
    D: AdaptFrom<S, Swp, Dwp, T>,
    Dwp: WhitePoint,
    Swp: WhitePoint,
    T: Component + Float, 
[src]

impl<T> Any for T where
    T: 'static + ?Sized, 
[src]

impl<T> Any for T where
    T: Any, 

impl<T> Borrow<T> for T where
    T: ?Sized, 
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized, 
[src]

impl<T> Clone for T where
    T: Clone, 
[src]

impl<T> Config for T where
    T: Deserialize<'a> + Serialize + Default, 

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Erased for T

impl<T> Event for T where
    T: Send + Sync + 'static, 

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Resource for T where
    T: Any + Send + Sync, 

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Serialize for T where
    T: Serialize + ?Sized, 
[src]

impl<T> SetParameter for T

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

impl<T> Supports<T> for T

impl<T> ToOwned for T where
    T: Clone, 
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> TryDefault for T where
    T: Default, 

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,