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
17struct Application;
18struct Scene;
19
27
28 void serialize();
29 void restore(Application* app);
31 bool has_state() const;
32
33
34 Application* m_app = nullptr;
35 std::unordered_map<std::string, std::vector<char>> m_serialized_scenes;
36};
37
38} // namespace sd
Definition Application.hpp:22
Definition Application.hpp:42
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:35
Application * m_app
Definition RuntimeStateManager.hpp:34