41 lines
1.3 KiB
C#
41 lines
1.3 KiB
C#
using UnityEngine;
|
|
|
|
namespace NightclubArcadia.Skills
|
|
{
|
|
[CreateAssetMenu(menuName = "Nightclub Arcadia/Skill Definition", fileName = "NewSkill")]
|
|
public sealed class SkillDefinition : ScriptableObject
|
|
{
|
|
[SerializeField] string id;
|
|
[SerializeField] string displayName;
|
|
[SerializeField] SkillDomain domain;
|
|
[TextArea] [SerializeField] string description;
|
|
[SerializeField] int startingRank;
|
|
[SerializeField] Color accentColor = Color.white;
|
|
|
|
public string Id => id;
|
|
public string DisplayName => displayName;
|
|
public SkillDomain Domain => domain;
|
|
public string Description => description;
|
|
public int StartingRank => startingRank;
|
|
public Color AccentColor => accentColor;
|
|
|
|
#if UNITY_EDITOR
|
|
public void EditorSet(
|
|
string newId,
|
|
string newDisplayName,
|
|
SkillDomain newDomain,
|
|
string newDescription,
|
|
int newStartingRank,
|
|
Color newAccentColor)
|
|
{
|
|
id = newId;
|
|
displayName = newDisplayName;
|
|
domain = newDomain;
|
|
description = newDescription;
|
|
startingRank = newStartingRank;
|
|
accentColor = newAccentColor;
|
|
}
|
|
#endif
|
|
}
|
|
}
|