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

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

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

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

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

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

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

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

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

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

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

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

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

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

        obj.icon = LuaScriptMgr.GetString(L, 3);
        return(0);
    }