12345678910111213141516171819202122232425262728293031323334353637 |
- // Generate By EToy
- // Don't Edit It!!
- using XGame.Framework.Database;
- using XGame.Framework.Serialization;
- namespace XGame.Database
- {
- /// <summary> Drop </summary>
- public sealed class DropTable : ITable
- {
- long ITable.Key => Id;
- /// <summary> id </summary>
- public int Id { get; private set; }
- /// <summary> 类型1:根据组内的权重随机掉落1个 </summary>
- public int Type { get; private set; }
- /// <summary> 掉落数组[物品ID,数量,权重……] </summary>
- public int[] Group { get; private set; }
- void ISerializable.Deserialize(IReader reader)
- {
- Id = reader.ReadInt();
- Type = reader.ReadInt();
- Group = reader.ReadEnumerable<int[]>();
- }
- void ISerializable.Serialize(IWriter writer)
- {
- writer.Write(Id);
- writer.Write(Type);
- writer.Write(Group);
- }
- }
- }
|