34 lines
708 B
C#
34 lines
708 B
C#
|
using ET;
|
||
|
using MongoDB.Bson.Serialization.Attributes;
|
||
|
|
||
|
namespace Cal.DataTable
|
||
|
{
|
||
|
[Config]
|
||
|
public partial class MaterialBaseCategory : ACategory<MaterialBase>
|
||
|
{
|
||
|
public static MaterialBaseCategory Instance;
|
||
|
public MaterialBaseCategory()
|
||
|
{
|
||
|
Instance = this;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public partial class MaterialBase:IConfig
|
||
|
{
|
||
|
[BsonId]
|
||
|
public long Id { get; set; }
|
||
|
public string Name;
|
||
|
public string IconName;
|
||
|
public int MaterialType;
|
||
|
public int GemType;
|
||
|
public int GemKey;
|
||
|
[BsonRepresentation(MongoDB.Bson.BsonType.Double, AllowTruncation = true)]
|
||
|
public float GemValue;
|
||
|
public int Price;
|
||
|
public int Quality;
|
||
|
public bool IsLock;
|
||
|
public ushort MaxAmount;
|
||
|
public string Description;
|
||
|
}
|
||
|
}
|