Struct rusty_sword_arena::game::GameSetting[][src]

pub struct GameSetting {
    pub version: String,
    pub max_players: u8,
    pub acceleration: f32,
    pub max_velocity: f32,
    pub drag: f32,
    pub move_threshold: f32,
    pub respawn_delay: u64,
    pub drop_delay: u64,
}

Server returns a GameSetting in response to receiving a PlayerSync Game settings and player names and colors (including your own) are all in there. You will need to re-parse this every time someone joins or leaves the game.

Fields

Version number of the server you are connecting to. Compare to rusty_sword_arena::version

The maximum amount of players this server will allow

How quickly a player can get moving (magnitude in OpenGL units per second^2)

Maximum velocity of a player (magnitude in OpenGL units per second)

How much drag there is on movement when the player is not trying to move (how quick you stop)

Move threshold. Magnitude of Vector2 below which a move_speed will be considered 0.

Milliseconds. How long the server will wait to respawn a player who dies.

Milliseconds. How long the server will allow not receiving input before dropping a player.

Methods

impl GameSetting
[src]

Trait Implementations

impl Clone for GameSetting
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for GameSetting
[src]

Formats the value using the given formatter. Read more

impl PartialEq for GameSetting
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Hash for GameSetting
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations

impl Send for GameSetting

impl Sync for GameSetting