(client) feat:添加属性相关定义
This commit is contained in:
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;
|
||||||
|
}
|
||||||
|
}
|
@ -2,6 +2,7 @@ using System;
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Text.RegularExpressions;
|
using System.Text.RegularExpressions;
|
||||||
using System.Xml.Linq;
|
using System.Xml.Linq;
|
||||||
|
using UnityEditor.ShaderGraph.Internal;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
namespace Data
|
namespace Data
|
||||||
@ -131,4 +132,6 @@ namespace Data
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
Reference in New Issue
Block a user