mirror of
https://github.com/zhenyan121/Cubed.git
synced 2026-06-17 16:17:02 +08:00
20 lines
409 B
C++
20 lines
409 B
C++
#pragma once
|
|
|
|
#include <Cubed/ui/text.hpp>
|
|
|
|
#include <unordered_map>
|
|
|
|
class DebugCollector {
|
|
public:
|
|
static DebugCollector& get();
|
|
DebugCollector();
|
|
|
|
std::unordered_map<std::size_t, Text>& all_texts();
|
|
|
|
Text& text(std::string_view name);
|
|
void report(std::string_view name, std::string_view content);
|
|
void init_text();
|
|
|
|
private:
|
|
std::unordered_map<std::size_t, Text> m_texts;
|
|
}; |