From 6f7b994684032060f0a2d7af82f4f3572293b8d6 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Thu, 12 Jun 2025 21:41:41 +0800 Subject: internal!: organized internal structure, using cmake now --- src/IOManager.cpp | 34 ---------------------------------- 1 file changed, 34 deletions(-) delete mode 100644 src/IOManager.cpp (limited to 'src/IOManager.cpp') diff --git a/src/IOManager.cpp b/src/IOManager.cpp deleted file mode 100644 index eb648e5..0000000 --- a/src/IOManager.cpp +++ /dev/null @@ -1,34 +0,0 @@ -#include "IOManager.hpp" -#include "inputManager.hpp" -#include "log.hpp" - -CIOManager::CIOManager() { - log(LOG, "IOManager: initialized"); -} - -CIOManager::~CIOManager() { - m_vIO.clear(); - log(SYS, "IOManager: bye"); -} - -const std::vector &CIOManager::getIO() const { - return m_vIO; -} - -void CIOManager::addLog(const SLog &log) { - m_vIO.push_back({.log = log}); - if (g_pInputManager) - g_pInputManager->updateIO(); -} - -void CIOManager::addMessage(const CChatManager::SMessage &msg) { - m_vIO.push_back({.msg = msg}); - if (g_pInputManager) - g_pInputManager->updateIO(); -} - -void CIOManager::addCustom(const std::pair &custom) { - m_vIO.push_back({.custom = custom}); - if (g_pInputManager) - g_pInputManager->updateIO(); -} -- cgit v1.2.3