add Lua bindings

This commit is contained in:
Chris Danford
2006-01-08 22:59:31 +00:00
parent bd265e0bea
commit 15c93e91b0
+3
View File
@@ -3,6 +3,7 @@
#include "GameState.h"
#include "LuaManager.h"
#include "LocalizedString.h"
#include "LuaFunctions.h"
static const char *PlayerNumberNames[] = {
"P1",
@@ -10,6 +11,7 @@ static const char *PlayerNumberNames[] = {
};
XToString( PlayerNumber, NUM_PlayerNumber );
XToLocalizedString( PlayerNumber );
LuaFunction( PlayerNumberToString, PlayerNumberToString((PlayerNumber) IArg(1)) );
void LuaPlayerNumber(lua_State* L)
{
@@ -32,6 +34,7 @@ static const char *MultiPlayerNames[] = {
};
XToString( MultiPlayer, NUM_MultiPlayer );
XToLocalizedString( MultiPlayer );
LuaFunction( MultiPlayerToLocalizedString, MultiPlayerToLocalizedString((MultiPlayer) IArg(1)) );
PlayerNumber GetNextHumanPlayer( PlayerNumber pn )