Ejemplo n.º 1
0
    public static int FromProtocol_s(IntPtr l)
    {
        int result;

        try
        {
            ProBusinessCardInfoSet pbSet;
            LuaObject.checkType <ProBusinessCardInfoSet>(l, 1, out pbSet);
            BusinessCardInfoSet o = BusinessCardInfoSet.FromProtocol(pbSet);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Ejemplo n.º 2
0
 // Token: 0x06006F9D RID: 28573 RVA: 0x001F36D8 File Offset: 0x001F18D8
 private void LoadFromPBData(DSFriendNtf pbFriendInfo)
 {
     if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_LoadFromPBDataDSFriendNtf_hotfix != null)
     {
         this.m_LoadFromPBDataDSFriendNtf_hotfix.call(new object[]
         {
             this,
             pbFriendInfo
         });
         return;
     }
     BJLuaObjHelper.IsSkipLuaHotfix = false;
     this.m_friendDS.Likes          = pbFriendInfo.Likes;
     this.m_friendDS.LikedUsers.AddRange(pbFriendInfo.LikedUsers);
     this.m_friendDS.BusinessCardSetInfo = BusinessCardInfoSet.FromProtocol(pbFriendInfo.SetInfo);
     this.m_friendDS.FriendshipPointsSent.AddRange(pbFriendInfo.FriendshipPointsSent);
     this.m_friendDS.FriendshipPointsReceived.AddRange(pbFriendInfo.FriendshipPointsReceived);
     this.m_friendDS.FriendshipPointsClaimedToday = pbFriendInfo.FriendshipPointsClaimedToday;
     this.m_friendDS.FriendshipPointsFromFightWithFriendsToday = pbFriendInfo.FriendshipPointsFromFightWithFriendsToday;
     this.m_friendDS.BannedTime = new DateTime(pbFriendInfo.BannedTime);
     this.m_friendDS.InitVersion((ushort)pbFriendInfo.Version, (ushort)pbFriendInfo.Version);
 }