kinda add RunService
This commit is contained in:
@@ -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;
|
||||
|
||||
};
|
||||
|
||||
14
src/include/DataModelV2/RunServiceInstance.h
Normal file
14
src/include/DataModelV2/RunServiceInstance.h
Normal 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();
|
||||
};
|
||||
@@ -12,3 +12,4 @@ public:
|
||||
void zoomToExtents();
|
||||
std::vector<PartInstance *> partObjects;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user