static int _Createfogs_proto_msg_TrainingInfo(IntPtr L)
    {
        int count = LuaDLL.lua_gettop(L);

        if (count == 0)
        {
            fogs.proto.msg.TrainingInfo obj = new fogs.proto.msg.TrainingInfo();
            LuaScriptMgr.PushObject(L, obj);
            return(1);
        }
        else
        {
            LuaDLL.luaL_error(L, "invalid arguments to method: fogs.proto.msg.TrainingInfo.New");
        }

        return(0);
    }
    static int get_level(IntPtr L)
    {
        object o = LuaScriptMgr.GetLuaObject(L, 1);

        fogs.proto.msg.TrainingInfo obj = (fogs.proto.msg.TrainingInfo)o;

        if (obj == null)
        {
            LuaTypes types = LuaDLL.lua_type(L, 1);

            if (types == LuaTypes.LUA_TTABLE)
            {
                LuaDLL.luaL_error(L, "unknown member name level");
            }
            else
            {
                LuaDLL.luaL_error(L, "attempt to index level on a nil value");
            }
        }

        LuaScriptMgr.Push(L, obj.level);
        return(1);
    }
    static int set_remaining_time(IntPtr L)
    {
        object o = LuaScriptMgr.GetLuaObject(L, 1);

        fogs.proto.msg.TrainingInfo obj = (fogs.proto.msg.TrainingInfo)o;

        if (obj == null)
        {
            LuaTypes types = LuaDLL.lua_type(L, 1);

            if (types == LuaTypes.LUA_TTABLE)
            {
                LuaDLL.luaL_error(L, "unknown member name remaining_time");
            }
            else
            {
                LuaDLL.luaL_error(L, "attempt to index remaining_time on a nil value");
            }
        }

        obj.remaining_time = (uint)LuaScriptMgr.GetNumber(L, 3);
        return(0);
    }
    static int set_state(IntPtr L)
    {
        object o = LuaScriptMgr.GetLuaObject(L, 1);

        fogs.proto.msg.TrainingInfo obj = (fogs.proto.msg.TrainingInfo)o;

        if (obj == null)
        {
            LuaTypes types = LuaDLL.lua_type(L, 1);

            if (types == LuaTypes.LUA_TTABLE)
            {
                LuaDLL.luaL_error(L, "unknown member name state");
            }
            else
            {
                LuaDLL.luaL_error(L, "attempt to index state on a nil value");
            }
        }

        obj.state = (fogs.proto.msg.TrainingState)LuaScriptMgr.GetNetObject(L, 3, typeof(fogs.proto.msg.TrainingState));
        return(0);
    }