コード例 #1
0
 public WeihuaGames.ClientClass.ActivityInfo FromBuffer(com.kodgames.corgi.protocol.ActivityInfo activityInfo)
 {
     this.openTime  = activityInfo.openTime;
     this.closeTime = activityInfo.closeTime;
     this.times.Clear();
     if ((activityInfo.times != null) && (activityInfo.times.Count > 0))
     {
         foreach (com.kodgames.corgi.protocol.ActivityTimer timer in activityInfo.times)
         {
             WeihuaGames.ClientClass.ActivityTimer item = new WeihuaGames.ClientClass.ActivityTimer();
             item.FromBuffer(timer);
             this.times.Add(item);
         }
     }
     return(this);
 }