12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- // Generate By EToy
- // Don't Edit It!!
- using XGame.Framework.Database;
- using XGame.Framework.Serialization;
- namespace XGame.Database
- {
- /// <summary> artifactBase </summary>
- public sealed class artifactBaseTable : ITable
- {
- long ITable.Key => Id;
- /// <summary> 秘宝ID </summary>
- public int Id { get; private set; }
- /// <summary> 秘宝名称 </summary>
- public string Name { get; private set; }
- /// <summary> 1=普通2=高级 </summary>
- public int Type { get; private set; }
- /// <summary> 秘宝立绘 </summary>
- public string Picture { get; private set; } // c
- /// <summary> 拥有秘宝属性属性id+属性数值 </summary>
- public int[] StarOwnAttr { get; private set; }
- /// <summary> 秘宝头像 </summary>
- public string Icon { get; private set; } // c
- /// <summary> 秘宝待机 </summary>
- public string Spine { get; private set; } // c
- /// <summary> 神器解锁道具id+道具数量 </summary>
- public int[] Unlock { get; private set; }
- /// <summary> 品质 </summary>
- public int Quality { get; private set; } // c
- void ISerializable.Deserialize(IReader reader)
- {
- Id = reader.ReadInt();
- Name = reader.ReadString();
- Type = reader.ReadInt();
- Picture = reader.ReadString();
- StarOwnAttr = reader.ReadEnumerable<int[]>();
- Icon = reader.ReadString();
- Spine = reader.ReadString();
- Unlock = reader.ReadEnumerable<int[]>();
- Quality = reader.ReadInt();
- }
- void ISerializable.Serialize(IWriter writer)
- {
- writer.Write(Id);
- writer.Write(Name);
- writer.Write(Type);
- writer.Write(Picture);
- writer.Write(StarOwnAttr);
- writer.Write(Icon);
- writer.Write(Spine);
- writer.Write(Unlock);
- writer.Write(Quality);
- }
- }
- }
|