29 lines
848 B
C#

using System.Collections.Generic;
using MongoDB.Bson.Serialization.Attributes;
namespace ET.Server
{
[ChildOf(typeof(HeroComponent))]
public class Hero : Entity, IAwake<int>
{
[BsonElement]
public int ConfigId { get; set; }
[BsonElement]
public int Level { get; set; } = 1;
[BsonElement]
public long Exp { get; set; }
[BsonElement]
public int Star { get; set; } = 1;
[BsonElement]
public long StarExp { get; set; }
[BsonElement]
public List<int> Skills { get; set; } = new() { 1, 1, 1, 1, 0 };
[BsonElement]
public Dictionary<int, long> EquipSlots { get; set; } = new();
[BsonElement]
public bool MaxLevelAudited { get; set; }
[BsonElement]
public bool MaxSkillAudited { get; set; }
}
}