You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.2 KiB
47 lines
1.2 KiB
using System; |
|
using System.Collections.Generic; |
|
using System.Linq; |
|
using System.Text; |
|
using System.Threading.Tasks; |
|
using MongoDB.Bson.Serialization.Attributes; |
|
using MongoDB.Bson.Serialization.Options; |
|
|
|
namespace ET |
|
{ |
|
public class People: Entity, IAwake<int>, ISerializeToEntity |
|
{ |
|
public string Name; |
|
public int ConfigId; |
|
public int LaborLevel; |
|
public int LaborExp; |
|
public int Exp; |
|
public int Level; |
|
public int Age; |
|
public int BehaveType; |
|
public long TargetId; |
|
public int CurrSkillId; |
|
public float PosX; |
|
public float PosY; |
|
|
|
[BsonIgnore] |
|
public RoleConfig Config => RoleConfigCategory.Instance.Get(this.ConfigId); |
|
|
|
[BsonIgnore] |
|
public AttributesGroupConfig AttriConfig |
|
{ |
|
get |
|
{ |
|
if (this.Config.AttributesGroup > 0) |
|
{ |
|
return AttributesGroupConfigCategory.Instance.Get(this.Config.AttributesGroup); |
|
} |
|
|
|
return null; |
|
} |
|
set |
|
{ |
|
this.AttriConfig = value; |
|
} |
|
} |
|
} |
|
} |