24 lines
1.0 KiB
C#
24 lines
1.0 KiB
C#
using System.Collections.Generic;
|
||
using NaughtyAttributes;
|
||
using SLSFramework.General;
|
||
using UnityEngine;
|
||
using UnityEngine.Serialization;
|
||
|
||
namespace Continentis.MainGame.Character
|
||
{
|
||
[CreateAssetMenu(menuName = "Continentis/MainGame/Character/AttributesDefaultCollection", fileName = "CharacterAttributesDefaultCollection")]
|
||
public class CharacterAttributesDefaultCollection : ScriptableObject
|
||
{
|
||
[Header("Attributes")]
|
||
[KeyWidth(0.75f)]
|
||
public SerializableDictionary<string, float> coreAttributes;
|
||
|
||
[KeyWidth(0.75f)]
|
||
public SerializableDictionary<string, float> generalAttributes;
|
||
|
||
[FormerlySerializedAs("endowingGeneralAttributes")]
|
||
[KeyWidth(0.5f)]
|
||
[Tooltip("初始化时赋予给CurrentGeneralAttributes的属性:第一栏是属性名,第二栏是初始化时使用对应名称的GeneralAttributes的数据(或一个常数),留空则默认为0")]
|
||
public SerializableDictionary<string, string> runtimeGeneralAttributes;
|
||
}
|
||
} |