MCPcopy Create free account
hub / github.com/cvet/fonline / FindLockOwner

Function FindLockOwner

Source/Server/EntitySync.cpp:665–676  ·  view source on GitHub ↗

Returns the entity whose own `_ownedLock` backs `lock` — the topmost ancestor of `entity` still sharing `lock` through propagation (item -> container, custom entity -> holder). The held-lock set must pin THIS entity, not a propagated child: a child can be reverted/reparented out of the cover mid-hold (e.g. an item moved off a critter that is then destroyed, or the container destroyed and its items

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

SyncEntitiesMethod · 0.85
EnsureEntitySyncedMethod · 0.85

Calls 4

hold_refMethod · 0.80
GetParentRawMethod · 0.80
GetEntityLockMethod · 0.45
as_ptrMethod · 0.45

Tested by

no test coverage detected