Exemplo n.º 1
0
 // Token: 0x06007732 RID: 30514 RVA: 0x00208EB8 File Offset: 0x002070B8
 public void DeSerialize(DSTeamNtf msg)
 {
     if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_DeSerializeDSTeamNtf_hotfix != null)
     {
         this.m_DeSerializeDSTeamNtf_hotfix.call(new object[]
         {
             this,
             msg
         });
         return;
     }
     BJLuaObjHelper.IsSkipLuaHotfix = false;
     this.m_teamDS.ClearInitedData();
     this.m_teamDS.RoomId                = msg.RoomId;
     this.m_teamDS.GameFunctionTypeId    = (GameFunctionType)msg.GameFunctionTypeId;
     this.m_teamDS.LocationId            = msg.LocationId;
     this.m_teamDS.WaitingFunctionTypeId = (GameFunctionType)msg.WaitingFunctionTypeId;
     this.m_teamDS.WaitingLocationId     = msg.WaitingLocationId;
     if (msg.LastInviteSendTime != 0L)
     {
         this.m_teamDS.LastInviteSendTime = new DateTime(msg.LastInviteSendTime);
     }
     foreach (ProTeamRoomInviteInfo pbInfo in msg.InviteInfos)
     {
         this.m_teamDS.SetTeamRoomInviteInfo(TeamRoomInviteInfo.PbTeamRoomInviteInfoToTeamRoomInviteInfo(pbInfo));
     }
 }
Exemplo n.º 2
0
        // Token: 0x06004D5B RID: 19803 RVA: 0x0017A7B0 File Offset: 0x001789B0
        public override object SerializeToClient()
        {
            DSTeamNtf dsteamNtf = new DSTeamNtf();

            dsteamNtf.RoomId                = this.RoomId;
            dsteamNtf.GameFunctionTypeId    = (int)this.GameFunctionTypeId;
            dsteamNtf.LocationId            = this.LocationId;
            dsteamNtf.WaitingFunctionTypeId = (int)this.WaitingFunctionTypeId;
            dsteamNtf.WaitingLocationId     = this.WaitingLocationId;
            dsteamNtf.LastInviteSendTime    = this.LastInviteSendTime.Ticks;
            foreach (KeyValuePair <string, TeamRoomInviteInfo> keyValuePair in this.m_inviteInfos)
            {
                dsteamNtf.InviteInfos.Add(TeamRoomInviteInfo.TeamRoomInviteInfoToPbTeamRoomInviteInfo(keyValuePair.Value));
            }
            return(dsteamNtf);
        }