Contents

HasSynchronization

An interface that enables an entity to be synchronized between processes and networked applications.

Declaration

@MainActor @preconcurrency protocol HasSynchronization : Entity

Overview

All entities automatically adopt this protocol because the Entity base class does. This adoption gives all entities a SynchronizationComponent instance, and a collection of methods for manipulating the component, that you use to manage ownership of the entity.

Topics

Accessing the component

Managing ownership

Making local changes

See Also

Entity ownership synchronization