🛠️ refactor(source): annotated inlined functions and removed unused include

This commit is contained in:
ragnarok-clanker 2026-10-27 10:01:19 +01:00
commit 779dd40d2e
6 changed files with 6 additions and 2 deletions

View file

@ -8,6 +8,7 @@ extern "C" {
#include <cstdint>
namespace {
// INLINED
CPlayerSkillBundle& Bundle(lua_State* state) {
return *static_cast<CPlayerSkillBundle*>(lua_touserdata(state, lua_upvalueindex(1)));
}
@ -59,6 +60,7 @@ namespace {
}
}
// INLINED
void RegisterSkillTreeCallbacks(lua_State* state, CPlayerSkillBundle& bundle) {
lua_pushlightuserdata(state, &bundle);
lua_pushcclosure(state, AddSkill, 1);