MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / radioMessage

Method radioMessage

source/game/StarRadioMessageDatabase.cpp:32–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30}
31
32RadioMessage RadioMessageDatabase::radioMessage(String const& messageName) const {
33 if (auto message = m_radioMessages.maybe(messageName))
34 return message.take();
35 throw RadioMessageDatabaseException(strf("Unknown radio message {}", messageName));
36}
37
38RadioMessage RadioMessageDatabase::createRadioMessage(Json const& config, Maybe<String> const& messageId) const {
39 if (config.isType(Json::Type::String)) {

Callers

nothing calls this directly

Calls 3

strfFunction · 0.85
maybeMethod · 0.45
takeMethod · 0.45

Tested by

no test coverage detected