added editor WIP
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user