コード例 #1
0
 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)));
     }
 }
コード例 #2
0
ファイル: MotaEventArgs.cs プロジェクト: sleepandeat/Program
 /// <summary>
 /// 以作用目标位置创建魔塔事件参数实例
 /// </summary>
 /// <param name="desPosation">主作用目标位置</param>
 public MotaEventArgs(Posation desPosation, EffectType type = EffectType.Default)
 {
     this.DesPosation = desPosation;
     Method = type;
 }
コード例 #3
0
 /// <summary>
 /// 以作用目标位置创建魔塔事件参数实例
 /// </summary>
 /// <param name="desPosation">主作用目标位置</param>
 public MotaEventArgs(Posation desPosation, EffectType type = EffectType.Default)
 {
     this.DesPosation = desPosation;
     Method           = type;
 }