MCPcopy Create free account
hub / github.com/MaaXYZ/MaaFramework / focus_id

Method focus_id

source/MaaFramework/Controller/ControllerAgent.cpp:417–425  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

415}
416
417MaaCtrlId ControllerAgent::focus_id(MaaCtrlId id)
418{
419 if (id == MaaInvalidId) {
420 return id;
421 }
422
423 std::unique_lock lock { focus_ids_mutex_ };
424 return *focus_ids_.emplace(id).first;
425}
426
427bool ControllerAgent::handle_connect()
428{

Callers

nothing calls this directly

Calls 1

emplaceMethod · 0.80

Tested by

no test coverage detected