User:Flozi

Template:LuaCallout & Template:LuaCallin Examples


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.

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.

{widget, gadget}:Initialize

( )
return: none
Called when the addon is (re)loaded.


{widget, gadget}:Shutdown

( )
return: none
Called when the addon or the game is shutdown.


{widget, gadget}:PlayerChanged

( number playerID )
return: none
Called whenever a player's status changes e.g. becoming a spectator.

TODO:

Continue to improve Gamedev:Main

Complete Spring:SiteMapThoughts

OTAism

Assimp build upon, metadata doc, split tutorial again >_>

Revamp LuaCallinReturn

Page on spring wiki etiquette (SpringWiki) / style guide & template usage (Mapdev:WikiGuide) /namespace conventions (Spring:PageNamingConventions)

Sort out Spring:Community_Portal vs. Spring:Community_portal

Move all pages in Units- to Units: or maybe Gamedev: ?

Clickable / right-click copy pasteable anchors in {{tag}} et al

Categories



Page editing toolbox

Browse
Main page
Community portal
Current events
Recent changes
Random page
Help
Edit
View source
Editing help
This page
Discuss this page
New section
Printable version
Context
Page history
What links here
Related changes
User contributions
My pages
Log in
Special pages
New pages
<imagelist>
Statistics
More...

Site layout created by Roflcopter et al.