2022-02-03 14:05:24 -05:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
namespace game_console
|
|
|
|
{
|
|
|
|
enum console_type
|
|
|
|
{
|
|
|
|
con_type_error = 1,
|
|
|
|
con_type_warning = 3,
|
|
|
|
con_type_info = 7
|
|
|
|
};
|
|
|
|
|
2022-02-04 16:17:56 -05:00
|
|
|
//void print(int type, const char* fmt, ...);
|
2022-02-03 14:05:24 -05:00
|
|
|
|
|
|
|
bool console_char_event(int local_client_num, int key);
|
|
|
|
bool console_key_event(int local_client_num, int key, int down);
|
2022-02-04 16:17:56 -05:00
|
|
|
bool match_compare(const std::string& input, const std::string& text, const bool exact);
|
|
|
|
void find_matches(std::string input, std::vector<std::string>& suggestions, const bool exact);
|
2022-02-03 14:05:24 -05:00
|
|
|
|
|
|
|
void execute(const char* cmd);
|
|
|
|
}
|