Exemplo n.º 1
0
 public void InitializeActiveList()
 {
     this.ReleaseActiveList();
     if (!UnityEngine.Object.op_Inequality((UnityEngine.Object) this.m_ActiveController, (UnityEngine.Object)null))
     {
         return;
     }
     this.m_ActiveSource = new MultiInvitationReceiveWindow.ActiveContent.ItemSource();
     if (this.m_ActiveData != null && this.m_ActiveData.rooms != null)
     {
         for (int index = 0; index < this.m_ActiveData.rooms.Length; ++index)
         {
             MultiInvitationReceiveWindow.ActiveData.RoomData room = this.m_ActiveData.rooms[index];
             if (room != null && room.isValid)
             {
                 MultiInvitationReceiveWindow.ActiveContent.ItemSource.ItemParam itemParam = new MultiInvitationReceiveWindow.ActiveContent.ItemSource.ItemParam(room);
                 if (itemParam != null && itemParam.IsValid())
                 {
                     this.m_ActiveSource.Add(itemParam);
                 }
             }
         }
     }
     this.m_ActiveController.Initialize((ContentSource)this.m_ActiveSource, Vector2.get_zero());
 }
Exemplo n.º 2
0
 public void Add(MultiInvitationReceiveWindow.ActiveContent.ItemSource.ItemParam param)
 {
     if (!param.IsValid())
     {
         return;
     }
     this.m_Params.Add(param);
 }