Datamodel - WIP stuff, need this on a diff. PC

This commit is contained in:
SpoinkyNL committed 2020-06-23 22:49:27 +02:00
1 parent 920aea6695
commit 2b7a507725
23 files changed
+392 -161

No files matched your search

@@ -1,16 +1,10 @@
using Artemis.Core.Plugins.Abstract;
using Artemis.Core.Plugins.Abstract.DataModels;
using Artemis.Core.Plugins.Abstract.DataModels;
using Artemis.Core.Plugins.Abstract.DataModels.Attributes;
namespace Artemis.Plugins.Modules.General
{
public class GeneralDataModel : DataModel
{
public GeneralDataModel(Module module) : base(module)
{
PlayerInfo = new PlayerInfo(module);
}
[DataModelProperty(Name = "A test string", Description = "This is a test string that's not of any use outside testing!")]
public string TestString { get; set; }
@@ -23,10 +17,6 @@ namespace Artemis.Plugins.Modules.General
public class PlayerInfo : DataModel
{
public PlayerInfo(Module module) : base(module)
{
}
[DataModelProperty(Name = "A test string", Description = "This is a test string that's not of any use outside testing!")]
public string TestString { get; set; }
@@ -1,13 +1,14 @@
using System;
using System.Collections.Generic;
using Artemis.Core.Plugins.Abstract;
using Artemis.Core.Plugins.Abstract.DataModels;
using Artemis.Core.Plugins.Abstract.ViewModels;
using Artemis.Core.Plugins.Models;
using Artemis.Plugins.Modules.General.ViewModels;
namespace Artemis.Plugins.Modules.General
{
public class GeneralModule : ProfileModule
public class GeneralModule : ProfileModule<GeneralDataModel>
{
private readonly PluginSettings _settings;
@@ -25,8 +26,8 @@ namespace Artemis.Plugins.Modules.General
{
DisplayName = "General";
DisplayIcon = "AllInclusive";
ExpandsMainDataModel = true;
DataModel = new GeneralDataModel(this);
ExpandsDataModel = true;
var testSetting = _settings.GetSetting("TestSetting", DateTime.Now);
}