23 lines
765 B
C#
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; }
|
|
|
|
}
|
|
}
|