mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-04-30 08:47:58 +03:00
Make InventoryAdd and InventoryRemove static. Add them as Lua functions.
This commit is contained in:
parent
03c7f833ba
commit
7a43cd156c
2 changed files with 7 additions and 4 deletions
|
@ -21,6 +21,9 @@ GameScript::GameScript(sol::state* lua) : LuaHandler{ lua }
|
|||
m_lua->set_function("SetAmbientTrack", &GameScript::SetAmbientTrack);
|
||||
m_lua->set_function("PlayAudioTrack", &GameScript::PlayAudioTrack);
|
||||
|
||||
m_lua->set_function("InventoryAdd", &GameScript::InventoryAdd);
|
||||
m_lua->set_function("InventoryRemove", &GameScript::InventoryRemove);
|
||||
|
||||
GameScriptItemInfo::Register(m_lua);
|
||||
GameScriptPosition::Register(m_lua);
|
||||
GameScriptRotation::Register(m_lua);
|
||||
|
@ -328,7 +331,7 @@ void GameScript::InventoryCombine(int slot1, int slot2)
|
|||
|
||||
}
|
||||
|
||||
void GameScript::InventorySepare(int slot)
|
||||
void GameScript::InventorySeparate(int slot)
|
||||
{
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue