feat(lua): added weapon and vehicle cache bindings (#2477)

* Replaced bad example in entities documentation.
* Updated Lua documentation for vehicles/weapons to allow for auto generation.
* Added Vector3 support to the Lua globals/locals class.
* Fixed a bug with get_float in globals/locals returning an int instead of a float.
* Fixed globals get_uint/set_uint using signed types for the return/parameter.
* Added unsigned int helpers to the locals Lua class.
This commit is contained in:
gir489
2023-12-05 03:58:35 -05:00
committed by GitHub
parent c5c3713137
commit 11d48f49f9
13 changed files with 700 additions and 17 deletions

View File

@ -16,6 +16,8 @@
#include "bindings/stats.hpp"
#include "bindings/tunables.hpp"
#include "bindings/vector.hpp"
#include "bindings/weapons.hpp"
#include "bindings/vehicles.hpp"
#include "file_manager.hpp"
#include "script_mgr.hpp"
@ -210,6 +212,8 @@ namespace big
lua::imgui::bind(m_state, m_state.globals());
lua::entities::bind(m_state);
lua::stats::bind(m_state);
lua::weapons::bind(m_state);
lua::vehicles::bind(m_state);
}
void lua_module::load_and_call_script()