zxl
/
CTT
forked from Cal/CTT
1
0
Fork 0
CTT/Server/Model/Game/Data/NPCBase.cs

33 lines
704 B
C#
Raw Normal View History

2021-04-08 20:09:59 +08:00
using ET;
using MongoDB.Bson.Serialization.Attributes;
namespace Cal.DataTable
{
[Config]
public partial class NPCBaseCategory : ACategory<NPCBase>
{
public static NPCBaseCategory Instance;
public NPCBaseCategory()
{
Instance = this;
}
}
public partial class NPCBase:IConfig
{
[BsonId]
public long Id { get; set; }
public string Name;
2021-04-09 00:48:56 +08:00
public string Desc;
2021-04-08 20:09:59 +08:00
public string DeawingName;
public int PrefabId;
public int SceneId;
public int MapLayer;
[BsonRepresentation(MongoDB.Bson.BsonType.Double, AllowTruncation = true)]
public float PosX;
[BsonRepresentation(MongoDB.Bson.BsonType.Double, AllowTruncation = true)]
public float PosY;
public string Dialog;
}
}