pub struct ShipyardBuyEvent {
pub ship_type: ShipType,
pub ship_type_localized: Option<String>,
pub ship_price: u64,
pub old_ship_action: ShipyardBuyEventOldShipAction,
pub market_id: u64,
}
Expand description
Fired when the player buys a new ship.
Fields§
§ship_type: ShipType
The ship type for the newly bought ship.
ship_type_localized: Option<String>
The localized ship type for the newly bought ship.
ship_price: u64
The amount of credits the player has spent on the new ship.
old_ship_action: ShipyardBuyEventOldShipAction
What the player did with their current ship when buying the new ship.
market_id: u64
The current market id the action was performed. This is also where the current ship will be stored if the player choose to store their current ship.
Trait Implementations§
Source§impl Clone for ShipyardBuyEvent
impl Clone for ShipyardBuyEvent
Source§fn clone(&self) -> ShipyardBuyEvent
fn clone(&self) -> ShipyardBuyEvent
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 ShipyardBuyEvent
impl Debug for ShipyardBuyEvent
Source§impl<'de> Deserialize<'de> for ShipyardBuyEvent
impl<'de> Deserialize<'de> for ShipyardBuyEvent
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 ShipyardBuyEvent
impl PartialEq for ShipyardBuyEvent
Source§impl Serialize for ShipyardBuyEvent
impl Serialize for ShipyardBuyEvent
impl StructuralPartialEq for ShipyardBuyEvent
Auto Trait Implementations§
impl Freeze for ShipyardBuyEvent
impl RefUnwindSafe for ShipyardBuyEvent
impl Send for ShipyardBuyEvent
impl Sync for ShipyardBuyEvent
impl Unpin for ShipyardBuyEvent
impl UnwindSafe for ShipyardBuyEvent
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