mirror of
http://47.107.252.169:3000/Roguelite-Game-Developing-Team/Gen_Hack-and-Slash-Roguelite.git
synced 2025-11-20 01:07:14 +08:00
(client) feat:添加属性相关定义
This commit is contained in:
committed by
TheRedApricot
parent
105f4bd964
commit
65ed09a6a7
37
Client/Assets/Scripts/Data/AttributesDefine.cs
Normal file
37
Client/Assets/Scripts/Data/AttributesDefine.cs
Normal file
@@ -0,0 +1,37 @@
|
||||
|
||||
|
||||
namespace Data
|
||||
{
|
||||
public class CharacterAttributesDef : Define
|
||||
{
|
||||
public int health = 10;
|
||||
public float moveSpeed = 1;
|
||||
}
|
||||
public class WeaponAttributesDef : Define
|
||||
{
|
||||
public float attack = 1;
|
||||
public float defense = 0;
|
||||
public float attackSpeed = 2;
|
||||
public float attackRange = 3;
|
||||
public int attackTargetCount = 1;
|
||||
}
|
||||
public class MonsterAttributesDef : Define
|
||||
{
|
||||
public int health = 10;
|
||||
public float moveSpeed = 1;
|
||||
public float attack = 1;
|
||||
public float defense = 0;
|
||||
public float attackSpeed = 2;
|
||||
public float attackRange = 3;
|
||||
public int attackTargetCount = 1;
|
||||
}
|
||||
public class BuildingAttributesDef : Define
|
||||
{
|
||||
public int health = 10;
|
||||
public float attack = 1;
|
||||
public float defense = 0;
|
||||
public float attackSpeed = 2;
|
||||
public float attackRange = 3;
|
||||
public int attackTargetCount = 1;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user