1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81
|
//
//
#include "globalincs/version.h"
#include "globals.h"
#include "missionui/missionscreencommon.h"
#include "playerman/managepilot.h"
namespace scripting::api {
//**********LIBRARY: Globals
ADE_LIB(l_GlobalVariables, "GlobalVariables", "gl", "Library of global values");
ADE_VIRTVAR(MAX_PILOTS,
l_GlobalVariables,
nullptr,
"Gets the maximum number of possible pilots.",
"number",
"The maximum number of pilots")
{
return ade_set_args(L, "i", MAX_PILOTS);
}
ADE_VIRTVAR(MAX_SHIPS_PER_WING,
l_GlobalVariables,
nullptr,
"The maximum ships that can be in a wing",
"number",
"A maximum number of ships")
{
return ade_set_args(L, "i", MAX_SHIPS_PER_WING);
}
ADE_VIRTVAR(MAX_WING_SLOTS,
l_GlobalVariables,
nullptr,
"The maximum ships that can be in a loadout wing",
"number",
"A maximum number of ships")
{
return ade_set_args(L, "i", MAX_WING_SLOTS);
}
ADE_VIRTVAR(MAX_WING_BLOCKS,
l_GlobalVariables,
nullptr,
"The maximum wings that can be in a loadout",
"number",
"A maximum number of wings")
{
return ade_set_args(L, "i", MAX_WING_BLOCKS);
}
ADE_VIRTVAR(MAX_SHIP_PRIMARY_BANKS,
l_GlobalVariables,
nullptr,
"The maximum primary banks a ship can have",
"number",
"A maximum number of primary banks")
{
return ade_set_args(L, "i", MAX_SHIP_PRIMARY_BANKS);
}
ADE_VIRTVAR(MAX_SHIP_SECONDARY_BANKS,
l_GlobalVariables,
nullptr,
"The maximum secondary banks a ship can have",
"number",
"A maximum number of secondary banks")
{
return ade_set_args(L, "i", MAX_SHIP_SECONDARY_BANKS);
}
} // namespace scripting::api
|