forked from mirror/OpenTTD
(svn r20652) -Codechange: implement a function to get the index of a spec.
This commit is contained in:
@@ -87,6 +87,12 @@ struct ObjectSpec {
|
||||
*/
|
||||
Money GetClearCost() const { return (_price[PR_CLEAR_OBJECT] * this->clear_cost_multiplier); }
|
||||
|
||||
/**
|
||||
* Gets the index of this spec.
|
||||
* @return The index.
|
||||
*/
|
||||
uint Index() const;
|
||||
|
||||
/**
|
||||
* Get the specification associated with a specific ObjectType.
|
||||
* @param index The object type to fetch.
|
||||
|
Reference in New Issue
Block a user