Rely on CS-Script includes for modules view model matching

This commit is contained in:
SpoinkyNL committed 2018-03-04 22:27:57 +01:00
1 parent 36b8ddc023
commit 2f72cdb1d9
21 files changed
+301 -81

No files matched your search

@@ -0,0 +1,12 @@
using System;
using Artemis.Core.Attributes;
using Artemis.Plugins.Interfaces;
namespace Artemis.Plugins.BuiltIn.Modules.General
{
public class GeneralDataModel : IModuleDataModel
{
[DataModelProperty(DisplayName = "Unique boolean")]
public bool PropertyUniqueToThisDm { get; set; }
}
}
@@ -1,34 +1,22 @@
using System.Diagnostics;
using Artemis.Core.Services.Interfaces;
using Artemis.Plugins.Interfaces;
//css_inc GeneralViewModel.cs;
//css_inc GeneralDataModel.cs;
using System;
using Artemis.Plugins.Abstract;
namespace Artemis.Plugins.BuiltIn.Modules.General
{
public class GeneralModule : IModule
public class GeneralModule : ProfileModule
{
private readonly ICoreService _coreService;
public GeneralModule(ICoreService coreService)
public override Type ViewModelType
{
_coreService = coreService;
Debugger.Break();
get { return typeof(GeneralViewModel); }
}
public void LoadPlugin()
{
}
public void UnloadPlugin()
{
}
public void Update(double deltaTime)
{
}
public void Render(double deltaTime)
// True since the main data model is all this module shows
public override bool ExpandsMainDataModel
{
get { return true; }
}
}
}
@@ -1,6 +1,5 @@
{
"Name": "Default",
"Version": "1.0.0",
"Main": "GeneralModule.cs",
"ViewModel": "GeneralViewModel.cs"
"Main": "GeneralModule.cs"
}