AcresFields.h#
Acres/Source/Acres/AcresFields.h Generated
Numeric field ids of ACRES, shared by the game and ACRES Core. Engine-free.
The original tile has the fields F01 to F59 with the ids 1 to 59 (ACRE/fields.json, ACRE/field_ids.u8). The ids 60 to 62 are surface buckets of the game and are not fields. The regional fields RF001 to RF100 have the ids 101 to 200: RFkkk has the id 100 + k (ACRE/DriveRegion/fields.json, DriveRegion/field_ids.u8). The id 0 is "no field".
| Name | Type | Unit | Default | Description |
|---|---|---|---|---|
TileFieldLimit |
constexpr int |
60 |
Tile field ids are 1 to TileFieldLimit - 1. Arrays for tile fields have this size. | |
RegionFieldBase |
constexpr int |
100 |
Regional field RFkkk has the id RegionFieldBase + k. | |
FieldIdLimit |
constexpr int |
201 |
All field ids are below this value. Arrays for all fields have this size. | |
RegionPatchBase |
constexpr int32_t |
int32_t(1) << 30 |
Patch id of a regional crop patch in the episode log's crop events and in saved crop state: RegionPatchBase plus the patch's ordinal in DriveRegion/crops.bin (AcresRegionCropData.h). The tile's patch ids are below this value. |
FieldName#
Name of a field id: "F01" to "F59", "RF001" to "RF100". Empty for an id that is not a field.
FieldId#
Field id of a name ("F7", "F07", "RF012"). 0 for a name that is not a field.