mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-11 19:36:28 +00:00
Added layer properties and keyframes to persistent storage
This commit is contained in:
1 parent
d1e0267709
commit
e8570a6dd9
5 files changed
+143
-63
No files matched your search
@@ -1,6 +1,5 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Drawing;
|
||||
using LiteDB;
|
||||
|
||||
namespace Artemis.Storage.Entities.Profile
|
||||
@@ -10,6 +9,7 @@ namespace Artemis.Storage.Entities.Profile
|
||||
public LayerEntity()
|
||||
{
|
||||
Leds = new List<LedEntity>();
|
||||
PropertyEntities = new List<PropertyEntity>();
|
||||
Condition = new List<ProfileConditionEntity>();
|
||||
}
|
||||
|
||||
@@ -20,6 +20,7 @@ namespace Artemis.Storage.Entities.Profile
|
||||
public string Name { get; set; }
|
||||
|
||||
public List<LedEntity> Leds { get; set; }
|
||||
public List<PropertyEntity> PropertyEntities { get; set; }
|
||||
public List<ProfileConditionEntity> Condition { get; set; }
|
||||
|
||||
public ShapeEntity ShapeEntity { get; set; }
|
||||
@@ -27,6 +28,7 @@ namespace Artemis.Storage.Entities.Profile
|
||||
|
||||
[BsonRef("ProfileEntity")]
|
||||
public ProfileEntity Profile { get; set; }
|
||||
|
||||
public Guid ProfileId { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Artemis.Storage.Entities.Profile
|
||||
{
|
||||
public class PropertyEntity
|
||||
{
|
||||
public PropertyEntity()
|
||||
{
|
||||
KeyframeEntities = new List<KeyframeEntity>();
|
||||
}
|
||||
|
||||
public string Id { get; set; }
|
||||
public string ValueType { get; set; }
|
||||
public string Value { get; set; }
|
||||
|
||||
public List<KeyframeEntity> KeyframeEntities { get; set; }
|
||||
}
|
||||
|
||||
public class KeyframeEntity
|
||||
{
|
||||
public TimeSpan Position { get; set; }
|
||||
public string Value { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user