-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathEngineRuntime.h
More file actions
37 lines (29 loc) · 842 Bytes
/
EngineRuntime.h
File metadata and controls
37 lines (29 loc) · 842 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#pragma once
#include <cstdint>
#include "engine/EngineConfig.h"
#include "engine/EngineStats.h"
#include "engine/EngineSystem.h"
#include "engine/FrameClock.h"
namespace safecrowd::engine {
class EngineRuntime {
public:
explicit EngineRuntime(EngineConfig config = {});
void initialize();
void play();
void pause();
void stop();
void stepFrame(double deltaSeconds);
EngineWorld& world() noexcept;
const EngineWorld& world() const noexcept;
const EngineConfig& config() const noexcept;
const EngineStats& stats() const noexcept;
EngineState state() const noexcept;
std::uint64_t runIndex() const noexcept;
private:
EngineConfig config_;
EngineStats stats_;
EngineWorld world_;
FrameClock frameClock_;
std::uint64_t runIndex_{0};
};
} // namespace safecrowd::engine