kinda add RunService

This commit is contained in:
Modnark
2023-03-30 14:45:56 -04:00
parent 0b8847cd8e
commit fcab9a8871
9 changed files with 89 additions and 11 deletions

View File

@@ -10,6 +10,7 @@
#include "XplicitNgine/XplicitNgine.h"
#include "SoundService.h"
#include "LightingInstance.h"
#include "RunServiceInstance.h"
// Libraries
#include "rapidxml/rapidxml.hpp"
@@ -38,6 +39,7 @@ public:
ThumbnailGeneratorInstance* getThumbnailGenerator();
SoundService* getSoundService();
LightingInstance* getLighting();
RunService* getRunService();
std::string message;
std::string _loadedFileName;
@@ -47,7 +49,7 @@ public:
SelectionService* getSelectionService();
PartInstance* makePart();
void clearLevel();
void toggleRun();
void toggleRun(bool doRun);
bool isRunning();
void resetEngine();
#if _DEBUG
@@ -72,6 +74,8 @@ private:
XplicitNgine* xplicitNgine;
SoundService* soundService;
LightingInstance* lightingInstance;
RunService* runService;
bool running;
};

View File

@@ -0,0 +1,14 @@
#pragma once
#include "Instance.h"
class RunService :
public Instance
{
public:
RunService(void);
~RunService(void);
void run();
void pause();
void reset();
};

View File

@@ -12,3 +12,4 @@ public:
void zoomToExtents();
std::vector<PartInstance *> partObjects;
};