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.
 
 
 
 
 
 

70 lines
1.8 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 Labor; //劳力值,受年龄段限制
public int LaborExp; //劳力经验
public int Physique; //体质
public int PhysiqueExp; //体质经验
public int Exp;
public int Level;
public int Age;
public long TargetId;
public int CurrSkillId;
public float PosX;
public float PosY;
public int Disease; //疾病值
public int PeopleType; //主角,伙伴,村民
public int Gender; //性别
public int Life; //生命
public int Wisdom; //智慧
public int MoveSpeed; //移动速度
public int BehaveType
{
set
{
this.BehaveType = value;
#if !SERVER
Game.EventSystem.Publish(new EventType.BehaveTypeChanged() { People = this });
#endif
}
get
{
return this.BehaveType;
}
}
[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;
}
}
}
}