MCPcopy Create free account
hub / github.com/WarmUpTill/SceneSwitcher / GetDefaultValue

Method GetDefaultValue

plugins/twitch/chat-message-pattern.cpp:426–438  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

424}
425
426std::variant<bool, StringVariable>
427ChatMessageProperty::GetDefaultValue(const char *id)
428{
429 auto it = std::find_if(_supportedProperties.begin(),
430 _supportedProperties.end(),
431 [id](const PropertyInfo &pi) {
432 return std::string(pi._id) == id;
433 });
434 if (it == _supportedProperties.end()) {
435 return "";
436 }
437 return it->_defaultValue;
438}
439
440std::variant<bool, StringVariable> ChatMessageProperty::GetDefaultValue() const
441{

Callers 1

SetVisibilityMethod · 0.45

Calls 3

beginMethod · 0.45
endMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected