static int _Createfogs_proto_msg_ActivityInfo(IntPtr L) { int count = LuaDLL.lua_gettop(L); if (count == 0) { fogs.proto.msg.ActivityInfo obj = new fogs.proto.msg.ActivityInfo(); LuaScriptMgr.PushObject(L, obj); return(1); } else { LuaDLL.luaL_error(L, "invalid arguments to method: fogs.proto.msg.ActivityInfo.New"); } return(0); }
static int get_activity(IntPtr L) { object o = LuaScriptMgr.GetLuaObject(L, 1); fogs.proto.msg.ActivityInfo obj = (fogs.proto.msg.ActivityInfo)o; if (obj == null) { LuaTypes types = LuaDLL.lua_type(L, 1); if (types == LuaTypes.LUA_TTABLE) { LuaDLL.luaL_error(L, "unknown member name activity"); } else { LuaDLL.luaL_error(L, "attempt to index activity on a nil value"); } } LuaScriptMgr.Push(L, obj.activity); return(1); }