DotNet.Commodities.Class.CommodityCategories - Elite-Dangerous-Almanac/Almanac-Core GitHub Wiki
EliteDangerousAlmanac / Commodities / CommodityCategories
Defined in: dotnet/src/EliteDangerousAlmanac/Commodities/CommodityCategory.cs:69
Reads and writes the in-game spelling of a CommodityCategory.
Three groups are two words in the game — consumer items, industrial materials and legal drugs — so the member name and the in-game name differ. Use these members whenever a group has to reach a user interface or arrive from a market payload.
staticDisplayName(category):string
Defined in: dotnet/src/EliteDangerousAlmanac/Commodities/CommodityCategory.cs:97
The in-game name of a group, such as "Consumer Items".
this CommodityCategory
The group to name.
string
The in-game name.
ArgumentOutOfRangeException
category is not a member.
staticTryParse(name,category):bool
Defined in: dotnet/src/EliteDangerousAlmanac/Commodities/CommodityCategory.cs:107
Reads a group from its in-game name or its member name.
string?
The group name, such as Legal Drugs.
The group the name denotes, when the answer is true.
bool
true when the name denotes a group.
Leading and trailing whitespace and case are ignored.