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)); }
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); }