This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
YimMenu/src/lua/bindings/global_table.cpp

20 lines
463 B
C++

#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.
void bind(sol::state& state)
{
state["joaat"] = rage::joaat;
}
}