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

Method interact

source/game/StarWorldServer.cpp:2541–2546  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2539}
2540
2541RpcPromise<InteractAction> WorldServer::interact(InteractRequest const& request) {
2542 if (auto entity = as<InteractiveEntity>(m_entityMap->entity(request.targetId)))
2543 return RpcPromise<InteractAction>::createFulfilled(entity->interact(request));
2544 else
2545 return RpcPromise<InteractAction>::createFulfilled(InteractAction());
2546}
2547
2548void WorldServer::setupForceRegions() {
2549 m_forceRegions.clear();

Callers

nothing calls this directly

Calls 2

InteractActionClass · 0.85
entityMethod · 0.45

Tested by

no test coverage detected