Scarab
A thin, game-agnostic 2D engine host built on the sunlight tile-map engine
Loading...
Searching...
No Matches
Scarab::Engine::Lua::LuaJsonApi Class Reference

Generic, game-agnostic JSON <-> Lua bridge. Converts any JSON document into an equivalent Lua table, with no knowledge of any particular config schema. More...

#include <luajsonapi.h>

Static Public Member Functions

static void Register (lua_State *pLuaState)
 Register the JSON bridge Lua-callable functions.
 

Detailed Description

Generic, game-agnostic JSON <-> Lua bridge. Converts any JSON document into an equivalent Lua table, with no knowledge of any particular config schema.

Wraps nlohmann::json.

Member Function Documentation

◆ Register()

void Scarab::Engine::Lua::LuaJsonApi::Register ( lua_State *  pLuaState)
static

Register the JSON bridge Lua-callable functions.

Parameters
pLuaStateLua state to be used by engine call.

The documentation for this class was generated from the following files: