Table of Contents

Class LoadingDock

Namespace
S1API.Deliveries
Assembly
S1API.dll

Provides read-only access to a property's native loading dock.

public sealed class LoadingDock
Inheritance
LoadingDock
Inherited Members
Extension Methods

Remarks

Scalar properties reflect the live dock state. Slot collections are immutable snapshots containing live ItemSlotInstance wrappers. Instances are cached for the loaded scene so property and delivery lookups share event subscriptions. Resolve the dock again after a scene or save transition. Events report state observed by the local peer and do not add network replication.

Properties

DynamicOccupant

Gets the vehicle detected in the dock, or null when none is present.

public LandVehicle? DynamicOccupant { get; }

Property Value

LandVehicle

GUID

Gets the stable GUID assigned to this loading dock.

public string GUID { get; }

Property Value

string

InputSlots

Gets an immutable snapshot of the dock's input slots.

public IReadOnlyList<ItemSlotInstance> InputSlots { get; }

Property Value

IReadOnlyList<ItemSlotInstance>

Remarks

The collection cannot be modified, but each contained slot retains the behavior of the existing ItemSlotInstance API.

IsAcceptingItems

Gets whether the dock currently accepts incoming transit items.

public bool IsAcceptingItems { get; }

Property Value

bool

IsDestroyed

Gets whether the dock has been removed from transit routing.

public bool IsDestroyed { get; }

Property Value

bool

IsInUse

Gets whether a dynamic or static vehicle currently occupies the dock.

public bool IsInUse { get; }

Property Value

bool

Name

Gets the display name assigned by the owning property.

public string Name { get; }

Property Value

string

OutputSlots

Gets an immutable snapshot of the dock's output slots.

public IReadOnlyList<ItemSlotInstance> OutputSlots { get; }

Property Value

IReadOnlyList<ItemSlotInstance>

Remarks

The collection cannot be modified, but each contained slot retains the behavior of the existing ItemSlotInstance API.

Property

Gets the owning property, or null while it is unavailable.

public PropertyWrapper? Property { get; }

Property Value

PropertyWrapper

StaticOccupant

Gets the delivery vehicle assigned to the dock, or null when none is assigned.

public LandVehicle? StaticOccupant { get; }

Property Value

LandVehicle

Events

AcceptingItemsChanged

Raised after the accepting-items state changes.

public event Action<bool, bool>? AcceptingItemsChanged

Event Type

Action<bool, bool>

DynamicOccupantChanged

Raised after the dynamically detected vehicle changes.

public event Action<LandVehicle?, LandVehicle?>? DynamicOccupantChanged

Event Type

Action<LandVehicle, LandVehicle>

StaticOccupantChanged

Raised after the assigned delivery vehicle changes.

public event Action<LandVehicle?, LandVehicle?>? StaticOccupantChanged

Event Type

Action<LandVehicle, LandVehicle>