[GameConstantsAndTypes] Made StageResult Lua-aware.
This commit is contained in:
@@ -124,6 +124,13 @@ static const char *HealthStateNames[] = {
|
|||||||
XToString( HealthState );
|
XToString( HealthState );
|
||||||
LuaXType( HealthState );
|
LuaXType( HealthState );
|
||||||
|
|
||||||
|
static const char *StageResultNames[] = {
|
||||||
|
"Win",
|
||||||
|
"Lose",
|
||||||
|
"Draw",
|
||||||
|
};
|
||||||
|
XToString( StageResult );
|
||||||
|
LuaXType( StageResult );
|
||||||
|
|
||||||
static const char *CoinModeNames[] = {
|
static const char *CoinModeNames[] = {
|
||||||
"Home",
|
"Home",
|
||||||
|
|||||||
@@ -405,11 +405,13 @@ LuaDeclareType( HealthState );
|
|||||||
/** @brief The different stage results during battle. */
|
/** @brief The different stage results during battle. */
|
||||||
enum StageResult
|
enum StageResult
|
||||||
{
|
{
|
||||||
RESULT_WIN, /**< The player has won the battle. */
|
RESULT_WIN, /**< The player has won the battle. */
|
||||||
RESULT_LOSE, /**< The player has lost the battle. */
|
RESULT_LOSE, /**< The player has lost the battle. */
|
||||||
RESULT_DRAW /**< The player has tied with the competitor. */
|
RESULT_DRAW, /**< The player has tied with the competitor. */
|
||||||
|
NUM_StageResult,
|
||||||
|
StageResult_Invalid
|
||||||
};
|
};
|
||||||
|
LuaDeclareType( StageResult );
|
||||||
|
|
||||||
// Battle stuff
|
// Battle stuff
|
||||||
/** @brief The number of inventory slots available for attacks. */
|
/** @brief The number of inventory slots available for attacks. */
|
||||||
|
|||||||
Reference in New Issue
Block a user