Exemple #1
0
 // Token: 0x06003BCA RID: 15306 RVA: 0x00110184 File Offset: 0x0010E384
 public static GuildSearchInfo ToGuildSearchInfo(ProGuildSearchInfo proInfo)
 {
     return(new GuildSearchInfo
     {
         Id = proInfo.Id,
         Name = proInfo.Name,
         JoinLevel = proInfo.JoinLevel,
         LastWeekActivities = proInfo.LastWeekActivities,
         HiringDeclaration = proInfo.HiringDeclaration,
         HaveSendJoinReq = proInfo.HaveSendJoinReq,
         MemberCount = proInfo.MemberCount,
         PresidentMemberInfo = GuildMember.FromPb(proInfo.PresidentMemberInfo)
     });
 }
    public static int ToPBGuildSearchInfo_s(IntPtr l)
    {
        int result;

        try
        {
            GuildSearchInfo info;
            LuaObject.checkType <GuildSearchInfo>(l, 1, out info);
            ProGuildSearchInfo o = GuildSearchInfo.ToPBGuildSearchInfo(info);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }