mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 03:48:56 +00:00
Datamodel - Added basic infrastructure
This commit is contained in:
1 parent
9418a08b0c
commit
5192b9f0f0
23 files changed
+206
-43
No files matched your search
@@ -1,15 +1,35 @@
|
||||
using Artemis.Core.Attributes;
|
||||
using Artemis.Core.Plugins.Abstract;
|
||||
using Artemis.Core.Plugins.Abstract;
|
||||
using Artemis.Core.Plugins.Abstract.DataModels;
|
||||
using Artemis.Core.Plugins.Abstract.DataModels.Attributes;
|
||||
using SkiaSharp;
|
||||
|
||||
namespace Artemis.Plugins.Modules.General
|
||||
{
|
||||
public class GeneralDataModel : ModuleDataModel
|
||||
public class GeneralDataModel : DataModel
|
||||
{
|
||||
public GeneralDataModel(Module module) : base(module)
|
||||
{
|
||||
}
|
||||
|
||||
[DataModelProperty(DisplayName = "Unique boolean")]
|
||||
public bool PropertyUniqueToThisDm { get; set; }
|
||||
[DataModelProperty(Name = "A test string", Description = "This is a test string that's not of any use outside testing!")]
|
||||
public string TestString { get; set; }
|
||||
|
||||
[DataModelProperty(Name = "A test boolean", Description = "This is a test boolean that's not of any use outside testing!")]
|
||||
public bool TestBoolean { get; set; }
|
||||
|
||||
[DataModelProperty(Name = "Player info", Description = "[TEST] Contains information about the player")]
|
||||
public PlayerInfo PlayerInfo { get; set; }
|
||||
}
|
||||
|
||||
public class PlayerInfo
|
||||
{
|
||||
[DataModelProperty(Name = "A test string", Description = "This is a test string that's not of any use outside testing!")]
|
||||
public string TestString { get; set; }
|
||||
|
||||
[DataModelProperty(Name = "A test boolean", Description = "This is a test boolean that's not of any use outside testing!")]
|
||||
public bool TestBoolean { get; set; }
|
||||
|
||||
[DataModelProperty()]
|
||||
public SKRect SkRect { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user