Worker
CargoPolicy
What happens to the entities riding in a carrier's container when the carrier is despawned with NebulaWorker.Despawn (docs/frame-bodies.md D5).
generated from the sources
Enum in namespace
Nebula · Packages/com.1by3.nebula/Runtime/Worker/CargoPolicy.cspublic enum CargoPolicyWhat happens to the entities riding in a carrier's container when the carrier is despawned with NebulaWorker.Despawn (docs/frame-bodies.md D5).
Members
| Name | Value | Description |
|---|---|---|
SetDown | Put every rider down in the container the carrier was in, at the pose it has now. What NebulaWorker.Despawn always does. | |
Stow | Keep the persistent cargo aboard: every rider this worker is authoritative for that has a PersistentEntity, no owning client, and sits directly in the box of the carrier or of another stowed rider is checkpointed aboard and despawned, deepest first, so its record names its carrier and it comes back when the carrier is restored. Everything else aboard (a player's pawn, a transient entity) is put down as with SetDown. Needs a persistent carrier despawned with keepPersisted. |
AuthorityCallTracker
The sender's side of the reply channel: the calls this worker sent with a reply requested and has not heard back about.
ContainerCostMeter
What each container this worker leases is actually costing it, measured rather than guessed: the NetworkTick time spent on its entities, the replication bytes they put on the wire, and the owner state a gateway has to relay for them.