#pragma once #include "CConsole.h" #include "CComponent.h" class CTerminal : public CComponent { public: bool V_Init() override; void V_DeInit() override; void V_Update() override; void CreateConsole(const std::string& type); void V_PostInit() override; bool V_ScriptInit(std::shared_ptr state, sol::table table) override; void Print(const std::wstring& text); void Error(const std::wstring& err); void SetColor(const CColor& text, const CColor& bg); void SetColor(const std::pair& txt_bg); std::pair GetColor() const; bool IsConsoleAvailable() const; DEFINE_COMPONENT(); std::unique_ptr Console; };