28 lines
663 B
C#
28 lines
663 B
C#
using System.Collections.Generic;
|
|
namespace Gameplay.Buff
|
|
{
|
|
public class BuffAddBuffOnFriendRetreat : BaseBuff
|
|
{
|
|
|
|
// 标记类buff, 由外部检索触发
|
|
|
|
public int checkRange;
|
|
public List<int> buffIds;
|
|
|
|
protected override void _OnInit()
|
|
{
|
|
base._OnInit();
|
|
|
|
buffIds = new List<int>();
|
|
checkRange = _TryGetIntParam(0);
|
|
var allParams = _TryGetFloatParams();
|
|
for (int i = 1; i < allParams.Length; i++)
|
|
{
|
|
var buffId = _TryGetIntParam(i);
|
|
buffIds.Add(buffId);
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|