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

Method receiveMessage

source/game/StarQuestManager.cpp:364–370  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

362}
363
364Maybe<Json> QuestManager::receiveMessage(String const& message, bool localMessage, JsonArray const& args) {
365 starAssert(m_world);
366 Maybe<Json> result;
367 m_quests.values().exec([&result, message, localMessage, args](
368 QuestPtr const& quest) { result = result.orMaybe(quest->receiveMessage(message, localMessage, args)); });
369 return result;
370}
371
372void QuestManager::update(float dt) {
373 startInitialQuests();

Callers 1

interestingObjectsMethod · 0.45

Calls 3

orMaybeMethod · 0.80
execMethod · 0.45
valuesMethod · 0.45

Tested by

no test coverage detected