public void PushString(string s) { // int len = 0; // IntPtr ptr = LuaAPI.NativeUtf8FromString(s, ref len); LuaAPI.lua_pushstring(this.luaPtr, s); }
public void GetTable(int index) { LuaAPI.lua_gettable(this.luaPtr, index); }
public GCHandle ToUserData(int index) { return(GCHandle.FromIntPtr(LuaAPI.lua_topointer(this.luaPtr, index))); }
public void PushLongId(long v) { LuaAPI.lua_pushID(this.luaPtr, v); }
public void PushULong(ulong v) { LuaAPI.lua_pushulong(this.luaPtr, v); }
public double ToNumber(int index) { return(LuaAPI.lua_tonumber(this.luaPtr, index)); }
public void PushLongInterger(long n) { LuaAPI.lua_pushlong(this.luaPtr, n); }
public int RawLen(int index) { return(LuaAPI.lua_objlen(this.luaPtr, index)); }
public void RawSet(int index) { LuaAPI.lua_rawset(this.luaPtr, index); }
public void CreateTable(int narray, int nrec) { LuaAPI.lua_createtable(this.luaPtr, narray, nrec); }
public bool RawEqual(int index1, int index2) { return(LuaAPI.lua_rawequal(this.luaPtr, index1, index2) != 0); }
public static IntPtr Create() { return(LuaAPI.luaL_newstate()); }
public void PushValue(int index) { LuaAPI.lua_pushvalue(this.luaPtr, index); }
public void Pushlstring(IntPtr s, int len) { LuaAPI.lua_pushlstring(this.luaPtr, s, len); }
public int ToInteger(int index) { return((int)LuaAPI.lua_tonumber(this.luaPtr, index)); }
public void RawSetI(int index, int n) { LuaAPI.lua_rawseti(this.luaPtr, index, n); }
public void GetField(int index, string key) { LuaAPI.lua_getfield(this.luaPtr, index, key); }
public void Remove(int index) { LuaAPI.lua_remove(this.luaPtr, index); }
public void GetGlobal(string name) { LuaAPI.lua_getfield(this.luaPtr, LuaAPI.LUA_GLOBALSINDEX, name); }
public void Replace(int index) { LuaAPI.lua_replace(this.luaPtr, index); }
public long ReadLongId(int index) { long longValue = LuaAPI.lua_toID(this.luaPtr, index); return(longValue); }
public int Error() { return(LuaAPI.lua_error(this.luaPtr)); }
public bool GetMetaTable(int index) { return(LuaAPI.lua_getmetatable(this.luaPtr, index) != 0); }
public int NewMetaTable(string name) { return(LuaAPI.luaL_newmetatable(this.luaPtr, name)); }
public ulong ReadULong(int index) { return(LuaAPI.lua_toulong(this.luaPtr, index)); }
public void SetTop(int top) { LuaAPI.lua_settop(this.luaPtr, top); }
public int GetTop() { return(LuaAPI.lua_gettop(this.luaPtr)); }
public bool ToBoolean(int index) { return(LuaAPI.lua_toboolean(this.luaPtr, index) != 0); }
public void Insert(int index) { LuaAPI.lua_insert(this.luaPtr, index); }
public void PushNumber(double n) { LuaAPI.lua_pushnumber(this.luaPtr, n); }