mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 11:56:30 +00:00
Added layer shapes, editor is still WIP
This commit is contained in:
1 parent
70bf0e1c43
commit
ddce69e8f0
115 files changed
+1949
-1189
No files matched your search
@@ -0,0 +1,11 @@
|
||||
using System;
|
||||
|
||||
namespace Artemis.Storage.Entities.Profile
|
||||
{
|
||||
public class BrushEntity
|
||||
{
|
||||
public Guid BrushPluginGuid { get; set; }
|
||||
public string BrushType { get; set; }
|
||||
public string Configuration { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
using System;
|
||||
|
||||
namespace Artemis.Storage.Entities.Profile
|
||||
{
|
||||
public class LayerElementEntity
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
|
||||
public Guid PluginGuid { get; set; }
|
||||
public string LayerElementType { get; set; }
|
||||
public string Configuration { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,6 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Drawing;
|
||||
using LiteDB;
|
||||
|
||||
namespace Artemis.Storage.Entities.Profile
|
||||
@@ -10,7 +11,6 @@ namespace Artemis.Storage.Entities.Profile
|
||||
{
|
||||
Leds = new List<LedEntity>();
|
||||
Condition = new List<ProfileConditionEntity>();
|
||||
Elements = new List<LayerElementEntity>();
|
||||
}
|
||||
|
||||
public Guid Id { get; set; }
|
||||
@@ -21,11 +21,12 @@ namespace Artemis.Storage.Entities.Profile
|
||||
|
||||
public List<LedEntity> Leds { get; set; }
|
||||
public List<ProfileConditionEntity> Condition { get; set; }
|
||||
public List<LayerElementEntity> Elements { get; set; }
|
||||
|
||||
public ShapeEntity ShapeEntity { get; set; }
|
||||
public BrushEntity BrushEntity { get; set; }
|
||||
|
||||
[BsonRef("ProfileEntity")]
|
||||
public ProfileEntity Profile { get; set; }
|
||||
|
||||
public Guid ProfileId { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Artemis.Storage.Entities.Profile
|
||||
{
|
||||
public class ShapeEntity
|
||||
{
|
||||
public ShapeEntityType Type { get; set; }
|
||||
public ShapePointEntity Anchor { get; set; }
|
||||
public float Width { get; set; }
|
||||
public float Height { get; set; }
|
||||
public ShapePointEntity Position { get; set; }
|
||||
|
||||
public List<ShapePointEntity> Points { get; set; }
|
||||
}
|
||||
|
||||
public class ShapePointEntity
|
||||
{
|
||||
public float X { get; set; }
|
||||
public float Y { get; set; }
|
||||
}
|
||||
|
||||
public enum ShapeEntityType
|
||||
{
|
||||
Ellipse,
|
||||
Fill,
|
||||
Polygon,
|
||||
Rectangle
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user