123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- // Generate By EToy
- // Don't Edit It!!
- using XGame.Framework.Database;
- using XGame.Framework.Serialization;
- namespace XGame.Database
- {
- /// <summary> mission </summary>
- public sealed class missionTable : ITable
- {
- long ITable.Key => Kind;
- /// <summary> 副本种类 </summary>
- public int Kind { get; private set; }
- /// <summary> 副本名称 </summary>
- public string Name { get; private set; }
- /// <summary> 副本免费挑战次数 </summary>
- public int Number { get; private set; }
- /// <summary> 副本消耗门票1=门票2=每日次数 </summary>
- public int Type { get; private set; }
- /// <summary> 副本时长按照秒来计算 </summary>
- public int Time { get; private set; }
- /// <summary> 挑战加成开服天数+属性id+属性参数 </summary>
- public int[] Bonus { get; private set; }
- /// <summary> 副本参与人数 </summary>
- public int Toll { get; private set; }
- /// <summary> 广告获取门票次数 </summary>
- public int Ads { get; private set; }
- /// <summary> 门票上线 </summary>
- public int TicketLimit { get; private set; }
- /// <summary> 门票恢复时间(秒) </summary>
- public int RecoveryTime { get; private set; }
- void ISerializable.Deserialize(IReader reader)
- {
- Kind = reader.ReadInt();
- Name = reader.ReadString();
- Number = reader.ReadInt();
- Type = reader.ReadInt();
- Time = reader.ReadInt();
- Bonus = reader.ReadEnumerable<int[]>();
- Toll = reader.ReadInt();
- Ads = reader.ReadInt();
- TicketLimit = reader.ReadInt();
- RecoveryTime = reader.ReadInt();
- }
- void ISerializable.Serialize(IWriter writer)
- {
- writer.Write(Kind);
- writer.Write(Name);
- writer.Write(Number);
- writer.Write(Type);
- writer.Write(Time);
- writer.Write(Bonus);
- writer.Write(Toll);
- writer.Write(Ads);
- writer.Write(TicketLimit);
- writer.Write(RecoveryTime);
- }
- }
- }
|