mirror of
https://github.com/kwsch/NHSE.git
synced 2026-04-18 14:37:25 -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.
13 lines
650 B
C#
13 lines
650 B
C#
namespace NHSE.Core;
|
|
|
|
/// <summary>
|
|
/// Represents a list of item data tiles to be injected to a Field Item Layer.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// Extension tiles underneath the actual item root are included; extension tiles to the right are not.
|
|
/// </remarks>
|
|
/// <param name="RelativeX">X Coordinate within the Field Item Layer</param>
|
|
/// <param name="RelativeY">Y Coordinate within the Field Item Layer</param>
|
|
/// <param name="Offset">Offset relative to the start of the Field Item Layer</param>
|
|
/// <param name="Data">Data for this column</param>
|
|
public sealed record FieldItemColumn(int RelativeX, int RelativeY, int Offset, byte[] Data); |