CTT/Unity/Assets/Hotfix/Logic/Model/Game/Entity/User/Pet.cs

27 lines
811 B
C#
Raw Normal View History

2021-04-10 19:49:32 +08:00
using Cal;
using MongoDB.Bson.Serialization.Attributes;
using System;
using System.Collections.Generic;
namespace ET
{
[BsonIgnoreExtraElements]
public class Pet: Entity
{
public int petId;
public string name;
public int level;
public int exp;
/// <summary>
/// 亲密度
/// </summary>
public int intimacy;
public bool isShow;
[BsonRepresentation(MongoDB.Bson.BsonType.Double, AllowTruncation = true)]
[BsonDictionaryOptions(Representation = MongoDB.Bson.Serialization.Options.DictionaryRepresentation.ArrayOfArrays)]
public Dictionary<int, float> addToCharacter = new Dictionary<int, float>();
[BsonIgnore]
public Func<AttributeType, float> getAttributeFunc { get ; set; }
}
}