2021-02-16 17:26:40 +00:00
|
|
|
#pragma once
|
|
|
|
|
2024-02-02 09:20:34 +00:00
|
|
|
#include <string>
|
|
|
|
|
2022-06-11 01:59:57 +00:00
|
|
|
#include <libreborn/libreborn.h>
|
|
|
|
|
2024-02-02 09:20:34 +00:00
|
|
|
// Message Limitations
|
|
|
|
#define MAX_CHAT_MESSAGE_LENGTH 256
|
|
|
|
|
|
|
|
// Message Prefix
|
|
|
|
__attribute__((visibility("internal"))) std::string _chat_get_prefix(char *username);
|
2021-02-16 17:26:40 +00:00
|
|
|
|
2024-02-02 09:20:34 +00:00
|
|
|
// Queue Message For Sending
|
2021-09-12 03:18:12 +00:00
|
|
|
#ifndef MCPI_SERVER_MODE
|
2024-02-01 08:12:24 +00:00
|
|
|
__attribute__((visibility("internal"))) void _chat_queue_message(const char *message);
|
|
|
|
#endif
|
|
|
|
|
2024-02-02 09:20:34 +00:00
|
|
|
// Init Chat UI
|
2024-02-01 08:12:24 +00:00
|
|
|
#ifndef MCPI_HEADLESS_MODE
|
|
|
|
__attribute__((visibility("internal"))) void _init_chat_ui();
|
2022-06-25 21:30:08 +00:00
|
|
|
#endif
|