Пример #1
0
 public override void OnRelease()
 {
     this.bType = 0;
     if (this.stRewardInfo != null)
     {
         this.stRewardInfo.Release();
         this.stRewardInfo = null;
     }
     this.bFromType = 0;
     if (this.stFromInfo != null)
     {
         this.stFromInfo.Release();
         this.stFromInfo = null;
     }
 }
Пример #2
0
 public override void OnUse()
 {
     this.stRewardInfo = (COMDT_REWARDS_UNION)ProtocolObjectPool.Get(COMDT_REWARDS_UNION.CLASS_ID);
     this.stFromInfo   = (COMDT_REWARDS_FROM)ProtocolObjectPool.Get(COMDT_REWARDS_FROM.CLASS_ID);
 }
Пример #3
0
 public COMDT_REWARD_INFO()
 {
     this.stRewardInfo = (COMDT_REWARDS_UNION)ProtocolObjectPool.Get(COMDT_REWARDS_UNION.CLASS_ID);
     this.stFromInfo   = (COMDT_REWARDS_FROM)ProtocolObjectPool.Get(COMDT_REWARDS_FROM.CLASS_ID);
 }