Methods
GetBarterableCodes() → {Array.<string>}
Returns an array containing all barterable resource codes ordered as defined in the resource files.
- Source:
Returns:
- Data of the form [ "food", "wood", ... ].
- Type
- Array.<string>
GetCodes() → {Array.<string>}
Returns an array containing all resource codes ordered as defined in the resource files.
- Source:
Returns:
- Data of the form [ "food", "wood", ... ].
- Type
- Array.<string>
GetNames()
Returns an object mapping resource codes to translatable resource names. Includes subtypes.
For example { "food": "Food", "fish": "Fish", "fruit": "Fruit", "metal": "Metal", ... }
- Source:
GetResource()
Returns the object defined in the JSON file for the given resource.
- Source:
GetResources()
Returns the objects defined in the JSON files for all available resources,
ordered as defined in these files.
- Source:
GetTradableCodes() → {Array.<string>}
Returns an array containing all tradable resource codes ordered as defined in the resource files.
- Source:
Returns:
- Data of the form [ "food", "wood", ... ].
- Type
- Array.<string>
GetTributableCodes() → {Array.<string>}
Returns an array containing all tributable resource codes ordered as defined in the resource files.
- Source:
Returns:
- Data of the form [ "food", "wood", ... ].
- Type
- Array.<string>