From 65ed09a6a7feff61767f62b76aa8025f7b76ba20 Mon Sep 17 00:00:00 2001 From: m0_75251201 Date: Mon, 14 Jul 2025 15:00:56 +0800 Subject: [PATCH] =?UTF-8?q?(client)=20feat:=E6=B7=BB=E5=8A=A0=E5=B1=9E?= =?UTF-8?q?=E6=80=A7=E7=9B=B8=E5=85=B3=E5=AE=9A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Assets/Scripts/Data/AttributesDefine.cs | 37 +++++++++++++++++++ Client/Assets/Scripts/Data/CharacterDefine.cs | 3 ++ 2 files changed, 40 insertions(+) create mode 100644 Client/Assets/Scripts/Data/AttributesDefine.cs diff --git a/Client/Assets/Scripts/Data/AttributesDefine.cs b/Client/Assets/Scripts/Data/AttributesDefine.cs new file mode 100644 index 0000000..0a678b2 --- /dev/null +++ b/Client/Assets/Scripts/Data/AttributesDefine.cs @@ -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; + } +} \ No newline at end of file diff --git a/Client/Assets/Scripts/Data/CharacterDefine.cs b/Client/Assets/Scripts/Data/CharacterDefine.cs index 82ecd12..167902b 100644 --- a/Client/Assets/Scripts/Data/CharacterDefine.cs +++ b/Client/Assets/Scripts/Data/CharacterDefine.cs @@ -2,6 +2,7 @@ using System; using System.Collections.Generic; using System.Text.RegularExpressions; using System.Xml.Linq; +using UnityEditor.ShaderGraph.Internal; using UnityEngine; namespace Data @@ -131,4 +132,6 @@ namespace Data } } } + + } \ No newline at end of file