DotNet.Commodities.Record.Commodity - Elite-Dangerous-Almanac/Almanac-Core GitHub Wiki

EliteDangerousAlmanac / Commodities / Commodity

Record: Commodity

Defined in: dotnet/src/EliteDangerousAlmanac/Commodities/Commodity.cs:21

One tradable commodity in Frontier's market registry.

Remarks

A pure id, name and group record. This is the commodity registry, not a price sheet, so it carries no buy or sell price, no supply, no demand and no producing station. A rare good's origin station is not carried either, because the library has no station registry to key it against.

Constructors

new Commodity()

new Commodity(Symbol, Name, Category, Rare)

Parameters

Symbol

string

Frontier's internal symbol, such as Platinum — the id the market and the player journal report, matched without regard to case. This is the commodity's key.

Name

string

Display name, such as Platinum.

Category

CommodityCategory

The market group this commodity is sold under.

Rare

bool

Whether this is a rare commodity — a location-specific luxury good produced at a single station — rather than a standard market good. It comes from the catalogue the record lives in.

Properties

Category

Category: CommodityCategory

The market group this commodity is sold under.

Name

Name: string

Display name, such as Platinum.

Rare

Rare: bool

Whether this is a rare commodity — a location-specific luxury good produced at a single station — rather than a standard market good. It comes from the catalogue the record lives in.

Symbol

Symbol: string

Frontier's internal symbol, such as Platinum — the id the market and the player journal report, matched without regard to case. This is the commodity's key.

⚠️ **GitHub.com Fallback** ⚠️