MCPcopy Create free account
hub / github.com/EasyRPG/Player / PushWithSubject

Method PushWithSubject

src/window_battlemessage.cpp:64–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64void Window_BattleMessage::PushWithSubject(std::string_view message, std::string_view subject) {
65 if (Feature::HasPlaceholders()) {
66 Push(Utils::ReplacePlaceholders(
67 message,
68 Utils::MakeArray('S'),
69 Utils::MakeSvArray(subject)
70 ));
71 }
72 else {
73 Push(std::string(subject) + std::string(message));
74 }
75 needs_refresh = true;
76}
77
78void Window_BattleMessage::Pop() {
79#ifdef EP_DEBUG_BATTLE2K_MESSAGE

Callers 2

Calls 2

MakeArrayFunction · 0.85
MakeSvArrayFunction · 0.85

Tested by

no test coverage detected