2024-10-18 03:16:09 +08:00

18 lines
567 B
C#

namespace GAS.Runtime
{
public abstract class AttributeSet
{
protected AbilitySystemComponent _owner;
public abstract AttributeBase this[string key] { get; }
public abstract string[] AttributeNames { get; }
public abstract void SetOwner(AbilitySystemComponent owner);
public void ChangeAttributeBase(string attributeShortName, float value)
{
if (this[attributeShortName] != null)
{
this[attributeShortName].SetBaseValue(value);
}
}
}
}