123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- // Generate By EToy
- // Don't Edit It!!
- using XGame.Framework.Database;
- using XGame.Framework.Serialization;
- namespace XGame.Database
- {
- /// <summary> collect_reward </summary>
- public sealed class collect_rewardTable : ITable
- {
- long ITable.Key => Id;
- /// <summary> 功能ID100000+羁绊ID*1000+等级 </summary>
- public int Id { get; private set; }
- /// <summary> (关联collect表 ID) </summary>
- public int CollectId { get; private set; }
- /// <summary> 羁绊等级 </summary>
- public int Level { get; private set; }
- /// <summary> 羁绊解锁描述描述 </summary>
- public string Name { get; private set; }
- /// <summary> 羁绊奖励领取条件所有物品达到对应的星级(圣兵/铭文总星级) </summary>
- public int Unlock { get; private set; }
- /// <summary> 羁绊奖励(道具ID+数量) </summary>
- public int[] Reward { get; private set; }
- /// <summary> 属性加成(属性表ID,属性表ID) </summary>
- public int[] Attribute { get; private set; }
- void ISerializable.Deserialize(IReader reader)
- {
- Id = reader.ReadInt();
- CollectId = reader.ReadInt();
- Level = reader.ReadInt();
- Name = reader.ReadString();
- Unlock = reader.ReadInt();
- Reward = reader.ReadEnumerable<int[]>();
- Attribute = reader.ReadEnumerable<int[]>();
- }
- void ISerializable.Serialize(IWriter writer)
- {
- writer.Write(Id);
- writer.Write(CollectId);
- writer.Write(Level);
- writer.Write(Name);
- writer.Write(Unlock);
- writer.Write(Reward);
- writer.Write(Attribute);
- }
- }
- }
|