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

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