pub struct CargoDepotEvent {
pub mission_id: u64,
pub update_type: CargoDepotEventUpdateType,
pub cargo_type: Option<Commodity>,
pub count: Option<u16>,
pub start_market_id: u64,
pub end_market_id: u64,
pub items_collected: u16,
pub items_delivered: u16,
pub total_items_to_deliver: u16,
pub progress: f32,
}
Expand description
Fired when the player delivers or collects commodities for a given mission.
Fields§
§mission_id: u64
The id of the mission this event applies to.
update_type: CargoDepotEventUpdateType
The kind of action the player performed for this mission.
cargo_type: Option<Commodity>
The commodity which were collected or delivered.
count: Option<u16>
The number of items which were collected or delivered.
start_market_id: u64
The market id where the player should collect the commodities from.
end_market_id: u64
The market id where the player should deliver the commodities to.
items_collected: u16
Total number of items which have been collected so far.
items_delivered: u16
Total number of items delivered so far.
total_items_to_deliver: u16
The total number of items which are required for the mission to be a success.
progress: f32
Current progress factor where 0 is no progress and 1 is completed.
Trait Implementations§
Source§impl Clone for CargoDepotEvent
impl Clone for CargoDepotEvent
Source§fn clone(&self) -> CargoDepotEvent
fn clone(&self) -> CargoDepotEvent
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 CargoDepotEvent
impl Debug for CargoDepotEvent
Source§impl<'de> Deserialize<'de> for CargoDepotEvent
impl<'de> Deserialize<'de> for CargoDepotEvent
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 CargoDepotEvent
impl PartialEq for CargoDepotEvent
Source§impl Serialize for CargoDepotEvent
impl Serialize for CargoDepotEvent
impl StructuralPartialEq for CargoDepotEvent
Auto Trait Implementations§
impl Freeze for CargoDepotEvent
impl RefUnwindSafe for CargoDepotEvent
impl Send for CargoDepotEvent
impl Sync for CargoDepotEvent
impl Unpin for CargoDepotEvent
impl UnwindSafe for CargoDepotEvent
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