zxl
/
CTT
forked from Cal/CTT
1
0
Fork 0
CTT/Server/Hotfix/Module/Numeric/NumericWatcher_Honor.cs

15 lines
425 B
C#
Executable File

namespace ET
{
[NumericWatcher(NumericType.Honor)]
public class NumericWatcher_Honor : INumericWatcher
{
public async ETTask Run(Entity entity, float old, float value)
{
if (!entity) return;
Unit unit = entity.As<Unit>();
DelaySendSyncAttributeComponent.instance.Add(unit, NumericType.Honor, value);
await ETTask.CompletedTask;
}
}
}