| | |
| | | /// 可生效总波数,生命周期类型为n波内生效才有作用,否则没有意义 |
| | | /// </summary> |
| | | public int TotalEffectWaves; |
| | | |
| | | /// <summary> |
| | | /// 记录玩家选择该buff的次数 |
| | | /// </summary> |
| | | public int SelectCount; |
| | | } |
| | | |
| | | public class EndlessBuffData |
| | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 从buff池中删除以后都不会再出现的buff |
| | | /// </summary> |
| | | /// <param name="id"></param> |
| | | public static void RemoveFromBuffPool(int id) |
| | | { |
| | | for (int i = 0; i < endlessBuffPool.Count; ++i) |
| | | { |
| | | if (endlessBuffPool[i].Config.id == id) |
| | | { |
| | | endlessBuffPool.Remove(endlessBuffPool[i]); |
| | | break; |
| | | } |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 获取随机数量的buff列表 |
| | | /// </summary> |
| | | /// <param name="num"></param> |