From 9377b6edb94d37e84f3f346ea6c71b4aba2acaa6 Mon Sep 17 00:00:00 2001 From: fgenesis Date: Mon, 28 Oct 2013 04:28:05 +0100 Subject: [PATCH] Add Lua function isShuttingDownGameState() --- Aquaria/ScriptInterface.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Aquaria/ScriptInterface.cpp b/Aquaria/ScriptInterface.cpp index 2f0d1e7..3c66f70 100644 --- a/Aquaria/ScriptInterface.cpp +++ b/Aquaria/ScriptInterface.cpp @@ -8357,6 +8357,11 @@ luaFunc(isMiniMapCursorOkay) luaReturnBool(dsq->isMiniMapCursorOkay()); } +luaFunc(isShuttingDownGameState) +{ + luaReturnBool(dsq->game->isShuttingDownGameState()); +} + luaFunc(inv_isFull) { IngredientData *data = dsq->continuity.getIngredientDataByName(getString(L, 1)); @@ -9526,6 +9531,7 @@ static const struct { luaRegister(getScreenSize), luaRegister(getScreenVirtualSize), luaRegister(isMiniMapCursorOkay), + luaRegister(isShuttingDownGameState), luaRegister(inv_isFull), luaRegister(inv_getMaxAmount),