Class DeliveryRegistry
- Namespace
- S1API.Deliveries
- Assembly
- S1API.dll
Discovers active deliveries and immutable delivery-history snapshots.
public static class DeliveryRegistry
- Inheritance
-
DeliveryRegistry
- Inherited Members
Remarks
This API intentionally does not create, mutate, or complete deliveries. Those operations are server-authoritative native flows and are not exposed until they can be represented safely.
Methods
GetAll()
Gets an immutable snapshot of all active deliveries.
public static IReadOnlyList<Delivery> GetAll()
Returns
GetById(string)
Finds an active delivery by its unique identifier.
public static Delivery? GetById(string id)
Parameters
idstringThe delivery identifier to find.
Returns
GetForShop(Shop)
Gets an immutable snapshot of active deliveries placed with a shop.
public static IReadOnlyList<Delivery> GetForShop(Shop shop)
Parameters
shopShopThe wrapped shop whose deliveries should be returned.
Returns
Exceptions
- ArgumentNullException
Thrown when
shopis null.
GetForShop(string)
Gets an immutable snapshot of active deliveries placed with a shop name.
public static IReadOnlyList<Delivery> GetForShop(string shopName)
Parameters
shopNamestringThe stable native shop name stored on delivery records.
Returns
GetHistory()
Gets an immutable snapshot of the delivery receipts visible in the in-game order history.
public static IReadOnlyList<DeliveryReceipt> GetHistory()
Returns
Events
Completed
Raised after a delivery's native status becomes Completed.
public static event Action<Delivery>? Completed
Event Type
Created
Raised after an active delivery is received by the game.
public static event Action<Delivery>? Created
Event Type
StatusChanged
Raised after an active delivery changes lifecycle state. The second and third callback values are the previous and current states.
public static event Action<Delivery, DeliveryStatus, DeliveryStatus>? StatusChanged