Table of Contents

Class NPCSupplier

Namespace
S1API.Entities
Assembly
S1API.dll

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

IReadOnlyList<Delivery>

DeadDropLimit

Gets the relationship-scaled dead-drop spending limit.

public float DeadDropLimit { get; }

Property Value

float

Debt

Gets the player's current debt to this supplier.

public float Debt { get; }

Property Value

float

DeliveriesEnabled

Gets whether delivery orders have been unlocked for this supplier.

public bool DeliveriesEnabled { get; }

Property Value

bool

IsSupplier

Gets whether the wrapped NPC currently has a native supplier root.

public bool IsSupplier { get; }

Property Value

bool

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

int

Shop

Gets the supplier's wrapped shop, or null until its runtime infrastructure is ready.

public Shop? Shop { get; }

Property Value

Shop

Stash

Gets the supplier's wrapped stash storage, or null until it is ready.

public StorageInstance? Stash { get; }

Property Value

StorageInstance

Status

Gets the supplier's current activity state.

public SupplierStatus Status { get; }

Property Value

SupplierStatus

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

Event Type

Action