SDEngine
Game Engine
Loading...
Searching...
No Matches
RuntimeStateManager.hpp
Go to the documentation of this file.
1
9#pragma once
10#include <string>
11#include <unordered_map>
12#include <vector>
13
14
15namespace sd {
16
17class Application;
18class Scene;
19
25public:
28
29 void serialize();
30 void restore(Application* app);
32 bool has_state() const;
33
34private:
35 Application* m_app = nullptr;
36 std::unordered_map<std::string, std::vector<char>> m_serialized_scenes;
37};
38
39} // namespace sd
Definition Application.hpp:58
Definition RuntimeStateManager.hpp:24
void set_application(Application *app)
Definition RuntimeStateManager.cpp:27
bool has_state() const
Definition RuntimeStateManager.cpp:31
void restore(Application *app)
Definition RuntimeStateManager.cpp:18
void serialize()
Definition RuntimeStateManager.cpp:12
std::unordered_map< std::string, std::vector< char > > m_serialized_scenes
Definition RuntimeStateManager.hpp:36
Application * m_app
Definition RuntimeStateManager.hpp:35
Definition Application.hpp:28
constexpr T g_type_max
Definition types.hpp:21