mirror of
https://github.com/kwsch/NHSE.git
synced 2026-04-25 07:37:02 -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.
22 lines
510 B
C#
22 lines
510 B
C#
namespace NHSE.Core;
|
|
|
|
/// <summary>
|
|
/// Flagging various issues when trying to place an item.
|
|
/// </summary>
|
|
public enum PlacedItemPermission : byte
|
|
{
|
|
/// <summary>
|
|
/// Item does not have any of its tiles overlapping with any other items.
|
|
/// </summary>
|
|
NoCollision = 0,
|
|
|
|
/// <summary>
|
|
/// Item tiles are overlapping with another item.
|
|
/// </summary>
|
|
Collision = 1,
|
|
|
|
/// <summary>
|
|
/// Item tiles would overflow out-of-bounds.
|
|
/// </summary>
|
|
OutOfBounds = 2,
|
|
} |