private void CloseEvent(XElement eventArgs) { foreach (var item in eventArgs.Elements("close")) { string posation = item.Value; User.AddEvent(EventLogic.CloseEvent, new MotaEventArgs(Posation.GetPosation(posation))); } }
/// <summary> /// 以作用目标位置创建魔塔事件参数实例 /// </summary> /// <param name="desPosation">主作用目标位置</param> public MotaEventArgs(Posation desPosation, EffectType type = EffectType.Default) { this.DesPosation = desPosation; Method = type; }