Class NPCSupplier
Provides safe runtime access to native supplier behavior for an NPC.
public sealed class NPCSupplier
- Inheritance
-
NPCSupplier
- Inherited Members
- Extension Methods
Properties
ActiveDeliveries
Gets a read-only collection snapshot of live delivery wrappers for this supplier.
public IReadOnlyList<Delivery> ActiveDeliveries { get; }
Property Value
DeadDropLimit
Gets the relationship-scaled dead-drop spending limit.
public float DeadDropLimit { get; }
Property Value
Debt
Gets the player's current debt to this supplier.
public float Debt { get; }
Property Value
DeliveriesEnabled
Gets whether delivery orders have been unlocked for this supplier.
public bool DeliveriesEnabled { get; }
Property Value
IsSupplier
Gets whether the wrapped NPC currently has a native supplier root.
public bool IsSupplier { get; }
Property Value
MinutesUntilDeadDropReady
Gets the number of in-game minutes until the active dead drop is ready, or -1 when none is pending.
public int MinutesUntilDeadDropReady { get; }
Property Value
Shop
Gets the supplier's wrapped shop, or null until its runtime infrastructure is ready.
public Shop? Shop { get; }
Property Value
Stash
Gets the supplier's wrapped stash storage, or null until it is ready.
public StorageInstance? Stash { get; }
Property Value
Status
Gets the supplier's current activity state.
public SupplierStatus Status { get; }
Property Value
Methods
EndMeeting()
Ends the supplier's active meeting, if one is in progress.
public void EndMeeting()
Exceptions
- InvalidOperationException
Thrown when the wrapped NPC is not a supplier or the caller is not the server/host.
Unlock()
Unlocks this supplier through the native networked supplier flow.
public void Unlock()
Remarks
This is a client-safe request; the native supplier RPC performs the authoritative change.
Exceptions
- InvalidOperationException
Thrown when the wrapped NPC is not a supplier.
Events
OnDeadDropReady
Raised when the supplier's dead-drop contents become ready.
public event Action OnDeadDropReady