Exemplo n.º 1
0
 internal static void Write(int version, BinaryWriter bw, AWARD_PQ_RANKING AWARD_PQ_RANKING)
 {
     bw.Write(AWARD_PQ_RANKING.m_bAwardByProf);
     for (int i = 0; i < AWARD_PQ_RANKING.m_RankingAward.Length; i++)
     {
         RANKING_AWARD.Write(version, bw, AWARD_PQ_RANKING.m_RankingAward[i]);
     }
 }
Exemplo n.º 2
0
 internal static void Write(int version, BinaryWriter bw, RANKING_AWARD PLAYER_WANTED)
 {
     bw.Write(PLAYER_WANTED.m_iRankingStart);
     bw.Write(PLAYER_WANTED.m_iRankingEnd);
     bw.Write(PLAYER_WANTED.m_bCommonItem);
     bw.Write(PLAYER_WANTED.m_ulAwardItemId);
     bw.Write(PLAYER_WANTED.m_ulAwardItemNum);
     bw.Write(PLAYER_WANTED.m_lPeriod);
 }
Exemplo n.º 3
0
 internal static void Read(int version, BinaryReader br, RANKING_AWARD RANKING_AWARD)
 {
     RANKING_AWARD.m_iRankingStart  = br.ReadInt32();
     RANKING_AWARD.m_iRankingEnd    = br.ReadInt32();
     RANKING_AWARD.m_bCommonItem    = br.ReadBoolean();
     RANKING_AWARD.m_ulAwardItemId  = br.ReadInt32();
     RANKING_AWARD.m_ulAwardItemNum = br.ReadInt32();
     RANKING_AWARD.m_lPeriod        = br.ReadInt32();
 }
Exemplo n.º 4
0
 internal static void Read(int version, BinaryReader br, AWARD_PQ_RANKING AWARD_PQ_RANKING)
 {
     AWARD_PQ_RANKING.m_bAwardByProf = br.ReadBoolean();
     AWARD_PQ_RANKING.m_RankingAward = new RANKING_AWARD[AWARD_PQ_RANKING.m_ulRankingAwardNum];
     for (int i = 0; i < AWARD_PQ_RANKING.m_ulRankingAwardNum; i++)
     {
         AWARD_PQ_RANKING.m_RankingAward[i] = new RANKING_AWARD();
         RANKING_AWARD.Read(version, br, AWARD_PQ_RANKING.m_RankingAward[i]);
     }
 }