Profile modules - Encapsulation fixes

Data bindings - Abstracted the data model selection
This commit is contained in:
SpoinkyNL committed 2020-09-04 20:24:34 +02:00
1 parent 76dcbaf6d7
commit d03ca9c84a
20 files changed
+502 -189

No files matched your search

+2 -2
View File
@@ -174,7 +174,7 @@ namespace Artemis.Core.Services
// Update all active modules
foreach (var module in modules)
module.Update(args.DeltaTime);
module.InternalUpdate(args.DeltaTime);
// If there is no ready bitmap brush, skip the frame
if (_rgbService.BitmapBrush == null)
@@ -192,7 +192,7 @@ namespace Artemis.Core.Services
{
// While non-activated modules may be updated above if they expand the main data model, they may never render
foreach (var module in modules.Where(m => m.IsActivated))
module.Render(args.DeltaTime, _surfaceService.ActiveSurface, canvas, _rgbService.BitmapBrush.Bitmap.Info);
module.InternalRender(args.DeltaTime, _surfaceService.ActiveSurface, canvas, _rgbService.BitmapBrush.Bitmap.Info);
}
OnFrameRendering(new FrameRenderingEventArgs(modules, canvas, args.DeltaTime, _rgbService.Surface));