27 lines
591 B
C#
27 lines
591 B
C#
using ET;
|
|
using MongoDB.Bson.Serialization.Attributes;
|
|
|
|
namespace Cal.DataTable
|
|
{
|
|
[Config]
|
|
public partial class RolesPositionCategory : ACategory<RolesPosition>
|
|
{
|
|
public static RolesPositionCategory Instance;
|
|
public RolesPositionCategory()
|
|
{
|
|
Instance = this;
|
|
}
|
|
}
|
|
|
|
public partial class RolesPosition:IConfig
|
|
{
|
|
[BsonId]
|
|
public long Id { get; set; }
|
|
public string Desc;
|
|
[BsonRepresentation(MongoDB.Bson.BsonType.Double, AllowTruncation = true)]
|
|
public float Posx;
|
|
[BsonRepresentation(MongoDB.Bson.BsonType.Double, AllowTruncation = true)]
|
|
public float Posy;
|
|
}
|
|
}
|