zxl
/
CTT
forked from Cal/CTT
1
0
Fork 0
CTT/Server/Model/Game/Entity/User/Character.cs

23 lines
765 B
C#

using Cal;
using MongoDB.Bson.Serialization.Attributes;
using System;
using System.Collections.Generic;
namespace ET
{
public sealed partial class Character : Entity, ICombatBounds,ISerializeToEntity
{
[BsonRepresentation(MongoDB.Bson.BsonType.Double, AllowTruncation = true)]
[BsonDictionaryOptions(Representation = MongoDB.Bson.Serialization.Options.DictionaryRepresentation.ArrayOfArrays)]
public Dictionary<int, float> attribute = new();
[BsonDictionaryOptions(Representation = MongoDB.Bson.Serialization.Options.DictionaryRepresentation.ArrayOfArrays)]
public Dictionary<int, int> pointRecord = new();
[BsonIgnore]
public Func<AttributeType, float> getAttributeFunc { get; set; }
}
}