Change: Expose ObjectSpec vector to simplify iteration.

This commit is contained in:
2023-01-15 00:04:53 +00:00
committed by PeterN
parent 1f46f080f0
commit 82c70ed3b8
5 changed files with 21 additions and 18 deletions

View File

@@ -99,6 +99,7 @@ struct ObjectSpec {
bool IsAvailable() const;
uint Index() const;
static const std::vector<ObjectSpec> &Specs();
static size_t Count();
static const ObjectSpec *Get(ObjectType index);
static const ObjectSpec *GetByTile(TileIndex tile);