Пример #1
0
 public void UpdateWarPointInfo(GC_RET_FINALGUILDWARPOINTINFO packet)
 {
     for (int i = 0; i < packet.pointTypeCount; i++)
     {
         GuildWarPointInfo pointInfo = new GuildWarPointInfo();
         pointInfo.PointType         = packet.GetPointType(i);
         pointInfo.PointScore        = packet.GetPointScore(i);
         pointInfo.PointOwnGuildGuid = packet.GetPointOwnGuildGuid(i);
         pointInfo.IsFighting        = (packet.GetIsFighting(i) == 1 ? true : false);
         pointInfo.MyGuildScore      = packet.MyGuildScore;
         pointInfo.FightGuildScore   = packet.FightGuildScore;
         if (i >= 0 && i < (int)GUILDWARPOINTTYPE.MAXPOINTNUM)
         {
             if (m_PointItem[i] == null && m_PointGameObj[i] != null)
             {
                 m_PointItem[i] = m_PointGameObj[i].GetComponent <GuildWarPonitItemLogic>();
             }
             if (m_PointItem[i] != null)
             {
                 m_PointItem[i].InitInfo(pointInfo);
             }
         }
     }
     m_MyGuildPointScoreLable.text    = packet.MyGuildScore.ToString();
     m_FightGuildPointScoreLable.text = packet.FightGuildScore.ToString();
     m_MyGuildNameLabel.text          = packet.MyGuildName;
     m_FightGuildNameLabel.text       = packet.FightGuildBName;
     m_FinalRoot.SetActive(true);
     if (m_curWarSchedule == (int)GC_RET_CURGUILDWARTYPE.RETTYPE.FINAL_JION)
     {
         m_ShowFinalGroupInfoBt.SetActive(true);
     }
 }
        public uint Execute(PacketDistributed ipacket)
        {
            GC_RET_FINALGUILDWARPOINTINFO packet = (GC_RET_FINALGUILDWARPOINTINFO)ipacket;

            if (null == packet)
            {
                return((uint)PACKET_EXE.PACKET_EXE_ERROR);
            }
            //enter your logic
//            if (GuildWarInfoLogic.Instance())
//            {
//                GuildWarInfoLogic.Instance().UpdateWarPointInfo(packet);
//            }
            return((uint)PACKET_EXE.PACKET_EXE_CONTINUE);
        }