41 lines
1.0 KiB
C#
41 lines
1.0 KiB
C#
|
|
|||
|
using Sirenix.OdinInspector;
|
|||
|
using System.Collections;
|
|||
|
using System.Collections.Generic;
|
|||
|
using TableConfig;
|
|||
|
using UnityEngine;
|
|||
|
|
|||
|
namespace Ether
|
|||
|
{
|
|||
|
public class PropertyData : MonoBehaviour
|
|||
|
{
|
|||
|
[LabelText("名称")]
|
|||
|
public string Name;
|
|||
|
|
|||
|
[LabelText("等级")]
|
|||
|
public int Level;
|
|||
|
|
|||
|
[LabelText("职业")]
|
|||
|
public List<string> JobList;
|
|||
|
|
|||
|
[ShowInInspector]
|
|||
|
[LabelText("属性")]
|
|||
|
[DictionaryDrawerSettings(KeyLabel = "属性名", ValueLabel = "属性值")]
|
|||
|
public Dictionary<Property, float> Propertys = new Dictionary<Property, float>()
|
|||
|
{
|
|||
|
{ Property.Constitution, 10 },
|
|||
|
{ Property.Agility, 10 },
|
|||
|
{ Property.Strength, 10 },
|
|||
|
{ Property.Ranged, 10 },
|
|||
|
{ Property.Focus, 10 },
|
|||
|
{ Property.Intelligence, 10 },
|
|||
|
{ Property.Luck, 0 },
|
|||
|
{ Property.Stamina, 100 },
|
|||
|
{ Property.Hunger, 0 },
|
|||
|
{ Property.Thirst, 0 },
|
|||
|
};
|
|||
|
|
|||
|
}
|
|||
|
|
|||
|
}
|