MCPcopy Create free account
hub / github.com/ErrorAtLine0/infinipaint / add_chat_message

Method add_chat_message

src/World.cpp:395–401  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

393}
394
395void World::add_chat_message(const std::string& name, const std::string& message, Toolbar::ChatMessage::Type type) {
396 Logger::get().log(Logger::LogType::CHAT, type == Toolbar::ChatMessage::JOIN ? (name + " " + message) : ("[" + name + "] " + message));
397 chatMessages.emplace_front(Toolbar::ChatMessage{name, message, type});
398 if(chatMessages.size() == CHAT_SIZE)
399 chatMessages.pop_back();
400 set_to_layout_gui_if_focus();
401}
402
403void World::early_destroy() {
404 //con.early_destroy();

Callers 2

register_classMethod · 0.80
send_chat_messageMethod · 0.80

Calls 4

logMethod · 0.80
getFunction · 0.50
sizeMethod · 0.45
pop_backMethod · 0.45

Tested by

no test coverage detected