Change: Expose ObjectSpec vector to simplify iteration.
(cherry picked from commit 51b112139235c66c3adb2c3a75919fc1d3eff9fc)
This commit is contained in:

committed by
Jonathan G Rennison

parent
74e4556a85
commit
c95a3be243
@@ -134,6 +134,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);
|
||||
|
Reference in New Issue
Block a user