Core - Renamed LayerService to RenderElementService

Display conditions - Implemented persistent storage
This commit is contained in:
SpoinkyNL committed 2020-07-10 23:00:35 +02:00
1 parent 0dc77c0b6e
commit f7453331bf
32 files changed
+209 -111

No files matched your search

@@ -144,7 +144,7 @@ namespace Artemis.Core.Plugins.LayerEffect.Abstract
// Not only is this needed to initialize properties on the layer effects, it also prevents implementing anything
// but LayerEffect<T> outside the core
internal abstract void Initialize(ILayerService layerService);
internal abstract void Initialize(IRenderElementService renderElementService);
/// <summary>
@@ -36,19 +36,19 @@ namespace Artemis.Core.Plugins.LayerEffect.Abstract
internal set => _properties = value;
}
internal void InitializeProperties(ILayerService layerService)
internal void InitializeProperties(IRenderElementService renderElementService)
{
Properties = Activator.CreateInstance<T>();
Properties.LayerEffect = this;
Properties.InitializeProperties(layerService, ProfileElement, PropertyRootPath);
Properties.InitializeProperties(renderElementService, ProfileElement, PropertyRootPath);
PropertiesInitialized = true;
EnableLayerEffect();
}
internal override void Initialize(ILayerService layerService)
internal override void Initialize(IRenderElementService renderElementService)
{
InitializeProperties(layerService);
InitializeProperties(renderElementService);
}
}
}