2021-04-19 18:56:11 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
namespace game_console
|
|
|
|
{
|
|
|
|
enum console_type
|
|
|
|
{
|
|
|
|
con_type_error = 1,
|
|
|
|
con_type_warning = 3,
|
|
|
|
con_type_info = 7
|
|
|
|
};
|
|
|
|
|
2021-09-19 12:20:15 -04:00
|
|
|
void draw_console();
|
|
|
|
|
2021-04-19 18:56:11 -04:00
|
|
|
void print(int type, const char* fmt, ...);
|
|
|
|
|
|
|
|
bool console_char_event(int local_client_num, int key);
|
|
|
|
bool console_key_event(int local_client_num, int key, int down);
|
|
|
|
|
2021-12-28 11:14:47 -05:00
|
|
|
void find_matches(std::string input, std::unordered_set<std::string>& suggestions, const bool exact);
|
2021-04-23 10:45:33 -04:00
|
|
|
void execute(const char* cmd);
|
2021-12-20 20:00:22 -05:00
|
|
|
void clear_console();
|
|
|
|
void add(const std::string& cmd, bool print_ = true);
|
|
|
|
|
|
|
|
std::deque<std::string>& get_output();
|
|
|
|
std::deque<std::string>& get_history();
|
2021-04-19 18:56:11 -04:00
|
|
|
}
|