World partition
ObjectStateChange
One change to one object's entry, raised through ChunkState.Changed.
generated from the sources
Struct in namespace
Nebula.World · Packages/com.1by3.nebula/Runtime/World/ChunkState.cspublic readonly struct ObjectStateChangeOne change to one object's entry, raised through ChunkState.Changed.
Fields
Container
public readonly Container Container;The chunk (container) the object belongs to. Can be null if the container is not registered in this process.
ContainerId
public readonly string ContainerId;The id of the chunk's container, such as rt_1234.
ObjectId
public readonly ulong ObjectId;The game's id for the object.
Kind
public readonly ObjectStateChangeKind Kind;What happened.
HasState
public readonly bool HasState;The object has an entry now. False means it is untouched, or unknown for ObjectStateChangeKind.Forgotten.
State
public readonly ObjectState State;The entry, when HasState is true.
IsAuthority
public readonly bool IsAuthority;Raised by the worker that holds the chunk's lease. False on clients and on workers that hold a read-only copy. A process that runs several workers (tests, the Editor) raises one change per copy.