提交GAS 打算做一个帧同步的GAS

This commit is contained in:
DESKTOP-5RP3AKU\Jisol
2024-10-18 03:16:09 +08:00
parent b0a2e4a900
commit d9b0c78827
726 changed files with 76601 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
using System;
namespace GAS.Runtime
{
public class AttributeChangedEventArgs : EventArgs
{
public AttributeChangedEventArgs(AbilitySystemComponent owner, AttributeBase attribute, float oldValue,
float newValue)
{
Owner = owner;
Attribute = attribute;
OldValue = oldValue;
NewValue = newValue;
}
public AbilitySystemComponent Owner { get; }
public AttributeBase Attribute { get; }
public float OldValue { get; }
public float NewValue { get; }
}
public class AttributeChangedEvent:EventBase<AttributeChangedEventArgs>
{
public void Publish(AbilitySystemComponent owner, AttributeBase attribute, float oldValue, float newValue)
{
Publish(new AttributeChangedEventArgs(owner, attribute, oldValue, newValue));
}
}
}

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 79c1fb618c4d44279376853983ff9f8f
timeCreated: 1712759099