Example #1
0
 protected bool UnitApply(GenAction action, Point origin, int x, int y, params object[] args)
 {
     if (_outputData != null)
     {
         _outputData.Add(x - origin.X, y - origin.Y);
     }
     return(action.Apply(origin, x, y, args));
 }
Example #2
0
 protected bool UnitApply(Point origin, int x, int y, params object[] args)
 {
     if (OutputData != null)
     {
         OutputData.Add(x - origin.X, y - origin.Y);
     }
     if (NextAction != null)
     {
         return(NextAction.Apply(origin, x, y, args));
     }
     return(true);
 }