pub struct LoadGameEvent {
pub commander: String,
pub fid: String,
pub horizons: bool,
pub odyssey: bool,
pub ship_info: Option<LoadGameEventShipInfo>,
pub game_mode: Option<LoadGameEventGameMode>,
pub credits: u64,
pub loan: u64,
}
Expand description
Fired when loading into the game.
Fields§
§commander: String
The name of the player.
fid: String
The Frontier ID of the player.
horizons: bool
Whether horizons content has been enabled.
odyssey: bool
Whether odyssey content has been enabled.
ship_info: Option<LoadGameEventShipInfo>
Information about the current active ship of the player.
game_mode: Option<LoadGameEventGameMode>
The gamemode the player loaded into.
credits: u64
The number of credits the player has in the bank.
loan: u64
The number of credits the player has open in loans.
Trait Implementations§
Source§impl Clone for LoadGameEvent
impl Clone for LoadGameEvent
Source§fn clone(&self) -> LoadGameEvent
fn clone(&self) -> LoadGameEvent
Returns a copy 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 Debug for LoadGameEvent
impl Debug for LoadGameEvent
Source§impl<'de> Deserialize<'de> for LoadGameEvent
impl<'de> Deserialize<'de> for LoadGameEvent
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
Source§impl PartialEq for LoadGameEvent
impl PartialEq for LoadGameEvent
Source§impl Serialize for LoadGameEvent
impl Serialize for LoadGameEvent
impl StructuralPartialEq for LoadGameEvent
Auto Trait Implementations§
impl Freeze for LoadGameEvent
impl RefUnwindSafe for LoadGameEvent
impl Send for LoadGameEvent
impl Sync for LoadGameEvent
impl Unpin for LoadGameEvent
impl UnwindSafe for LoadGameEvent
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