Beispiel #1
0
 public void PushNil()
 {
     LuaAPI.lua_pushnil(this.m_lua);
 }
Beispiel #2
0
 public void GetField(int index, string key)
 {
     LuaAPI.lua_getfield(this.m_lua, index, key);
 }
Beispiel #3
0
 public LuaType Type(int index)
 {
     return((LuaType)LuaAPI.lua_type(this.m_lua, index));
 }
Beispiel #4
0
 public void PushLongId(long v)
 {
     LuaAPI.lua_pushID(this.m_lua, v);
 }
Beispiel #5
0
 public int Error()
 {
     return(LuaAPI.lua_error(this.m_lua));
 }
Beispiel #6
0
 public double ToNumber(int index)
 {
     return(LuaAPI.lua_tonumber(this.m_lua, index));
 }
Beispiel #7
0
 public void PushLongInterger(long n)
 {
     LuaAPI.lua_pushlong(this.m_lua, n);
 }
Beispiel #8
0
 public void RawSet(int index)
 {
     LuaAPI.lua_rawset(this.m_lua, index);
 }
Beispiel #9
0
 public void RawSetI(int index, int n)
 {
     LuaAPI.lua_rawseti(this.m_lua, index, n);
 }
Beispiel #10
0
 public bool RawEqual(int index1, int index2)
 {
     return(LuaAPI.lua_rawequal(this.m_lua, index1, index2) != 0);
 }
Beispiel #11
0
 public int RawLen(int index)
 {
     return(LuaAPI.lua_objlen(this.m_lua, index));
 }
Beispiel #12
0
 public void PushValue(int index)
 {
     LuaAPI.lua_pushvalue(this.m_lua, index);
 }
Beispiel #13
0
 public void PushString(string s)
 {
     // int len = 0;
     //  IntPtr ptr = LuaAPI.NativeUtf8FromString(s, ref len);
     LuaAPI.lua_pushstring(this.m_lua, s);
 }
Beispiel #14
0
 public void PushNumber(double n)
 {
     LuaAPI.lua_pushnumber(this.m_lua, n);
 }
Beispiel #15
0
 public int ToInteger(int index)
 {
     return((int)LuaAPI.lua_tonumber(this.m_lua, index));
 }
Beispiel #16
0
 public bool CheckStack(int size)
 {
     return(LuaAPI.lua_checkstack(this.m_lua, size) != 0);
 }
Beispiel #17
0
 public void Concat(int n)
 {
     LuaAPI.lua_concat(this.m_lua, n);
 }
Beispiel #18
0
 public void Remove(int index)
 {
     LuaAPI.lua_remove(this.m_lua, index);
 }
Beispiel #19
0
 public static IntPtr Create()
 {
     return(LuaAPI.luaL_newstate());
 }
Beispiel #20
0
 public void Replace(int index)
 {
     LuaAPI.lua_replace(this.m_lua, index);
 }
Beispiel #21
0
        public long ReadLongId(int index)
        {
            long longValue = LuaAPI.lua_toID(this.m_lua, index);

            return(longValue);
        }
Beispiel #22
0
 public int NewMetaTable(string name)
 {
     return(LuaAPI.luaL_newmetatable(this.m_lua, name));
 }
Beispiel #23
0
 public void CreateTable(int narray, int nrec)
 {
     LuaAPI.lua_createtable(this.m_lua, narray, nrec);
 }
Beispiel #24
0
 public void SetTable(int index)
 {
     LuaAPI.lua_settable(this.m_lua, index);
 }
Beispiel #25
0
 public GCHandle ToUserData(int index)
 {
     return(GCHandle.FromIntPtr(LuaAPI.lua_topointer(this.m_lua, index)));
 }
Beispiel #26
0
 public void SetTop(int top)
 {
     LuaAPI.lua_settop(this.m_lua, top);
 }
Beispiel #27
0
 public void GetGlobal(string name)
 {
     LuaAPI.lua_getfield(this.m_lua, LuaAPI.LUA_GLOBALSINDEX, name);
 }
Beispiel #28
0
 public bool ToBoolean(int index)
 {
     return(LuaAPI.lua_toboolean(this.m_lua, index) != 0);
 }
Beispiel #29
0
 public bool GetMetaTable(int index)
 {
     return(LuaAPI.lua_getmetatable(this.m_lua, index) != 0);
 }
Beispiel #30
0
 public void PushInteger(int n)
 {
     LuaAPI.luaL_pushinteger(this.m_lua, n);
 }