2021-04-08 20:09:59 +08:00
|
|
|
|
using Cal;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
|
|
namespace ET
|
|
|
|
|
{
|
|
|
|
|
public interface ISkillSender
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
Unit caster { get; set; }
|
|
|
|
|
|
|
|
|
|
SkillLogic skillLogic { get; set; }
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
public struct SkillSender : ISkillSender
|
|
|
|
|
{
|
|
|
|
|
public Unit caster { get; set; }
|
|
|
|
|
public SkillLogic skillLogic { get; set; }
|
|
|
|
|
|
|
|
|
|
public override string ToString()
|
|
|
|
|
{
|
|
|
|
|
return $"{caster?.Id} 技能逻辑为{skillLogic?.skillId}";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
public struct ModifierSkillSender : ISkillSender
|
|
|
|
|
{
|
2022-07-26 00:51:17 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// 附着者
|
|
|
|
|
/// </summary>
|
2021-04-08 20:09:59 +08:00
|
|
|
|
public Unit target { get; set; }
|
|
|
|
|
public Unit caster { get; set; }
|
|
|
|
|
public SkillLogic skillLogic { get; set; }
|
|
|
|
|
public ModifierLogic modifierLogic { get; set; }
|
2022-07-26 00:51:17 +08:00
|
|
|
|
|
2021-04-08 20:09:59 +08:00
|
|
|
|
public override string ToString()
|
|
|
|
|
{
|
|
|
|
|
return $"{caster?.Id} 对 {target?.Id} 技能逻辑为{skillLogic?.skillId} modifierId = {(modifierLogic.IsDisposed ? default : modifierLogic?.modifierId)}";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|