AI: Add .NET MAUI star map position editor
This commit is contained in:
@@ -0,0 +1,30 @@
|
|||||||
|
using ZeroSpace.MapEditor.Services;
|
||||||
|
|
||||||
|
namespace ZeroSpace.MapEditor.Models;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// A star system node on the map canvas: the document plus selection state.
|
||||||
|
/// </summary>
|
||||||
|
public sealed class MapNode
|
||||||
|
{
|
||||||
|
public MapNode(StarSystemDoc doc)
|
||||||
|
{
|
||||||
|
Doc = doc;
|
||||||
|
}
|
||||||
|
|
||||||
|
public StarSystemDoc Doc { get; }
|
||||||
|
|
||||||
|
public double X
|
||||||
|
{
|
||||||
|
get => Doc.X;
|
||||||
|
set => Doc.X = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public double Y
|
||||||
|
{
|
||||||
|
get => Doc.Y;
|
||||||
|
set => Doc.Y = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public bool IsSelected { get; set; }
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user