32 lines
682 B
C#
32 lines
682 B
C#
|
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;
|
||
|
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;
|
||
|
}
|
||
|
}
|