Пример #1
0
 public void SetApllyUserInfo(GUILDWAR_APPLY_MILITARY_USER_INFO UserInfo)
 {
     this.m_ui8RaidBattlePos  = UserInfo.ui8RaidBattlePos;
     this.m_i64MilitaryID     = UserInfo.i64MilitaryID;
     this.m_i64PersonID       = UserInfo.i64PersonID;
     this.m_ui8MilitaryUnique = UserInfo.ui8MilitaryUnique;
     this.m_strCharName       = TKString.NEWString(UserInfo.szCharName);
     this.m_i16CharLevel      = UserInfo.i16CharLevel;
     this.m_ui8Leader         = UserInfo.ui8Leader;
 }
 public void RefeshDetailInfo(GS_GUILDWAR_APPLY_MILITARY_INFO_ACK ACK, NkDeserializePacket kDeserializePacket)
 {
     this.m_ApplyInfo.Clear();
     this.m_i64GuildID  = ACK.i64GuildID;
     this.m_iRaidUnique = ACK.ui8RaidUnique;
     for (int i = 0; i < (int)ACK.i16UserInfoCount; i++)
     {
         GUILDWAR_APPLY_MILITARY_USER_INFO packet = kDeserializePacket.GetPacket <GUILDWAR_APPLY_MILITARY_USER_INFO>();
         ApplyInfo item = new ApplyInfo(packet);
         this.m_ApplyInfo.Add(item);
     }
     for (int i = 0; i < (int)ACK.i16DetailInfoCount; i++)
     {
         GUILDWAR_APPLY_MILITARY_DETAIL_INFO packet2 = kDeserializePacket.GetPacket <GUILDWAR_APPLY_MILITARY_DETAIL_INFO>();
         this.AddDetailInfo(packet2);
     }
     NewGuildWarDetailInfoDlg.eSTATE eSTATE;
     if (ACK.i64GuildID == NrTSingleton <NewGuildManager> .Instance.GetGuildID())
     {
         ApplyUserInfo applyUserInfo = this.GetApplyUserInfo(NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo.m_PersonID);
         if (applyUserInfo != null && applyUserInfo.GetLeader() == 1)
         {
             eSTATE = NewGuildWarDetailInfoDlg.eSTATE.eSTATE_RAID_LEADER;
         }
         else
         {
             eSTATE = NewGuildWarDetailInfoDlg.eSTATE.eSTATE_RAID_MEMBER;
         }
     }
     else
     {
         eSTATE = NewGuildWarDetailInfoDlg.eSTATE.eSTATE_ENEMY_INFO;
     }
     this.SetLayerInfo(eSTATE);
     this.SetDetailInfo(eSTATE);
 }
Пример #3
0
 public ApplyInfo(GUILDWAR_APPLY_MILITARY_USER_INFO UserInfo)
 {
     this.m_ApplyUserInfo.SetApllyUserInfo(UserInfo);
 }