Unit ContractUnit
Description
Provides tools for managing mission data, contracts, and routes.
Overview
Classes, Interfaces, Objects and Records
| Name | Description |
|---|---|
Record TLoadingRecord |
Contains data relating to the loading station and the total number of crates loaded. |
Record TUnloadingRecord |
Contains data for one of the crate drop-off stations, including the count of unloaded crates categorized by size. |
Record TTradeRouteLeg |
Leg of Trade Route
|
Record TItemsStringListRecord |
String records for filling in TCheckBox |
Class TContractLeg |
Represents a transport contract within a main contract. |
Class TContract |
Represents a complete contract, consisting of one or more station-to-station contracts. |
Class EContractException |
Exception class for contract-related errors. |
Types
Constants
ContractRouteTypeArray: TContractRouteTypeArray = ('Undefined', 'A to B', 'Single to Multi', 'Multi to Single'); |
ContractCargoRouteArray: TContractCargoRouteArray = ('Undefined', 'Local', 'Planetary', 'Stellar', 'Interstellar'); |
UserRankArray: TUserRankArray = ('Undefined', 'Trainee', 'Rookie', 'Junior', 'Member', 'Experienced', 'Senior', 'Master'); |
ContractCargoGradeScaleArray: TContractCargoGradeScaleArray = ('Undefined',
'Small', 'Extra Small', 'Medium', 'Large', 'Extra Large',
'Cargo Transfer from Shuttered Facility',
'Small Scale', 'Medium Shipment', 'Large Shipment', 'Bulk Shipment'); |
ContractCargoGradeScaleDirectArray: TContractCargoGradeScaleDirectArray = ('Undefined', 'Direct', 'No Direct'); |
ContractTransportTypeArray: TContractTransportTypeArray = ('Undefined', 'Hauling', 'Delivery'); |
ContractDifficultyModifierArray: TContractDifficultyModifierArray = ('Undefined', 'Regular', 'Combat', 'Illegal'); |
TradeRouteLegItemArray: TTradeRouteLegItemArray = ('Undefined', 'Ignored', 'GroupId', 'GroupIdEnabled', 'LoadingStationName', 'UnloadingStationName',
'Commodity', 'SCU', 'SCUMaxSize',
'Done', 'Hide', 'SCUxSize'); |
TradeRouteLegItemErrorArray: array[TTradeRouteLegItemError] of String = ('None', 'Ignored', 'Generic Error', 'GroupId Error',
'LoadingStationName Error', 'UnloadingStationName Error',
'Commodity Error', 'SCU Error', 'SCUMaxSize Error',
'Done Error', 'Hide Error', 'SCUxSize Error'); |
Description
Types
TContractRouteType = (...); |
|
Type of contract route. Values
|
TContractRouteTypeArray = array[TContractRouteType] of String; |
|
Array of contract route types. |
TContractCargoRoute = (...); |
|
Type of contract cargo route. Values
|
TContractCargoRouteArray = array[TContractCargoRoute] of String; |
|
Array of contract cargo route types. |
TUserRank = (...); |
|
Type of user rank. Values
|
TUserRankArray = array[TUserRank] of String; |
|
Array of user ranks. |
TContractCargoGradeScale = (...); |
|
Type of contract cargo grade scale. Values
|
TContractCargoGradeScaleArray = array[TContractCargoGradeScale] of String; |
|
Array of contract cargo grade scale types. |
TContractCargoGradeScaleDirect = (...); |
|
Type of contract cargo grade scale direct. Values
|
TContractCargoGradeScaleDirectArray = array[TContractCargoGradeScaleDirect] of String; |
|
Array of contract cargo grade scale direct types. |
TContractTransportType = (...); |
|
Type of contract transport. Values
|
TContractTransportTypeArray = array[TContractTransportType] of String; |
|
Array of contract transport types. |
TContractDifficultyModifier = (...); |
|
Type of contract difficulty modifier. Values
|
TContractDifficultyModifierArray = array[TContractDifficultyModifier] of String; |
|
Array of contract difficulty modifier types. |
TTradeRouteLegList = specialize TList<TTradeRouteLeg>; |
|
List of TTradeRouteLeg. |
TTradeRouteLegArray = array of TTradeRouteLeg; |
|
Array of TTradeRouteLeg. |
TTradeRouteLegItem = (...); |
|
Enumeration of utilities for TTradeRouteLeg Values
|
TTradeRouteLegItemArray = array[TTradeRouteLegItem] of String; |
|
Array of TTradeRouteLegItem. |
TTradeRouteLegItemError = (...); |
|
Enumeration of utilities for TTradeRouteLeg Values
|
TTradeRouteLegChanged = procedure(Sender: TObject; AItem: TTradeRouteLegItem) of object; |
|
Notification when a single trade route leg changes. Sender = TPanelRow. |
TUnloadingRecordArray = array of TUnloadingRecord; |
|
Array of TUnloadingRecord. |
TIDArray = array of Integer; |
|
Array of Trade Route Leg IDs. |
TIDSet = specialize THashSet<Integer>; |
|
Set of |
TTradeRouteLegDictionary = specialize TDictionary<Integer, TTradeRouteLeg>; |
|
Dictionary of TTradeRouteLeg. |
TTradeRouteLegDictionaryPair = TTradeRouteLegDictionary.TDictionaryPair; |
|
Dictionary pair of TTradeRouteLeg. |
TTradeRouteLegDictionaryPairArray = array of TTradeRouteLegDictionaryPair; |
|
Array of dictionary pairs of TTradeRouteLeg. |
TContractLegList = specialize TList<TContractLeg>; |
|
List of TContractLeg. |
TContractLegArray = array of TContractLeg; |
|
Array of TContractLeg. |
TContractArray = array of TContract; |
|
List of TContract. |
TContractDictionary = specialize TDictionary<Integer, TContract>; |
|
Dictionary of TContract. |
TContractDictionaryPair = TContractDictionary.TDictionaryPair; |
|
Dictionary pair of TContract. |
TContractDictionaryPairArray = array of TContractDictionaryPair; |
|
Array of dictionary pairs of TContract. |
TContractObjectDictionary = specialize TObjectDictionary<Integer, TContract>; |
|
Object dictionary of TContract. [doOwnsValues] -> release the values [doOwnsKeys] -> release the keys [doOwnsKeys, doOwnsValues] -> free both TContractObjectDictionary.Create([doOwnsValues]); |
TContractObjectDictionaryPair = TContractObjectDictionary.TDictionaryPair; |
|
Object dictionary pair of TContract. |
TContractObjectDictionaryPairArray = array of TContractObjectDictionaryPair; |
|
Array of object dictionary pairs of TContract. |
TPanelLegNotify = procedure(const Sender: TObject; const PanelID: Integer; const AItem: TTradeRouteLegItem; const Leg: TTradeRouteLeg) of object; |
|
Notification when a single panel/leg changes. Sender = TContractDB. Parameters
|
TPanelContractNotify = procedure( const Sender: TObject; const GroupID: Integer; const AContract: TContract) of object; |
|
Notification when a contract changes. Sender = TContractDB. Parameters
|
Constants
ContractRouteTypeArray: TContractRouteTypeArray = ('Undefined', 'A to B', 'Single to Multi', 'Multi to Single'); |
|
Labels for TContractRouteType. |
ContractCargoRouteArray: TContractCargoRouteArray = ('Undefined', 'Local', 'Planetary', 'Stellar', 'Interstellar'); |
|
Labels for TContractCargoRoute. |
UserRankArray: TUserRankArray = ('Undefined', 'Trainee', 'Rookie', 'Junior', 'Member', 'Experienced', 'Senior', 'Master'); |
|
Labels for TUserRank. |
ContractCargoGradeScaleArray: TContractCargoGradeScaleArray = ('Undefined',
'Small', 'Extra Small', 'Medium', 'Large', 'Extra Large',
'Cargo Transfer from Shuttered Facility',
'Small Scale', 'Medium Shipment', 'Large Shipment', 'Bulk Shipment'); |
|
Labels for TContractCargoGradeScale. |
ContractCargoGradeScaleDirectArray: TContractCargoGradeScaleDirectArray = ('Undefined', 'Direct', 'No Direct'); |
|
Labels for TContractCargoGradeScaleDirect. |
ContractTransportTypeArray: TContractTransportTypeArray = ('Undefined', 'Hauling', 'Delivery'); |
|
Labels for TContractTransportType. |
ContractDifficultyModifierArray: TContractDifficultyModifierArray = ('Undefined', 'Regular', 'Combat', 'Illegal'); |
|
Labels for TContractDifficultyModifier. |
TradeRouteLegItemArray: TTradeRouteLegItemArray = ('Undefined', 'Ignored', 'GroupId', 'GroupIdEnabled', 'LoadingStationName', 'UnloadingStationName',
'Commodity', 'SCU', 'SCUMaxSize',
'Done', 'Hide', 'SCUxSize'); |
|
Labels for TTradeRouteLegItem. |
TradeRouteLegItemErrorArray: array[TTradeRouteLegItemError] of String = ('None', 'Ignored', 'Generic Error', 'GroupId Error',
'LoadingStationName Error', 'UnloadingStationName Error',
'Commodity Error', 'SCU Error', 'SCUMaxSize Error',
'Done Error', 'Hide Error', 'SCUxSize Error'); |
|
Labels for TTradeRouteLegItemError. |