26 #include "glm/vec3.hpp" 52 warning(
"TODO: Unimplemented Lua function \"%s()\"", name.
c_str());
54 warning(
"TODO: Unimplemented Lua function \"%s:%s()\"", type.c_str(), name.
c_str());
60 warning(
"TODO: Unimplemented Lua variable \"%s\"", name.
c_str());
62 warning(
"TODO: Unimplemented Lua variable \"%s.%s\"", type.c_str(), name.
c_str());
285 return "CAuroraSettings";
306 LuaScriptMan.registerFunction(
"FollowOffset", &luaFollowOffset);
337 LuaScriptMan.registerFunction(
"CreateAurObject", &luaCreateAurObject);
338 LuaScriptMan.registerFunction(
"CreateAurObjectWithMesh", &luaCreateAurObjectWithMesh);
383 LuaScriptMan.registerConstant(
"GUIOBJ_FLAG_MODALNEEDNOTBEONTOP", 0.0f);
384 LuaScriptMan.registerConstant(
"GUIOBJ_FLAG_IGNORE_MAKEMODALVISIBLE", 0.0f);
407 return "CGuiControlBinds";
424 LuaScriptMan.registerFunction(
"SetModel", &luaSetModel);
426 LuaScriptMan.registerFunction(
"Activate", &luaActivate);
427 LuaScriptMan.registerFunction(
"Deactivate", &luaDeactivate);
428 LuaScriptMan.registerFunction(
"RenderSceneViewFirst", &luaRenderSceneViewFirst);
429 LuaScriptMan.registerFunction(
"ToggleOff", &luaToggleOff);
488 return "CGuiModalPanel";
497 LuaScriptMan.registerVariable(
"m_nFlags", &luaGetFlags, &luaSetFlags);
498 LuaScriptMan.registerFunction(
"CreateModel", &luaCreateModel);
499 LuaScriptMan.registerFunction(
"SetDebugName", &luaSetDebugName);
500 LuaScriptMan.registerFunction(
"AddTextLayer", &luaAddTextLayer);
501 LuaScriptMan.registerFunction(
"GetTextLabel", &luaGetTextLabel);
502 LuaScriptMan.registerFunction(
"IgnoreHitCheck", &luaIgnoreHitCheck);
503 LuaScriptMan.registerFunction(
"AddTextureLayer", &luaAddTextureLayer);
504 LuaScriptMan.registerFunction(
"AddTextureLayerTransformable", &luaAddTextureLayerTransformable);
505 LuaScriptMan.registerFunction(
"PlayAnimation", &luaPlayAnimation);
506 LuaScriptMan.registerFunction(
"SetAlignmentVertical", &luaSetAlignmentVertical);
513 return "CGuiNewControl";
584 LuaScriptMan.registerFunction(
"SetEnableCamera", &luaSetEnableCamera);
605 LuaScriptMan.registerFunction(
"GetTlkTable", &luaGetTlkTable);
635 return "CAttackDefList";
649 LuaScriptMan.registerFunction(
"GetFontMgr", &luaGetFontMgr);
650 LuaScriptMan.registerFunction(
"AddResolution", &luaAddResolution);
651 LuaScriptMan.registerFunction(
"LoadFont", &luaLoadFont);
684 LuaScriptMan.registerFunction(
"Get2DArrays", &luaGet2DArrays);
709 LuaScriptMan.registerFunction(
"AddGameEffectType", &luaAddGameEffectType);
710 LuaScriptMan.registerFunction(
"AddGameEffectMedium", &luaAddGameEffectMedium);
711 LuaScriptMan.registerFunction(
"AddWeaponType", &luaAddWeaponType);
712 LuaScriptMan.registerFunction(
"AddSpellType", &luaAddSpellType);
713 LuaScriptMan.registerFunction(
"AddAbility", &luaAddAbility);
785 LuaScriptMan.registerFunction(
"GetLanguagesTable", &luaGetLanguagesTable);
810 LuaScriptMan.registerFunction(
"new_local", &luaNewLocal);
811 LuaScriptMan.registerFunction(
"Load2DArray", &luaLoad2DArray);
812 LuaScriptMan.registerFunction(
"Unload2DArray", &luaUnload2DArray);
813 LuaScriptMan.registerFunction(
"GetNumRows", &luaGetNumRows);
814 LuaScriptMan.registerFunction(
"GetCExoStringEntry", &luaGetCExoStringEntry);
815 LuaScriptMan.registerFunction(
"GetINTEntry", &luaGetIntEntry);
894 LuaScriptMan.registerFunction(
"GetClientTextLanguage", &luaGetClientTextLanguage);
901 return "CClientExoApp";
941 return "CNWCCreature";
973 return "CEffectDuration";
1007 return "CAbilityCondition";
1022 return "CWeatherRain";
1037 return "CWeatherFog";
1052 return "CAurFullScreenFXMgr";
1061 LuaScriptMan.registerFunction(
"new_local", &luaNewLocal);
1062 LuaScriptMan.registerFunction(
"SetVolume", &luaSetVolume);
1063 LuaScriptMan.registerFunction(
"SetLooping", &luaSetLooping);
1070 return "CExoSoundSource";
1102 return "CMiniGamesInterface";
1117 return "LuaScriptedTextureController";
1126 LuaScriptMan.registerFunction(
"new_local", &luaNewLocal);
1133 return "Quaternion";
1149 LuaScriptMan.registerVariable(
"x", &luaGetX, &luaSetX);
1150 LuaScriptMan.registerVariable(
"y", &luaGetY, &luaSetY);
1151 LuaScriptMan.registerVariable(
"z", &luaGetZ, &luaSetZ);
1152 LuaScriptMan.registerFunction(
"new_local", &luaNewLocal);
1169 glm::vec3* v =
new glm::vec3;
1187 glm::vec3* v = Aurora::Lua::getCppObjectFromStack<glm::vec3>(stack, 1);
1190 v->x = stack.getFloatAt(2);
1191 v->y = stack.getFloatAt(3);
1192 v->z = stack.getFloatAt(4);
1202 glm::vec3* v = Aurora::Lua::getCppObjectFromStack<glm::vec3>(stack, 1);
1205 stack.pushFloat(v->x);
1215 glm::vec3* v = Aurora::Lua::getCppObjectFromStack<glm::vec3>(stack, 1);
1218 v->x = stack.getFloatAt(2);
1228 glm::vec3* v = Aurora::Lua::getCppObjectFromStack<glm::vec3>(stack, 1);
1231 stack.pushFloat(v->y);
1241 glm::vec3* v = Aurora::Lua::getCppObjectFromStack<glm::vec3>(stack, 1);
1244 v->y = stack.getFloatAt(2);
1254 glm::vec3* v = Aurora::Lua::getCppObjectFromStack<glm::vec3>(stack, 1);
1257 stack.pushFloat(v->z);
1267 glm::vec3* v = Aurora::Lua::getCppObjectFromStack<glm::vec3>(stack, 1);
1270 v->z = stack.getFloatAt(2);
1280 LuaScriptMan.registerFunction(
"GetActualGuiWidth", &luaGetActualGUIWidth);
1287 return "ScreenSizes";
static Common::UString getLuaType()
static int luaNew(lua_State *state)
static int luaSetEnableCamera(lua_State *state)
static int luaNew(lua_State *state)
static int luaGetTextLabel(lua_State *state)
static void registerLuaBindings()
static Common::UString getLuaType()
static void registerLuaBindings()
static Common::UString getLuaType()
static int luaSetX(lua_State *state)
static Common::UString getLuaType()
static int luaLoadFont(lua_State *state)
static void registerLuaBindings()
static void registerLuaBindings()
A class holding an UTF-8 string.
static int luaValidNumber(lua_State *state)
static int luaIsEditor(lua_State *state)
static int luaIgnoreHitCheck(lua_State *state)
static void registerLuaBindings()
static int luaBor(lua_State *state)
static void registerLuaBindings()
static int luaDist(lua_State *state)
static void registerLuaBindings()
static Common::UString getLuaType()
static int luaDeactivate(lua_State *state)
void pushInt(int value)
Push an integer value onto the stack.
static int luaGetActualGUIWidth(lua_State *state)
static int luaSetAlignmentVertical(lua_State *state)
static int luaAddGameEffectMedium(lua_State *state)
static Common::UString getLuaType()
static int luaGetNumRows(lua_State *state)
static Common::UString getLuaType()
int getSize() const
Return the number of elements in the stack.
static Common::UString getLuaType()
static Common::UString getLuaType()
static int luaActivate(lua_State *state)
static void registerLuaBindings()
static int luaFollowOffset(lua_State *state)
static int luaAddTextureLayerTransformable(lua_State *state)
static int luaGetFlags(lua_State *state)
static int luaSetY(lua_State *state)
static void registerLuaBindings()
static Common::UString getLuaType()
static int luaNewLocal(lua_State *state)
static int luaAddAbility(lua_State *state)
static int luaClear(lua_State *state)
static int luaIsDjinni(lua_State *state)
void pushUserType(T &value, const Common::UString &type)
Push a usertype value onto the stack.
static void registerLuaBindings()
static Common::UString getLuaType()
static void registerLuaBindings()
static int luaGetGUIMan(lua_State *state)
static int luaAddTextLayer(lua_State *state)
static Common::UString getLuaType()
static void registerLuaBindings()
static int luaClear(lua_State *state)
static void registerLuaBindings()
static int luaNewLocal(lua_State *state)
static int luaAddWeaponType(lua_State *state)
static Common::UString getLuaType()
static int luaGet2DArrays(lua_State *state)
static int luaSetDebugName(lua_State *state)
static int luaGetAuroraSettings(lua_State *state)
static int luaAddSpellType(lua_State *state)
static int luaGetY(lua_State *state)
static int luaAddGameEffectType(lua_State *state)
static void registerLuaBindings()
static void registerLuaBindings()
static int luaGet(lua_State *state)
static Common::UString getLuaType()
Basic exceptions to throw.
static Common::UString getLuaType()
static int luaGetZ(lua_State *state)
const char * c_str() const
Return the (utf8 encoded) string data.
void registerGCForTopObject()
static Common::UString getLuaType()
static void registerLuaBindings()
static void registerLuaBindings()
static void registerLuaBindings()
Utility templates and functions.
static Common::UString getLuaType()
static int luaNewLocal(lua_State *state)
static Common::UString getLuaType()
static int luaSetName(lua_State *state)
static int luaGetCurrentCameraSettings(lua_State *state)
static Common::UString getLuaType()
static int luaGetClientExoApp(lua_State *state)
static void registerLuaBindings()
static void registerLuaBindings()
static void registerLuaBindings()
static int luaUnload2DArray(lua_State *state)
static int luaSetZ(lua_State *state)
#define LUA_DEFAULT_DELETER(Type)
static Common::UString getLuaType()
static int luaIsDebugBuild(lua_State *state)
static int luaNew(lua_State *state)
static int luaIsDemo(lua_State *state)
static int luaCreateModel(lua_State *state)
static int luaDelete(lua_State *state)
static Common::UString getLuaType()
static int luaSetFlags(lua_State *state)
static int luaGetAttackDefList(lua_State *state)
void warning(const char *s,...)
static int luaCreateAurObject(lua_State *state)
static int luaAddTextureLayer(lua_State *state)
static int luaNewLocal(lua_State *state)
static int luaCreateAurObjectWithMesh(lua_State *state)
static void registerLuaBindings()
static Common::UString getLuaType()
static int pushFakeObject(lua_State &state, const Common::UString &type)
void pushBoolean(bool value)
Push a boolean value onto the stack.
static int luaGetIntEntry(lua_State *state)
static void registerLuaBindings()
static int luaGetClientTextLanguage(lua_State *state)
static int luaPitch(lua_State *state)
static int luaSetLooping(lua_State *state)
static int luaAddResolution(lua_State *state)
static int luaGUIAurAttachToObject(lua_State *state)
static Common::UString getLuaType()
static void registerLuaBindings()
static void registerLuaBindings()
static void registerLuaBindings()
void pushNil()
Push a nil value onto the stack.
static Common::UString getLuaType()
static void registerLuaBindings()
static int luaLoad2DArray(lua_State *state)
static int luaGetClientPhysics(lua_State *state)
static int luaSetModel(lua_State *state)
static int luaSetVolume(lua_State *state)
static void unimplementedVariable(const Common::UString &name, const Common::UString &type="")
static int luaAurPrintf(lua_State *state)
static int luaGetTlkTable(lua_State *state)
static int luaGetCExoStringEntry(lua_State *state)
static int luaSet(lua_State *state)
static void registerLuaBindings()
static int luaGetRules(lua_State *state)
static Common::UString getLuaType()
static Common::UString getLuaType()
static Common::UString getLuaType()
static int luaGetDefs(lua_State *state)
static int luaToggleOff(lua_State *state)
static int luaGetDialogHorizontalOffset(lua_State *state)
static void registerLuaBindings()
float getFloatAt(int index) const
Return a float value at the given index in the stack.
#define LuaScriptMan
Shortcut for accessing the script engine.
static Common::UString getLuaType()
static int luaGetLanguagesTable(lua_State *state)
static Common::UString getLuaType()
static void registerLuaBindings()
static int luaConsole(lua_State *state)
static void registerLuaBindings()
static void registerLuaBindings()
static Common::UString getLuaType()
static void registerLuaBindings()
static int luaGetX(lua_State *state)
The Lua bindings for The Witcher.
static int luaGetFontMgr(lua_State *state)
static void unimplementedFunction(const Common::UString &name, const Common::UString &type="")
static Common::UString getLuaType()
static int luaRenderSceneViewFirst(lua_State *state)
static Common::UString getLuaType()
static Common::UString getLuaType()
static Common::UString getLuaType()
void pushString(const char *value)
Push a raw C string onto the stack.
static void registerLuaBindings()
static int luaPlayAnimation(lua_State *state)