123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- // Generate By EToy
- // Don't Edit It!!
- using XGame.Framework.Database;
- using XGame.Framework.Serialization;
- namespace XGame.Database
- {
- /// <summary> call </summary>
- public sealed class callTable : 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> 抽奖消耗抽奖消耗+抽奖道具+抽奖次数 </summary>
- public int[] Cost { get; private set; }
- /// <summary> 抽奖保底次数达到次数后获得保底奖励 </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; }
- void ISerializable.Deserialize(IReader reader)
- {
- Id = reader.ReadInt();
- Type = reader.ReadInt();
- Cost = reader.ReadEnumerable<int[]>();
- Floors = reader.ReadInt();
- CallExp = reader.ReadInt();
- AdNumber = reader.ReadEnumerable<int[]>();
- ShareNumber = reader.ReadEnumerable<int[]>();
- }
- 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);
- }
- }
- }
|