typedef struct _construction_ Construction;
Each building perhaps also units can have its own construction frames. This construction frames are currently not animated, this is planned for the future. What construction frames a building has, is handled by UnitType::Construction.
The construction structure members:
Object type (future extensions).
Unique identifier of the construction, used to reference it in the config files and during startup. As convention they start with "construction-" fe. "construction-land".
Path file name of sprite files for the different tilesets.
Path file name of shadow sprite file for the different tilesets.
Slot number of the construction, used for saving. This should be removed, if we use symbol identifiers.
Size of a sprite frame in pixels. All frames of a sprite have the same size. Also all sprites (tilesets) must have the same size.
Size of a shadow sprite frame in pixels. All frames of a sprite have the same size. Also all sprites (tilesets) must have the same size.
Shadow sprite image.
|char *||File [TilesetMax]|
|construction identifier |
|sprite width |
|Object type (future extensions). |
|const void *||OType|
|sprite file |
|shadow sprite width |
|construction sprite image |
|sprite height |
|shadow sprite height |
|shadow sprite file |