[GameConstantsAndTypes] Made StageResult Lua-aware.

This commit is contained in:
AJ Kelly
2012-03-28 18:55:06 -05:00
parent 7f70e77b57
commit 2dd68c8349
2 changed files with 13 additions and 4 deletions
+7
View File
@@ -124,6 +124,13 @@ static const char *HealthStateNames[] = {
XToString( HealthState );
LuaXType( HealthState );
static const char *StageResultNames[] = {
"Win",
"Lose",
"Draw",
};
XToString( StageResult );
LuaXType( StageResult );
static const char *CoinModeNames[] = {
"Home",
+6 -4
View File
@@ -405,11 +405,13 @@ LuaDeclareType( HealthState );
/** @brief The different stage results during battle. */
enum StageResult
{
RESULT_WIN, /**< The player has won the battle. */
RESULT_LOSE, /**< The player has lost the battle. */
RESULT_DRAW /**< The player has tied with the competitor. */
RESULT_WIN, /**< The player has won the battle. */
RESULT_LOSE, /**< The player has lost the battle. */
RESULT_DRAW, /**< The player has tied with the competitor. */
NUM_StageResult,
StageResult_Invalid
};
LuaDeclareType( StageResult );
// Battle stuff
/** @brief The number of inventory slots available for attacks. */