Esempio n. 1
0
 public void ShallowCopy(WeihuaGames.ClientClass.QueryDiner queryDiner)
 {
     if (queryDiner != null)
     {
         this.dinerId           = queryDiner.dinerId;
         this.avatarResourceId  = queryDiner.avatarResourceId;
         this.level             = queryDiner.level;
         this.breakThroughLevel = queryDiner.breakThroughLevel;
         this.state             = queryDiner.state;
         this.meridianDatas     = queryDiner.meridianDatas;
         this.domineerData      = queryDiner.domineerData;
         this.costs             = queryDiner.costs;
     }
 }
Esempio n. 2
0
 public void ShallowCopy(WeihuaGames.ClientClass.DinerPackage package)
 {
     if (package != null)
     {
         this.qualityType = package.qualityType;
         this.normalRefreshAmount = package.normalRefreshAmount;
         this.specialRefreshAmonut = package.specialRefreshAmonut;
         this.nextRefreshTime = package.nextRefreshTime;
         this.lastRefreshTime = package.lastRefreshTime;
         this.refreshCountResetTime = package.refreshCountResetTime;
         this.dic_queryDiners.Clear();
         this.queryDiners.Clear();
         foreach (WeihuaGames.ClientClass.QueryDiner diner in package.queryDiners)
         {
             WeihuaGames.ClientClass.QueryDiner item = new WeihuaGames.ClientClass.QueryDiner();
             item.ShallowCopy(diner);
             this.queryDiners.Add(item);
             this.dic_queryDiners.Add(item.DinerId, item);
         }
     }
 }