2025-07-14 15:00:56 +08:00
|
|
|
|
|
|
|
|
|
|
|
namespace Data
|
|
|
|
{
|
2025-07-19 19:03:53 +08:00
|
|
|
public class AttributesDef : Define
|
2025-07-14 15:00:56 +08:00
|
|
|
{
|
|
|
|
public int health = 10;
|
2025-07-21 13:58:58 +08:00
|
|
|
public float moveSpeed = 1;
|
2025-07-14 15:05:29 +08:00
|
|
|
public int attack = 1;
|
|
|
|
public int defense = 0;
|
|
|
|
public int attackSpeed = 2;
|
|
|
|
public int attackRange = 3;
|
2025-07-14 15:00:56 +08:00
|
|
|
public int attackTargetCount = 1;
|
2025-07-21 13:58:58 +08:00
|
|
|
public AttributesDef Clone()
|
|
|
|
{
|
|
|
|
return new AttributesDef
|
|
|
|
{
|
|
|
|
health = this.health,
|
|
|
|
moveSpeed = this.moveSpeed,
|
|
|
|
attack = this.attack,
|
|
|
|
defense = this.defense,
|
|
|
|
attackSpeed = this.attackSpeed,
|
|
|
|
attackRange = this.attackRange,
|
|
|
|
attackTargetCount = this.attackTargetCount
|
|
|
|
};
|
|
|
|
}
|
2025-07-14 15:00:56 +08:00
|
|
|
}
|
|
|
|
}
|