mirror of
https://github.com/kwsch/NHSE.git
synced 2026-03-27 03:54:39 -05:00
Updates the Field Item Editor to render layers based on the entire map, and the per-patch positioning of each layer. Import/export will gracefully handle upgrade/downgrade, and viewport import/export will gracefully update tiles rather than a per-acre basis. Performance has also been slightly improved; no allocation is done anymore when updating the image.
14 lines
615 B
C#
14 lines
615 B
C#
namespace NHSE.Core;
|
|
|
|
/// <summary>
|
|
/// Basic logic implementation for interacting with the manipulatable map grid.
|
|
/// </summary>
|
|
public abstract record AcreSelectionGrid(TileGridViewport TileInfo)
|
|
{
|
|
/// <summary>
|
|
/// Checks if the specified relative x/y coordinates are within the bounds of this layer.
|
|
/// </summary>
|
|
/// <param name="relX">The requested tile's X-coordinate, relative to the layer origin.</param>
|
|
/// <param name="relY">The requested tile's Y-coordinate, relative to the layer origin.</param>
|
|
public bool Contains(int relX, int relY) => TileInfo.Contains(relX, relY);
|
|
} |