User:Flozi: Difference between revisions
m spaces |
mNo edit summary |
||
| Line 23: | Line 23: | ||
<span style="color:#ffff88">-> nil | bool hadEnough</span> | <span style="color:#ffff88">-> nil | bool hadEnough</span> | ||
Imposes a one-off usage of resources on the given team. The return value indicates | Imposes a one-off usage of resources on the given team. The return value indicates whether or not the team had sufficient resources to meet the usage demand. | ||
| Line 34: | Line 34: | ||
[[OTAism]] | [[OTAism]] | ||
Page on spring wiki etiquette / style guide / namespace conventions | Page on spring wiki etiquette / style guide / template usage /namespace conventions ( [[Spring:PageNamingConventions]] ) | ||
Move all pages in [http://springrts.com/mediawiki/index.php?title=Special%3APrefixIndex&prefix=Units-&namespace=0 Units-] to [http://springrts.com/mediawiki/index.php?title=Special%3APrefixIndex&prefix=Units%3A&namespace=0 Units:] | Move all pages in [http://springrts.com/mediawiki/index.php?title=Special%3APrefixIndex&prefix=Units-&namespace=0 Units-] to [http://springrts.com/mediawiki/index.php?title=Special%3APrefixIndex&prefix=Units%3A&namespace=0 Units:] | ||
Revision as of 19:11, 1 November 2012
Lua Callin example:
gadget:AllowUnitCreation
( number unitDefID, number builderID, number builderTeam,
number x, number y, number z,
number facing )
return: bool allow
Called just before unit is created, the boolean return value determines whether or not the creation is permitted.
Lua Callout example:
Spring.UseTeamResource
( number teamID,
string "metal" | "energy", number amount |
{ metal = number amount, energy = number amount} )
-> nil | bool hadEnough
Imposes a one-off usage of resources on the given team. The return value indicates whether or not the team had sufficient resources to meet the usage demand.
TODO:
Revamp LuaCallinReturn
Complete Spring:SiteMapThoughts
Page on spring wiki etiquette / style guide / template usage /namespace conventions ( Spring:PageNamingConventions )