public CellChangedEventArgs(CellMetrics metrics, int cell, T oldValue, T value) { Cell = cell; metrics.GetLocation(cell, out Location); OldValue = oldValue; Value = value; }
public T this[int cell] => metrics.GetLocation(cell, out Point location) ? this[location] : null;
public OccupierRemovedEventArgs(CellMetrics metrics, int cell, T occupier) { Cell = cell; metrics.GetLocation(cell, out Location); Occupier = occupier; }
public bool Add(int cell, T overlapper) => metrics.GetLocation(cell, out Point location) ? Add(location, overlapper) : false;