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
@@ -33,6 +33,11 @@ extern const ObjectSpec _original_objects[NEW_OBJECT_OFFSET];
|
||||
/** All the object specifications. */
|
||||
std::vector<ObjectSpec> _object_specs;
|
||||
|
||||
const std::vector<ObjectSpec> &ObjectSpec::Specs()
|
||||
{
|
||||
return _object_specs;
|
||||
}
|
||||
|
||||
size_t ObjectSpec::Count()
|
||||
{
|
||||
return _object_specs.size();
|
||||
|
||||
Reference in New Issue
Block a user