API PurchaseShipLoadout: Difference between revisions

From Vendetta Lua
Jump to navigationJump to search
split
 
Mick (talk | contribs)
No edit summary
Line 1: Line 1:
=== PurchaseShipLoadout ===
=== PurchaseShipLoadout ===
'''Definition:'''
'''Definition:'''
PurchaseShipLoadout(func arg1) -> ??
PurchaseShipLoadout(function buybackdone_cb(boolean success), loadout) -> nil
<br>
<br>
'''Description:'''<br>
'''Description:'''<br>
no clue takes function as first argument
Buys ship presets as stored in [[ShipPresets]] table.<br>
<br>
'''Arguments:'''<br>
''buybackdone_cb(boolean success)'' callback function that gets called when transation finished, takes one argument which is true in case of success false otherwise.<br>
''loadout'' loadout as stored in [[ShipPresets]] table.<br>
<br>
'''Example:'''<br>
<source lang="lua">
PurchaseShipLoadout(function(success) print(success) end, ShipPresets[1])
</source>
<br>
<br>

Revision as of 18:34, 17 February 2009

PurchaseShipLoadout

Definition: PurchaseShipLoadout(function buybackdone_cb(boolean success), loadout) -> nil
Description:
Buys ship presets as stored in ShipPresets table.

Arguments:
buybackdone_cb(boolean success) callback function that gets called when transation finished, takes one argument which is true in case of success false otherwise.
loadout loadout as stored in ShipPresets table.

Example:
<source lang="lua"> PurchaseShipLoadout(function(success) print(success) end, ShipPresets[1]) </source>