static int _Createfogs_proto_msg_TaskInfo(IntPtr L) { int count = LuaDLL.lua_gettop(L); if (count == 0) { fogs.proto.msg.TaskInfo obj = new fogs.proto.msg.TaskInfo(); LuaScriptMgr.PushObject(L, obj); return(1); } else { LuaDLL.luaL_error(L, "invalid arguments to method: fogs.proto.msg.TaskInfo.New"); } return(0); }
static int get_last_daily_time(IntPtr L) { object o = LuaScriptMgr.GetLuaObject(L, 1); fogs.proto.msg.TaskInfo obj = (fogs.proto.msg.TaskInfo)o; if (obj == null) { LuaTypes types = LuaDLL.lua_type(L, 1); if (types == LuaTypes.LUA_TTABLE) { LuaDLL.luaL_error(L, "unknown member name last_daily_time"); } else { LuaDLL.luaL_error(L, "attempt to index last_daily_time on a nil value"); } } LuaScriptMgr.Push(L, obj.last_daily_time); return(1); }
static int set_main_info(IntPtr L) { object o = LuaScriptMgr.GetLuaObject(L, 1); fogs.proto.msg.TaskInfo obj = (fogs.proto.msg.TaskInfo)o; if (obj == null) { LuaTypes types = LuaDLL.lua_type(L, 1); if (types == LuaTypes.LUA_TTABLE) { LuaDLL.luaL_error(L, "unknown member name main_info"); } else { LuaDLL.luaL_error(L, "attempt to index main_info on a nil value"); } } obj.main_info = (fogs.proto.msg.TaskConditionMain)LuaScriptMgr.GetNetObject(L, 3, typeof(fogs.proto.msg.TaskConditionMain)); return(0); }