GetBuilding (Harvest)
From OxeyeWiki
(Difference between revisions)
166 MMX (Talk | contribs)
(Created page with '{{HarvestMethod | getBuilding(id) | Fetches a building, or nil if the building doesn't exist. | {{MethodParam|id|Number|The id of the building to retrieve the building for.}} | R...')
Newer edit →
(Created page with '{{HarvestMethod | getBuilding(id) | Fetches a building, or nil if the building doesn't exist. | {{MethodParam|id|Number|The id of the building to retrieve the building for.}} | R...')
Newer edit →
Revision as of 20:06, 2 December 2009
|
getBuilding(id) | ||
|
Fetches a building, or nil if the building doesn't exist. | ||
| Parameter | Expected Type | Description |
| id | Number | The id of the building to retrieve the building for. |
| Returns | ||
|
Returns the building of a given id. | ||
Example
building = harvest.getBuilding(id)