#if Server
using System;

namespace GameData
{
    /// <summary>
    /// 奖品
    /// </summary>
    [Serializable]
    public class Prize
    {
        /// <summary>
        /// 名次
        /// </summary>
        public int Index;

        /// <summary>
        /// 奖励的游戏币
        /// </summary>
        public int Winmoney;

        /// <summary>
        /// 奖励的礼券
        /// </summary>
        public int Wincoupon;

        /// <summary>
        /// 房卡
        /// </summary>
        public int CarNum;

        /// <summary>
        /// 红包积分--1积分等于1分
        /// </summary>
        public int RedEnvelopes;
        
        /// <summary>
        /// 参赛券
        /// </summary>
        public int CanSaiJuan;

        /// <summary>
        /// 都市放心购电子券，值是放心购卡的面值。比如20，就是放心购20元的电子券
        /// </summary>
        public int DSFXGVoucherNum;

        /// <summary>
        /// 复活卡
        /// </summary>
        public int FuHuoKa;

        /// <summary>
        /// 实物黄金
        /// </summary>
        public float RealGlod;

        public AwardInfoPack GetAward()
        {
            return new AwardInfoPack()
            {
                Money = this.Winmoney,
                CarNum = this.CarNum,
                Coupon = this.Wincoupon,
                RedEnvelopes = this.RedEnvelopes,
                CanSaiJuan = this.CanSaiJuan,
                DSFXGVoucherNum = this.DSFXGVoucherNum,
                FuHuoKa = this.FuHuoKa,
                RealGold = this.RealGlod,
            };
        }

        public Prize Clone() {
            return new Prize
            {
                Index=this.Index,
                Winmoney=this.Winmoney,
                Wincoupon=this.Wincoupon,
                CarNum = this.CarNum,
                RedEnvelopes =this.RedEnvelopes,
                CanSaiJuan =this.CanSaiJuan,
                DSFXGVoucherNum = this.DSFXGVoucherNum,
                FuHuoKa = this.FuHuoKa,
                RealGlod = this.RealGlod,
            };
        }
    }
}
#endif