Lua api

One goal of Yag is to remains as general as possible about game rules.

This raises the need to customize it according to any specific game.

But Yag is coded in c++ and its guts are hidden from the player.

A common response to this problem is to embed in the host program (Yag) a scripting language such as LUA.

In order to exchange data, some of the internals of Yag must be exposed to LUA:

  • Some Yag functions and variables must be accessed by the players through LUA
  • Yag must be able to call some LUA functions

The following documents describe the set of tools currently available to do so.

The embedded version of LUA is v5.3.