示例#1
0
 public void InitializeLogList()
 {
     this.ReleaseLogList();
     if (!UnityEngine.Object.op_Inequality((UnityEngine.Object) this.m_LogController, (UnityEngine.Object)null))
     {
         return;
     }
     this.m_LogSource = new MultiInvitationReceiveWindow.LogContent.ItemSource();
     if (this.m_LogData != null && this.m_LogData.rooms != null)
     {
         for (int index = 0; index < this.m_LogData.rooms.Length; ++index)
         {
             MultiInvitationReceiveWindow.LogData.RoomData room = this.m_LogData.rooms[index];
             if (room != null && room.isValid && this.GetActiveRoomData(room.roomid) == null)
             {
                 MultiInvitationReceiveWindow.LogContent.ItemSource.ItemParam itemParam = new MultiInvitationReceiveWindow.LogContent.ItemSource.ItemParam(room);
                 if (itemParam != null && itemParam.IsValid())
                 {
                     this.m_LogSource.Add(itemParam);
                 }
             }
         }
     }
     this.m_LogController.Initialize((ContentSource)this.m_LogSource, Vector2.get_zero());
 }
示例#2
0
 public void ReleaseLogList()
 {
     if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.m_LogController, (UnityEngine.Object)null))
     {
         this.m_LogController.Release();
     }
     this.m_LogSource = (MultiInvitationReceiveWindow.LogContent.ItemSource)null;
 }