示例#1
0
 public void PushString(string s)
 {
     // int len = 0;
     //  IntPtr ptr = LuaAPI.NativeUtf8FromString(s, ref len);
     LuaAPI.lua_pushstring(this.luaPtr, s);
 }
示例#2
0
 public void GetTable(int index)
 {
     LuaAPI.lua_gettable(this.luaPtr, index);
 }
示例#3
0
 public GCHandle ToUserData(int index)
 {
     return(GCHandle.FromIntPtr(LuaAPI.lua_topointer(this.luaPtr, index)));
 }
示例#4
0
 public void PushLongId(long v)
 {
     LuaAPI.lua_pushID(this.luaPtr, v);
 }
示例#5
0
 public void PushULong(ulong v)
 {
     LuaAPI.lua_pushulong(this.luaPtr, v);
 }
示例#6
0
 public double ToNumber(int index)
 {
     return(LuaAPI.lua_tonumber(this.luaPtr, index));
 }
示例#7
0
 public void PushLongInterger(long n)
 {
     LuaAPI.lua_pushlong(this.luaPtr, n);
 }
示例#8
0
 public int RawLen(int index)
 {
     return(LuaAPI.lua_objlen(this.luaPtr, index));
 }
示例#9
0
 public void RawSet(int index)
 {
     LuaAPI.lua_rawset(this.luaPtr, index);
 }
示例#10
0
 public void CreateTable(int narray, int nrec)
 {
     LuaAPI.lua_createtable(this.luaPtr, narray, nrec);
 }
示例#11
0
 public bool RawEqual(int index1, int index2)
 {
     return(LuaAPI.lua_rawequal(this.luaPtr, index1, index2) != 0);
 }
示例#12
0
 public static IntPtr Create()
 {
     return(LuaAPI.luaL_newstate());
 }
示例#13
0
 public void PushValue(int index)
 {
     LuaAPI.lua_pushvalue(this.luaPtr, index);
 }
示例#14
0
 public void Pushlstring(IntPtr s, int len)
 {
     LuaAPI.lua_pushlstring(this.luaPtr, s, len);
 }
示例#15
0
 public int ToInteger(int index)
 {
     return((int)LuaAPI.lua_tonumber(this.luaPtr, index));
 }
示例#16
0
 public void RawSetI(int index, int n)
 {
     LuaAPI.lua_rawseti(this.luaPtr, index, n);
 }
示例#17
0
 public void GetField(int index, string key)
 {
     LuaAPI.lua_getfield(this.luaPtr, index, key);
 }
示例#18
0
 public void Remove(int index)
 {
     LuaAPI.lua_remove(this.luaPtr, index);
 }
示例#19
0
 public void GetGlobal(string name)
 {
     LuaAPI.lua_getfield(this.luaPtr, LuaAPI.LUA_GLOBALSINDEX, name);
 }
示例#20
0
 public void Replace(int index)
 {
     LuaAPI.lua_replace(this.luaPtr, index);
 }
示例#21
0
        public long ReadLongId(int index)
        {
            long longValue = LuaAPI.lua_toID(this.luaPtr, index);

            return(longValue);
        }
示例#22
0
 public int Error()
 {
     return(LuaAPI.lua_error(this.luaPtr));
 }
示例#23
0
 public bool GetMetaTable(int index)
 {
     return(LuaAPI.lua_getmetatable(this.luaPtr, index) != 0);
 }
示例#24
0
 public int NewMetaTable(string name)
 {
     return(LuaAPI.luaL_newmetatable(this.luaPtr, name));
 }
示例#25
0
 public ulong ReadULong(int index)
 {
     return(LuaAPI.lua_toulong(this.luaPtr, index));
 }
示例#26
0
 public void SetTop(int top)
 {
     LuaAPI.lua_settop(this.luaPtr, top);
 }
示例#27
0
 public int GetTop()
 {
     return(LuaAPI.lua_gettop(this.luaPtr));
 }
示例#28
0
 public bool ToBoolean(int index)
 {
     return(LuaAPI.lua_toboolean(this.luaPtr, index) != 0);
 }
示例#29
0
 public void Insert(int index)
 {
     LuaAPI.lua_insert(this.luaPtr, index);
 }
示例#30
0
 public void PushNumber(double n)
 {
     LuaAPI.lua_pushnumber(this.luaPtr, n);
 }