Files
nampower/nampower/lua_refs.hpp
T
avitasia ed1ba92f1f - Fix table references when reloading ui or logging out
- Block mounting when buff capped (can disable with NP_PreventMountingWhenBuffCapped)
- add some additional information to GetTrinkets
2025-12-23 10:23:09 -08:00

19 lines
422 B
C++

//
// Created for Lua table reference management
//
#pragma once
#include <cstdint>
namespace Nampower {
// Register a table ref to be cleaned up on shutdown
void RegisterTableRef(int* tableRefPtr);
// Get or create a table reference (renamed from EnsureValidTableRef)
void GetTableRef(uintptr_t* luaState, int& tableRef);
// Cleanup all registered table refs
void CleanupAllLuaTableRefs();
}