mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-11 19:36:28 +00:00
Added active surface-config management code
Added surface-config creation
This commit is contained in:
1 parent
1ae103accc
commit
10bc3f84dd
15 files changed
+268
-140
No files matched your search
@@ -1,14 +1,14 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Artemis.Storage.Entities;
|
||||
using RGB.NET.Core;
|
||||
|
||||
namespace Artemis.Core.Models.Surface
|
||||
{
|
||||
public class SurfaceConfiguration
|
||||
{
|
||||
public SurfaceConfiguration(string name)
|
||||
internal SurfaceConfiguration()
|
||||
{
|
||||
Name = name;
|
||||
DeviceConfigurations = new List<SurfaceDeviceConfiguration>();
|
||||
}
|
||||
|
||||
internal SurfaceConfiguration(SurfaceEntity surfaceEntity)
|
||||
@@ -26,7 +26,7 @@ namespace Artemis.Core.Models.Surface
|
||||
|
||||
internal string Guid { get; set; }
|
||||
public string Name { get; set; }
|
||||
public bool IsActive { get; set; }
|
||||
public List<SurfaceDeviceConfiguration> DeviceConfigurations { get; set; }
|
||||
public bool IsActive { get; internal set; }
|
||||
public List<SurfaceDeviceConfiguration> DeviceConfigurations { get; internal set; }
|
||||
}
|
||||
}
|
||||
@@ -27,10 +27,11 @@ namespace Artemis.Core.Models.Surface
|
||||
X = position.X;
|
||||
Y = position.Y;
|
||||
Rotation = position.Rotation;
|
||||
ZIndex = position.ZIndex;
|
||||
|
||||
Surface = surfaceConfiguration;
|
||||
}
|
||||
|
||||
|
||||
internal string Guid { get; set; }
|
||||
|
||||
public int DeviceId { get; set; }
|
||||
@@ -41,6 +42,7 @@ namespace Artemis.Core.Models.Surface
|
||||
public double X { get; set; }
|
||||
public double Y { get; set; }
|
||||
public double Rotation { get; set; }
|
||||
public int ZIndex { get; set; }
|
||||
|
||||
public SurfaceConfiguration Surface { get; internal set; }
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user