Table of Contents

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

LandVehicle

Destination

Gets the wrapped destination property, or null while it is unavailable.

public PropertyWrapper? Destination { get; }

Property Value

PropertyWrapper

DestinationCode

Gets the property code of the delivery destination.

public string DestinationCode { get; }

Property Value

string

Id

Gets the delivery's unique identifier.

public string Id { get; }

Property Value

string

Items

Gets an immutable snapshot of the currently ordered items.

public IReadOnlyList<DeliveryItem> Items { get; }

Property Value

IReadOnlyList<DeliveryItem>

LoadingDockIndex

Gets the zero-based loading-dock index selected for the order.

public int LoadingDockIndex { get; }

Property Value

int

MinutesUntilArrival

Gets the remaining in-game minutes before arrival.

public int MinutesUntilArrival { get; }

Property Value

int

Shop

Gets the shop associated with this delivery, or null while it is unavailable.

public Shop? Shop { get; }

Property Value

Shop

Status

Gets the delivery's current lifecycle state.

public DeliveryStatus Status { get; }

Property Value

DeliveryStatus

StoreName

Gets the stable shop name that accepted the order.

public string StoreName { get; }

Property Value

string

Methods

ToReceipt()

Creates an immutable receipt snapshot of the current delivery.

public DeliveryReceipt ToReceipt()

Returns

DeliveryReceipt