AuthorityLeaseComponent
Authority lease on a networked item (ROADMAP N6). The host owns every item; a client that picks one up asks for a time-bounded lease, simulates the item on its own Jolt world while it holds it, and streams poses the host checks and clamps. The host revokes on expiry, disconnect, a higher-priority claim or its own claim, and the item goes back to host simulation carrying the lessee's last velocity, so nothing snaps. FAuthorityLeaseSystem is the machinery; this component is the per-item tuning and the replicated answer to "who simulates this", which a late joiner receives with the spawn.
- Module
- Networking
- Header
#include "Networking/Components/AuthorityLeaseComponent.h"- Namespace
Mowo- Reflection
- Reflected by MowoHeaderTool
The item needs a NetworkObject and a RigidBody authored Dynamic: the lease flips the body kinematic on every machine that does not simulate it, and a body built kinematic has no mass to come back with.
Properties
| Type | Name | Description |
|---|---|---|
bool | leasable | Default true. |
float | leaseSeconds | The window a grant or renewal buys. The lessee renews every third of it, so a lease survives two lost renewals and dies within this long of the lessee falling silent. Default 1.0f. |
float | maxSpeed | The fastest the host believes this item can move under a client's hand, in m/s. Reported velocity is clamped to it, and a pose further from the last accepted one than this speed allows is pulled back onto the limit. Default 15.0f. |
float | teleportDistance | A pose this far beyond what max speed allows is a teleport: refused outright, and the lessee is corrected back to the last accepted pose. Default 1.5f. |
float | returnBlendSeconds | How long the former lessee blends from its own pose onto the replicated one when the lease ends. Default 0.25f. |
uint32_t | holderPeerId | 0 = the host simulates it. Otherwise the peer that holds the lease. Default 0. |
uint32_t | leaseEpoch | Bumped on every grant; a message that names an older epoch is stale. Default 0. |
bool | hostHeld | The host simulates it for a hold of its own: its own player's claim, or a carry the host simulates (its own player's, a Heavy or two-person carry). Every client claim is refused while set. Default false. |