Codechange: Store objectspecs in std::vector instead of flat array.
(cherry picked from commit 1ae263c5467105820e4d770b3d57d25ba01e22b1)
This commit is contained in:

committed by
Jonathan G Rennison

parent
d34e1bbbc1
commit
74e4556a85
@@ -134,6 +134,7 @@ struct ObjectSpec {
|
||||
bool IsAvailable() const;
|
||||
uint Index() const;
|
||||
|
||||
static size_t Count();
|
||||
static const ObjectSpec *Get(ObjectType index);
|
||||
static const ObjectSpec *GetByTile(TileIndex tile);
|
||||
|
||||
|
Reference in New Issue
Block a user