Class Delivery
- Namespace
- S1API.Deliveries
- Assembly
- S1API.dll
Provides read-only access to a currently active in-game delivery.
public sealed class Delivery
- Inheritance
-
Delivery
- Inherited Members
- Extension Methods
Remarks
Scalar properties reflect the live delivery state. Items and ToReceipt() return immutable snapshots.
Properties
ActiveVehicle
Gets the active delivery vehicle, or null until the delivery has arrived.
public LandVehicle? ActiveVehicle { get; }
Property Value
Destination
Gets the wrapped destination property, or null while it is unavailable.
public PropertyWrapper? Destination { get; }
Property Value
DestinationCode
Gets the property code of the delivery destination.
public string DestinationCode { get; }
Property Value
Id
Gets the delivery's unique identifier.
public string Id { get; }
Property Value
Items
Gets an immutable snapshot of the currently ordered items.
public IReadOnlyList<DeliveryItem> Items { get; }
Property Value
LoadingDockIndex
Gets the zero-based loading-dock index selected for the order.
public int LoadingDockIndex { get; }
Property Value
MinutesUntilArrival
Gets the remaining in-game minutes before arrival.
public int MinutesUntilArrival { get; }
Property Value
Shop
Gets the shop associated with this delivery, or null while it is unavailable.
public Shop? Shop { get; }
Property Value
Status
Gets the delivery's current lifecycle state.
public DeliveryStatus Status { get; }
Property Value
StoreName
Gets the stable shop name that accepted the order.
public string StoreName { get; }
Property Value
Methods
ToReceipt()
Creates an immutable receipt snapshot of the current delivery.
public DeliveryReceipt ToReceipt()