mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-11 19:36:28 +00:00
Core - Renamed LayerService to RenderElementService
Display conditions - Implemented persistent storage
This commit is contained in:
1 parent
16c2b7f7fd
commit
0e873a48cf
32 files changed
+209
-111
No files matched your search
@@ -1,13 +1,9 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Artemis.Storage.Entities.Profile.Abstract
|
||||
{
|
||||
public abstract class DisplayConditionPartEntity
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
public Guid ParentId { get; set; }
|
||||
|
||||
public List<DisplayConditionPartEntity> Children { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Artemis.Storage.Entities.Profile.Abstract
|
||||
{
|
||||
public abstract class EffectsEntity : PropertiesEntity
|
||||
{
|
||||
public List<LayerEffectEntity> LayerEffects { get; set; }
|
||||
}
|
||||
}
|
||||
+4
-1
@@ -2,9 +2,12 @@
|
||||
|
||||
namespace Artemis.Storage.Entities.Profile.Abstract
|
||||
{
|
||||
public abstract class PropertiesEntity
|
||||
public abstract class RenderElementEntity
|
||||
{
|
||||
public List<LayerEffectEntity> LayerEffects { get; set; }
|
||||
public List<PropertyEntity> PropertyEntities { get; set; }
|
||||
public List<string> ExpandedPropertyGroups { get; set; }
|
||||
|
||||
public DisplayConditionGroupEntity RootDisplayCondition { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -5,12 +5,15 @@ namespace Artemis.Storage.Entities.Profile
|
||||
{
|
||||
public class DisplayConditionPredicateEntity : DisplayConditionPartEntity
|
||||
{
|
||||
public Guid LeftDataModelGuid { get; set; }
|
||||
public Guid? LeftDataModelGuid { get; set; }
|
||||
public string LeftPropertyPath { get; set; }
|
||||
|
||||
public Guid RightDataModelGuid { get; set; }
|
||||
public Guid? RightDataModelGuid { get; set; }
|
||||
public string RightPropertyPath { get; set; }
|
||||
|
||||
public string OperatorType { get; set; }
|
||||
public Guid? OperatorPluginGuid { get; set; }
|
||||
|
||||
// Stored as a string to be able to control serialization and deserialization ourselves
|
||||
public string RightStaticValue { get; set; }
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@ using LiteDB;
|
||||
|
||||
namespace Artemis.Storage.Entities.Profile
|
||||
{
|
||||
public class FolderEntity : EffectsEntity
|
||||
public class FolderEntity : RenderElementEntity
|
||||
{
|
||||
public FolderEntity()
|
||||
{
|
||||
|
||||
@@ -5,7 +5,7 @@ using LiteDB;
|
||||
|
||||
namespace Artemis.Storage.Entities.Profile
|
||||
{
|
||||
public class LayerEntity : EffectsEntity
|
||||
public class LayerEntity : RenderElementEntity
|
||||
{
|
||||
public LayerEntity()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user