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

Method IsReusable

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

Source from the content-addressed store, hash-verified

470}
471
472bool ChatMessageProperty::IsReusable() const
473{
474 auto it = std::find_if(_supportedProperties.begin(),
475 _supportedProperties.end(),
476 [this](const PropertyInfo &pi) {
477 return std::string(pi._id) == _id;
478 });
479 if (it == _supportedProperties.end()) {
480 return false;
481 }
482
483 return it->_isReusable;
484}
485
486void ChatMessagePattern::Save(obs_data_t *obj) const
487{

Callers 1

AskForPorpertyMethod · 0.80

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected