24 lines
719 B
C#
24 lines
719 B
C#
|
using Cal;
|
|||
|
using MongoDB.Bson.Serialization.Attributes;
|
|||
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
|
|||
|
namespace ET
|
|||
|
{
|
|||
|
public class Pet: Entity, ICombatBounds
|
|||
|
{
|
|||
|
public string name;
|
|||
|
public int level;
|
|||
|
public int exp;
|
|||
|
/// <summary>
|
|||
|
/// 亲密度
|
|||
|
/// </summary>
|
|||
|
public int intimacy;
|
|||
|
[BsonRepresentation(MongoDB.Bson.BsonType.Double, AllowTruncation = true)]
|
|||
|
[BsonDictionaryOptions(Representation = MongoDB.Bson.Serialization.Options.DictionaryRepresentation.ArrayOfArrays)]
|
|||
|
public Dictionary<int, float> addToCharacter = new();
|
|||
|
[BsonIgnore]
|
|||
|
public Func<AttributeType, float> getAttributeFunc { get ; set; }
|
|||
|
}
|
|||
|
}
|