Toast Engine
Loading...
Searching...
No Matches
profiler_sections.hpp
Go to the documentation of this file.
1
7#pragma once
8
9#include <cstdint>
10#include <string>
11#include <string_view>
12
13namespace toast {
14
15class ProfilerSections {
16public:
17 enum class Mode : uint8_t {
18 none,
19 editor,
20 play,
21 simulate,
22 };
23
24 ProfilerSections() = default;
25 ProfilerSections(const ProfilerSections&) = delete;
26 auto operator=(const ProfilerSections&) -> ProfilerSections& = delete;
27 ~ProfilerSections();
28
29 void update(Mode mode, std::string_view world);
30
31private:
32 Mode m_mode = Mode::none;
33 std::string m_world;
34 uint32_t m_mode_id = 0;
35 uint32_t m_world_id = 0;
36
37 void leaveAll();
38};
39}
Definition App.axaml.cs:9