static int _Createfogs_proto_msg_InviteRoleResp(IntPtr L) { int count = LuaDLL.lua_gettop(L); if (count == 0) { fogs.proto.msg.InviteRoleResp obj = new fogs.proto.msg.InviteRoleResp(); LuaScriptMgr.PushObject(L, obj); return(1); } else { LuaDLL.luaL_error(L, "invalid arguments to method: fogs.proto.msg.InviteRoleResp.New"); } return(0); }
static int get_role(IntPtr L) { object o = LuaScriptMgr.GetLuaObject(L, 1); fogs.proto.msg.InviteRoleResp obj = (fogs.proto.msg.InviteRoleResp)o; if (obj == null) { LuaTypes types = LuaDLL.lua_type(L, 1); if (types == LuaTypes.LUA_TTABLE) { LuaDLL.luaL_error(L, "unknown member name role"); } else { LuaDLL.luaL_error(L, "attempt to index role on a nil value"); } } LuaScriptMgr.PushObject(L, obj.role); return(1); }
static int set_cur_pieces(IntPtr L) { object o = LuaScriptMgr.GetLuaObject(L, 1); fogs.proto.msg.InviteRoleResp obj = (fogs.proto.msg.InviteRoleResp)o; if (obj == null) { LuaTypes types = LuaDLL.lua_type(L, 1); if (types == LuaTypes.LUA_TTABLE) { LuaDLL.luaL_error(L, "unknown member name cur_pieces"); } else { LuaDLL.luaL_error(L, "attempt to index cur_pieces on a nil value"); } } obj.cur_pieces = (uint)LuaScriptMgr.GetNumber(L, 3); return(0); }