Esempio n. 1
0
 public override void OnRelease()
 {
     this.dwAchievementNum = 0u;
     if (this.astAchievementData != null)
     {
         for (int i = 0; i < this.astAchievementData.Length; i++)
         {
             if (this.astAchievementData[i] != null)
             {
                 this.astAchievementData[i].Release();
                 this.astAchievementData[i] = null;
             }
         }
     }
     this.dwDoneTypeNum = 0u;
     if (this.astDoneData != null)
     {
         for (int j = 0; j < this.astDoneData.Length; j++)
         {
             if (this.astDoneData[j] != null)
             {
                 this.astDoneData[j].Release();
                 this.astDoneData[j] = null;
             }
         }
     }
     this.dwAchievePoint = 0u;
     if (this.stTrophyLvlInfo != null)
     {
         this.stTrophyLvlInfo.Release();
         this.stTrophyLvlInfo = null;
     }
 }
Esempio n. 2
0
 public COMDT_ACHIEVEMENT_INFO()
 {
     this.astAchievementData = new COMDT_ACHIEVEMENT_DATA[400];
     for (int i = 0; i < 400; i++)
     {
         this.astAchievementData[i] = (COMDT_ACHIEVEMENT_DATA)ProtocolObjectPool.Get(COMDT_ACHIEVEMENT_DATA.CLASS_ID);
     }
     this.astDoneData = new COMDT_ACHIEVEMENT_DONE_DATA[100];
     for (int j = 0; j < 100; j++)
     {
         this.astDoneData[j] = (COMDT_ACHIEVEMENT_DONE_DATA)ProtocolObjectPool.Get(COMDT_ACHIEVEMENT_DONE_DATA.CLASS_ID);
     }
     this.stTrophyLvlInfo = (COMDT_TROPHY_INFO)ProtocolObjectPool.Get(COMDT_TROPHY_INFO.CLASS_ID);
     this.ShowAchievement = new uint[3];
 }
Esempio n. 3
0
 public override void OnUse()
 {
     if (this.astAchievementData != null)
     {
         for (int i = 0; i < this.astAchievementData.Length; i++)
         {
             this.astAchievementData[i] = (COMDT_ACHIEVEMENT_DATA)ProtocolObjectPool.Get(COMDT_ACHIEVEMENT_DATA.CLASS_ID);
         }
     }
     if (this.astDoneData != null)
     {
         for (int j = 0; j < this.astDoneData.Length; j++)
         {
             this.astDoneData[j] = (COMDT_ACHIEVEMENT_DONE_DATA)ProtocolObjectPool.Get(COMDT_ACHIEVEMENT_DONE_DATA.CLASS_ID);
         }
     }
     this.stTrophyLvlInfo = (COMDT_TROPHY_INFO)ProtocolObjectPool.Get(COMDT_TROPHY_INFO.CLASS_ID);
 }