12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
-
- using XGame.Framework.Database;
- using XGame.Framework.Serialization;
- namespace XGame.Database
- {
-
- public sealed class mountLevelTable : ITable
- {
- long ITable.Key => Id;
-
- public int Id { get; private set; }
-
- public int Step { get; private set; }
-
- public int Level { get; private set; }
-
- public int[] Cost { get; private set; }
-
- public int[] LevelAttr { get; private set; }
-
- public int[] StepAttr { get; private set; }
-
- public string Picture { get; private set; }
-
- public string Icon { get; private set; }
-
- public string Spine { get; private set; }
- void ISerializable.Deserialize(IReader reader)
- {
- Id = reader.ReadInt();
- Step = reader.ReadInt();
- Level = reader.ReadInt();
- Cost = reader.ReadEnumerable<int[]>();
- LevelAttr = reader.ReadEnumerable<int[]>();
- StepAttr = reader.ReadEnumerable<int[]>();
- Picture = reader.ReadString();
- Icon = reader.ReadString();
- Spine = reader.ReadString();
- }
- void ISerializable.Serialize(IWriter writer)
- {
- writer.Write(Id);
- writer.Write(Step);
- writer.Write(Level);
- writer.Write(Cost);
- writer.Write(LevelAttr);
- writer.Write(StepAttr);
- writer.Write(Picture);
- writer.Write(Icon);
- writer.Write(Spine);
- }
- }
- }
|