static int NFToPB(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); LuaFramework.NFGUID arg0 = (LuaFramework.NFGUID)ToLua.CheckObject(L, 1, typeof(LuaFramework.NFGUID)); NFMsg.Ident o = LuaFramework.Util.NFToPB(arg0); ToLua.PushObject(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int IsNull(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); LuaFramework.NFGUID obj = (LuaFramework.NFGUID)ToLua.CheckObject(L, 1, typeof(LuaFramework.NFGUID)); bool o = obj.IsNull(); LuaDLL.lua_pushboolean(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int ToString(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); LuaFramework.NFGUID obj = (LuaFramework.NFGUID)ToLua.CheckObject(L, 1, typeof(LuaFramework.NFGUID)); string o = obj.ToString(); LuaDLL.lua_pushstring(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int GetHashCode(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); LuaFramework.NFGUID obj = (LuaFramework.NFGUID)ToLua.CheckObject(L, 1, typeof(LuaFramework.NFGUID)); int o = obj.GetHashCode(); LuaDLL.lua_pushinteger(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int op_Equality(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); LuaFramework.NFGUID arg0 = (LuaFramework.NFGUID)ToLua.ToObject(L, 1); LuaFramework.NFGUID arg1 = (LuaFramework.NFGUID)ToLua.ToObject(L, 2); bool o = arg0 == arg1; LuaDLL.lua_pushboolean(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int set_mMainID(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); LuaFramework.NetworkManager obj = (LuaFramework.NetworkManager)o; LuaFramework.NFGUID arg0 = (LuaFramework.NFGUID)ToLua.CheckObject(L, 2, typeof(LuaFramework.NFGUID)); obj.mMainID = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index mMainID on a nil value" : e.Message)); } }
static int get_mMainID(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); LuaFramework.NetworkManager obj = (LuaFramework.NetworkManager)o; LuaFramework.NFGUID ret = obj.mMainID; ToLua.PushObject(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index mMainID on a nil value" : e.Message)); } }
static int Equals(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); LuaFramework.NFGUID obj = (LuaFramework.NFGUID)ToLua.CheckObject(L, 1, typeof(LuaFramework.NFGUID)); object arg0 = ToLua.ToVarObject(L, 2); bool o = obj != null?obj.Equals(arg0) : arg0 == null; LuaDLL.lua_pushboolean(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int set_nData64(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); LuaFramework.NFGUID obj = (LuaFramework.NFGUID)o; long arg0 = LuaDLL.tolua_checkint64(L, 2); obj.nData64 = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index nData64 on a nil value" : e.Message)); } }
static int get_nData64(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); LuaFramework.NFGUID obj = (LuaFramework.NFGUID)o; long ret = obj.nData64; LuaDLL.tolua_pushint64(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index nData64 on a nil value" : e.Message)); } }
static int Parse(IntPtr L) { try { ToLua.CheckArgsCount(L, 3); LuaFramework.NFGUID obj = (LuaFramework.NFGUID)ToLua.CheckObject(L, 1, typeof(LuaFramework.NFGUID)); string arg0 = ToLua.CheckString(L, 2); LuaFramework.NFGUID arg1 = null; bool o = obj.Parse(arg0, out arg1); LuaDLL.lua_pushboolean(L, o); ToLua.PushObject(L, arg1); return(2); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int _CreateLuaFramework_NFGUID(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 0) { LuaFramework.NFGUID obj = new LuaFramework.NFGUID(); ToLua.PushObject(L, obj); return(1); } else if (count == 1 && TypeChecker.CheckTypes(L, 1, typeof(LuaFramework.NFGUID))) { LuaFramework.NFGUID arg0 = (LuaFramework.NFGUID)ToLua.CheckObject(L, 1, typeof(LuaFramework.NFGUID)); LuaFramework.NFGUID obj = new LuaFramework.NFGUID(arg0); ToLua.PushObject(L, obj); return(1); } else if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(long), typeof(long))) { long arg0 = LuaDLL.tolua_checkint64(L, 1); long arg1 = LuaDLL.tolua_checkint64(L, 2); LuaFramework.NFGUID obj = new LuaFramework.NFGUID(arg0, arg1); ToLua.PushObject(L, obj); return(1); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: LuaFramework.NFGUID.New")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }