33 lines
937 B
C#
33 lines
937 B
C#
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; }
|
|
|
|
#if !NOT_CLIENT
|
|
public long petUnitId;
|
|
public long timerId;
|
|
public ETCancellationToken token;
|
|
#endif
|
|
}
|
|
}
|