1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- // Generate By EToy
- // Don't Edit It!!
- using XGame.Framework.Database;
- using XGame.Framework.Serialization;
- namespace XGame.Database
- {
- /// <summary> raffle </summary>
- public sealed class raffleTable : ITable
- {
- long ITable.Key => Id;
- /// <summary> 功能id1000*抽奖类型+1 </summary>
- public int Id { get; private set; }
- /// <summary> 抽奖类型1=圣兵2=铭文 </summary>
- public int Type { get; private set; }
- /// <summary> 抽奖消耗【抽奖类型,消耗抽奖道具ID,抽奖次数,抽奖类型,消耗抽奖道具ID,抽奖次数】 </summary>
- public int[] Cost { get; private set; }
- /// <summary> 抽奖保底次数【小保底次数,大保底次数】0=没有保底机制 </summary>
- public int[] Floors { get; private set; }
- /// <summary> 抽奖经验 </summary>
- public int CallExp { get; private set; }
- /// <summary> 每日广告【每日广告次数,每次广告转化的抽奖次数】 </summary>
- public int[] AdNumber { get; private set; }
- /// <summary> 每日分享【每日分享次数,道县id,道具数量】 </summary>
- public int[] ShareNumber { get; private set; }
- /// <summary> 每日免费抽奖次数 </summary>
- public int Freeware { get; private set; }
- void ISerializable.Deserialize(IReader reader)
- {
- Id = reader.ReadInt();
- Type = reader.ReadInt();
- Cost = reader.ReadEnumerable<int[]>();
- Floors = reader.ReadEnumerable<int[]>();
- CallExp = reader.ReadInt();
- AdNumber = reader.ReadEnumerable<int[]>();
- ShareNumber = reader.ReadEnumerable<int[]>();
- Freeware = reader.ReadInt();
- }
- void ISerializable.Serialize(IWriter writer)
- {
- writer.Write(Id);
- writer.Write(Type);
- writer.Write(Cost);
- writer.Write(Floors);
- writer.Write(CallExp);
- writer.Write(AdNumber);
- writer.Write(ShareNumber);
- writer.Write(Freeware);
- }
- }
- }
|