12345678910111213141516171819202122232425262728293031323334353637 |
- using CommonAI.data;
- using CommonAI.Zone.EventTrigger;
- using CommonAI.Zone.Instance;
- using CommonAI.Zone.ZoneEditor.EventTrigger;
- using CommonLang.Property;
- using XmdsCommonServer.Plugin.XmdsSkillTemplate.Skills;
- namespace XmdsCommonServer.Plugin.Editor
- {
- /// <summary>
- /// 触发特殊战斗事件
- /// </summary>
- [DescAttribute("Xmds扩展事件-触发特殊战斗事件", "Xmds扩展")]
- public class EventsBattleFunctionAction : AbstractAction
- {
- [DescAttribute("单位")]
- public UnitValue Unit = new UnitValue.Trigging();
- [DescAttribute("事件ID")]
- public int EventID;
- public override string ToString()
- {
- return string.Format("Xmds扩展事件-触发特殊战斗事件", Unit);
- }
- public override void DoAction(EventTriggerAdapter api, EventArguments args)
- {
- InstancePlayer unit = Unit.GetValue(api, args) as InstancePlayer;
- if (unit != null)
- {
- BattleFunction.GetInstance().TriggrBattleFunction(EventID, (unit.Virtual as XmdsVirtual), (unit.Virtual as XmdsVirtual));
- }
- }
- }
- }
|