World partition
ChunkStateOutcome
What became of a change made through ChunkStateService.
generated from the sources
Enum in namespace
Nebula.World · Packages/com.1by3.nebula/Runtime/World/ChunkStateService.cspublic enum ChunkStateOutcome : byteWhat became of a change made through ChunkStateService.
Members
| Name | Value | Description |
|---|---|---|
Applied | 0 | The worker that holds the chunk's lease applied the change. ChunkStateResult.State is the entry now. |
Conflict | 1 | A compare-and-set found a different entry than expected, and changed nothing. ChunkStateResult.State is the entry the worker found, so the caller can decide again. |
Unavailable | 2 | Nothing changed: no worker holds the chunk's lease, or the one that does could not apply the change before the deadline (its restore of the chunk was still running, or the lease was moving). |
TimedOut | 3 | No answer arrived before the deadline. The change may or may not have been applied: read the entry before trying again, or use a compare-and-set, which is safe to repeat. |
Rejected | 4 | The change was refused and nothing changed: the payload is longer than ChunkState.MaxPayloadBytes, the chunk's entries would exceed ChunkState.MaxEncodedBytes, or the container cannot hold chunk state (it is carried by an entity, or the id is empty). |