Krig Game Engine
Functions
api.cpp File Reference

Krig Game Engine Lua Scripting API. More...

Functions

Vector loadVector (lua_State *L)
 
Vector loadVector (lua_State *L, int &index)
 
void returnVector (lua_State *L, const Vector &t)
 
void loadArray (lua_State *L, float array[], int len, int index)
 
void returnArray (lua_State *L, float array[], int len)
 
Quaternion loadQuaternion (lua_State *L, const int &index)
 
void returnQuaternion (lua_State *L, const Quaternion &t)
 
ObjectloadObject (lua_State *L, const int &index)
 
void returnObject (lua_State *L, Object *object)
 
void luaopen_krigApi (lua_State *L)
 

Detailed Description

Krig Game Engine Lua Scripting API.

API calls are split into seven classes of functions. The classes are grouped by the type of functionality they provide. For example, the krig.object.set_position function is supported for a game objects, while krig.level.add_object function is supported for game levels. The seven classes of functions are: Game Object, Game Level, Text, Terrain, Camera, Vector Math, and Game (Engine).