跳到主要内容
版本:Next

Interface IComponentRegistry

Namespace: ReadyM.Api.Multiplayer.ECS.Registry
Assembly: ReadyM.Api.Multiplayer.dll

Allows registering components with the ECS system, both local and networked.

public interface IComponentRegistry

Methods

RegisterComponent<T>()

Registers a networked (replicated over the network) component type with the ECS system.

IComponentRegistry RegisterComponent<T>() where T : struct, INetworkedComponent

Returns

IComponentRegistry

Type Parameters

T

The type of the component to register. Must be a struct that implements INetworkedComponent.