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

Method addDamageRequest

source/game/StarDamageManager.cpp:252–257  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

250}
251
252void DamageManager::addDamageRequest(RemoteDamageRequest remoteDamageRequest) {
253 if (remoteDamageRequest.destinationConnection() == m_connectionId)
254 pushRemoteDamageRequest(std::move(remoteDamageRequest));
255 else
256 m_pendingRemoteDamageRequests.append(std::move(remoteDamageRequest));
257}
258
259void DamageManager::addDamageNotification(RemoteDamageNotification remoteDamageNotification) {
260 pushRemoteDamageNotification(remoteDamageNotification);

Callers

nothing calls this directly

Calls 2

destinationConnectionMethod · 0.80
appendMethod · 0.45

Tested by

no test coverage detected