mirror of
http://47.107.252.169:3000/Roguelite-Game-Developing-Team/Gen_Hack-and-Slash-Roguelite.git
synced 2025-11-20 02:37:12 +08:00
Co-authored-by: zzdxxz <2079238449@qq.com> Co-committed-by: zzdxxz <2079238449@qq.com>
27 lines
703 B
C#
27 lines
703 B
C#
using Data;
|
|
|
|
namespace Entity
|
|
{
|
|
public class Attributes
|
|
{
|
|
public int health = 10;
|
|
public float moveSpeed = 1;
|
|
public int attack = 1;
|
|
public int defense = 0;
|
|
public int attackSpeed = 2;
|
|
public int attackRange = 3;
|
|
public int attackTargetCount = 1;
|
|
public Attributes(AttributesDef def)
|
|
{
|
|
health = def.health;
|
|
moveSpeed = def.moveSpeed;
|
|
attack = def.attack;
|
|
defense = def.defense;
|
|
attackSpeed = def.attackSpeed;
|
|
attackRange = def.attackRange;
|
|
attackTargetCount = def.attackTargetCount;
|
|
}
|
|
public Attributes()
|
|
{}
|
|
}
|
|
} |