Initial commit

This commit is contained in:
2026-07-13 09:25:40 +07:00
parent c08ff54676
commit bccfb156d7
1938 changed files with 641646 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
namespace RobotNet10.MapEditor.Shared.DTOs.Layout;
/// <summary>
/// Layout data transfer object
/// </summary>
public class LayoutDto
{
public Guid Id { get; set; }
public string LayoutId { get; set; } = string.Empty;
public string LayoutName { get; set; } = string.Empty;
public string? Description { get; set; }
public bool IsActive { get; set; }
public DateTime CreatedDate { get; set; }
public DateTime ModifiedDate { get; set; }
public string? CreatedBy { get; set; }
public string? ModifiedBy { get; set; }
/// <summary>
/// List of versions (optional, for detailed queries)
/// </summary>
public List<LayoutVersionDto>? Versions { get; set; }
}

View File

@@ -0,0 +1,20 @@
using RobotNet10.MapEditor.Shared.Models;
namespace RobotNet10.MapEditor.Shared.DTOs.Layout;
/// <summary>
/// Layout level data transfer object
/// </summary>
public class LayoutLevelDto
{
public Guid Id { get; set; }
public Guid VersionId { get; set; }
public string LayoutLevelId { get; set; } = string.Empty;
public int LevelOrder { get; set; }
/// <summary>
/// Editor settings including coordinate system
/// </summary>
public LayoutLevelEditorSettingsDto? EditorSettings { get; set; }
}

View File

@@ -0,0 +1,38 @@
namespace RobotNet10.MapEditor.Shared.DTOs.Layout;
/// <summary>
/// Layout level editor settings data transfer object
/// </summary>
public class LayoutLevelEditorSettingsDto
{
public Guid Id { get; set; }
public Guid LevelId { get; set; }
// Edge Settings
public double EdgeMinLengthCreate { get; set; }
public bool EdgeNameAutoGenerate { get; set; }
// Node Settings
public bool NodeNameAutoGenerate { get; set; }
public double NodeProximityRadius { get; set; }
// Coordinate System
public double OriginX { get; set; }
public double OriginY { get; set; }
public double Resolution { get; set; }
// Coordinate Bounds
public double? BoundsMinX { get; set; }
public double? BoundsMaxX { get; set; }
public double? BoundsMinY { get; set; }
public double? BoundsMaxY { get; set; }
// Background Image
public double? ImageWidth { get; set; }
public double? ImageHeight { get; set; }
// Metadata
public DateTime CreatedDate { get; set; }
public DateTime ModifiedDate { get; set; }
}

View File

@@ -0,0 +1,21 @@
namespace RobotNet10.MapEditor.Shared.DTOs.Layout;
/// <summary>
/// Layout version data transfer object
/// </summary>
public class LayoutVersionDto
{
public Guid Id { get; set; }
public Guid LayoutId { get; set; }
public string Version { get; set; } = string.Empty;
public string? LayoutDescription { get; set; }
public string? CreatedBy { get; set; }
public DateTime CreatedDate { get; set; }
public bool IsActive { get; set; }
/// <summary>
/// List of levels (optional, for detailed queries)
/// </summary>
public List<LayoutLevelDto>? Levels { get; set; }
}