[GameConstantsAndTypes] Made StageResult Lua-aware.
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user