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

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