34 lines
689 B
C#
34 lines
689 B
C#
using ET;
|
|
using MongoDB.Bson.Serialization.Attributes;
|
|
|
|
namespace Cal.DataTable
|
|
{
|
|
[Config]
|
|
public partial class PetConfigCategory : ACategory<PetConfig>
|
|
{
|
|
public static PetConfigCategory Instance;
|
|
public PetConfigCategory()
|
|
{
|
|
Instance = this;
|
|
}
|
|
}
|
|
|
|
public partial class PetConfig:IConfig
|
|
{
|
|
public partial class AddAttibuteMap
|
|
{
|
|
public int Key;
|
|
[BsonRepresentation(MongoDB.Bson.BsonType.Double, AllowTruncation = true)]
|
|
public float Value;
|
|
}
|
|
[BsonId]
|
|
public long Id { get; set; }
|
|
public string Name;
|
|
public int PrefabId;
|
|
public int[] UpgradeIdArr;
|
|
public int NeedLevel;
|
|
public int NeedIntimacy;
|
|
public AddAttibuteMap[] AddAttibuteMapArr;
|
|
}
|
|
}
|