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