Esempio n. 1
0
        public override void BuildPacket()
        {
            this.PushIntoStack(treasureList.Count);
            foreach (var treasure in treasureList)
            {
                rewardName = DialHelper.PrizeItemName(treasure);
                DataStruct dsItem = new DataStruct();
                dsItem.PushIntoStack((short)treasure.Type);
                dsItem.PushIntoStack(rewardName.ToNotNullString());
                dsItem.PushIntoStack((int)treasure.Num);

                this.PushIntoStack(dsItem);
            }
        }
Esempio n. 2
0
 public override void BuildPacket()
 {
     this.PushIntoStack(treasureList.Count);
     foreach (var treasure in treasureList)
     {
         GameUser   user   = new GameDataCacheSet <GameUser>().FindKey(treasure.UserID);
         DataStruct dsItem = new DataStruct();
         dsItem.PushIntoStack(user == null ? string.Empty : user.NickName.ToNotNullString());
         dsItem.PushIntoStack((short)treasure.Type);
         dsItem.PushIntoStack(DialHelper.PrizeItemName(treasure));
         dsItem.PushIntoStack((int)treasure.Num);
         this.PushIntoStack(dsItem);
     }
 }