36 lines
672 B
C#
36 lines
672 B
C#
|
using ET;
|
||
|
using MongoDB.Bson.Serialization.Attributes;
|
||
|
|
||
|
namespace Cal.DataTable
|
||
|
{
|
||
|
[Config]
|
||
|
public partial class SuitConfigCategory : ACategory<SuitConfig>
|
||
|
{
|
||
|
public static SuitConfigCategory Instance;
|
||
|
public SuitConfigCategory()
|
||
|
{
|
||
|
Instance = this;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public partial class SuitConfig:IConfig
|
||
|
{
|
||
|
public partial class Suit
|
||
|
{
|
||
|
public int Key;
|
||
|
[BsonRepresentation(MongoDB.Bson.BsonType.Double, AllowTruncation = true)]
|
||
|
public float Value;
|
||
|
}
|
||
|
public partial class Equip
|
||
|
{
|
||
|
public int Job;
|
||
|
public int[] EquipIdArr;
|
||
|
}
|
||
|
[BsonId]
|
||
|
public long Id { get; set; }
|
||
|
public string Name;
|
||
|
public Suit[] SuitArr;
|
||
|
public Equip[] EquipArr;
|
||
|
}
|
||
|
}
|