added editor WIP

This commit is contained in:
2026-01-18 14:59:44 +01:00
parent 281e4740a8
commit dc5b58d7d3
27 changed files with 2448 additions and 1 deletions

View File

@@ -9,6 +9,13 @@
namespace TSE
{
enum LogEntryType
{
Log,
Error,
Warning,
};
class Debug
{
public:
@@ -25,9 +32,11 @@ namespace TSE
static void Warning(string msg);
/// @brief closes the log file
static void Close();
static void AddCallback(void(*func)(const std::string&, const LogEntryType&));
private:
static std::ofstream logFile;
static std::vector<void(*)(const std::string&, const LogEntryType&)> onLogCallbacks;
};
} // namespace TSE