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
GUID
Gets the stable GUID assigned to this loading dock.
public string GUID { get; }
Property Value
InputSlots
Gets an immutable snapshot of the dock's input slots.
public IReadOnlyList<ItemSlotInstance> InputSlots { get; }
Property Value
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
IsDestroyed
Gets whether the dock has been removed from transit routing.
public bool IsDestroyed { get; }
Property Value
IsInUse
Gets whether a dynamic or static vehicle currently occupies the dock.
public bool IsInUse { get; }
Property Value
Name
Gets the display name assigned by the owning property.
public string Name { get; }
Property Value
OutputSlots
Gets an immutable snapshot of the dock's output slots.
public IReadOnlyList<ItemSlotInstance> OutputSlots { get; }
Property Value
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
StaticOccupant
Gets the delivery vehicle assigned to the dock, or null when none is assigned.
public LandVehicle? StaticOccupant { get; }
Property Value
Events
AcceptingItemsChanged
Raised after the accepting-items state changes.
public event Action<bool, bool>? AcceptingItemsChanged
Event Type
DynamicOccupantChanged
Raised after the dynamically detected vehicle changes.
public event Action<LandVehicle?, LandVehicle?>? DynamicOccupantChanged
Event Type
StaticOccupantChanged
Raised after the assigned delivery vehicle changes.
public event Action<LandVehicle?, LandVehicle?>? StaticOccupantChanged