mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-06-26 11:24:46 +00:00
18 lines
567 B
C#
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);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|