TmpMenu/src/lua/bindings/global_table.hpp

20 lines
470 B
C++
Raw Normal View History

2023-07-02 00:59:02 +02:00
#pragma once
#include "lua/sol.hpp"
namespace lua::global_table
{
// Lua API: Table
// Name: Global Table
// Custom fields, functions, etc added to The Lua [Global Table](https://www.lua.org/pil/15.4.html).
// Lua API: Function
// Table: Global Table
// Name: joaat
// Param: str: string: The string that needs to be joaat hashed.
// Returns: integer: The joaat hashed input string.
static void bind(sol::state& state)
{
state["joaat"] = rage::joaat;
}
}