Table of Contents

Class Contract

Namespace
S1API.Economy
Assembly
S1API.dll

Read-only wrapper for a base game Contract quest instance.

public sealed class Contract
Inheritance
Contract
Inherited Members
Extension Methods

Properties

Payment

Base payment amount for the contract.

public float Payment { get; }

Property Value

float

TotalQuantity

Total ordered quantity across all entries.

public int TotalQuantity { get; }

Property Value

int

WindowEndTime

Delivery window end time (hhmm) if enabled; otherwise 0.

public int WindowEndTime { get; }

Property Value

int

WindowStartTime

Delivery window start time (hhmm) if enabled; otherwise 0.

public int WindowStartTime { get; }

Property Value

int

Methods

GetOrders()

Enumerates order lines for this contract.

public IEnumerable<(string productId, int quantity, Quality minQuality)> GetOrders()

Returns

IEnumerable<(string productId, int quantity, Quality minQuality)>