aboutsummaryrefslogtreecommitdiff
path: root/src/script/lua_api/l_inventory.cpp
diff options
context:
space:
mode:
authorMetaDucky <metaducky AT gmail DOT com>2014-04-18 17:29:28 +0200
committerRealBadAngel <maciej.kasatkin@yahoo.com>2014-04-23 12:11:56 +0200
commit9ec281c712c0c7c3adac3847412f6e4d587abc00 (patch)
treeb2d5835245863ace5a321b8b63e13b3eb6957ab0 /src/script/lua_api/l_inventory.cpp
parent127f354e7a5e85cfc46304499e7c8619fc9538c8 (diff)
downloadminetest-9ec281c712c0c7c3adac3847412f6e4d587abc00.tar.gz
minetest-9ec281c712c0c7c3adac3847412f6e4d587abc00.tar.bz2
minetest-9ec281c712c0c7c3adac3847412f6e4d587abc00.zip
Fixed wrong node texture rotation for facedirs 5 and 7
Diffstat (limited to 'src/script/lua_api/l_inventory.cpp')
0 files changed, 0 insertions, 0 deletions
file */ /* not being a modapi file!!!!!!!! */ /******************************************************************************/ /******************************************************************************/ #ifndef C_INTERNAL_H_ #define C_INTERNAL_H_ extern "C" { #include <lua.h> #include <lauxlib.h> } #include "common/c_types.h" // What script_run_callbacks does with the return values of callbacks. // Regardless of the mode, if only one callback is defined, // its return value is the total return value. // Modes only affect the case where 0 or >= 2 callbacks are defined. enum RunCallbacksMode { // Returns the return value of the first callback // Returns nil if list of callbacks is empty RUN_CALLBACKS_MODE_FIRST, // Returns the return value of the last callback // Returns nil if list of callbacks is empty RUN_CALLBACKS_MODE_LAST, // If any callback returns a false value, the first such is returned // Otherwise, the first callback's return value (trueish) is returned // Returns true if list of callbacks is empty RUN_CALLBACKS_MODE_AND, // Like above, but stops calling callbacks (short circuit) // after seeing the first false value RUN_CALLBACKS_MODE_AND_SC, // If any callback returns a true value, the first such is returned // Otherwise, the first callback's return value (falseish) is returned // Returns false if list of callbacks is empty RUN_CALLBACKS_MODE_OR, // Like above, but stops calling callbacks (short circuit) // after seeing the first true value RUN_CALLBACKS_MODE_OR_SC, // Note: "a true value" and "a false value" refer to values that // are converted by lua_toboolean to true or false, respectively. }; std::string script_get_backtrace(lua_State *L); int script_error_handler(lua_State *L); void script_error(lua_State *L); void script_run_callbacks(lua_State *L, int nargs, RunCallbacksMode mode); #endif /* C_INTERNAL_H_ */