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