Skip to main content
Version: 0.3.1

Interface IComponentRegistry

Namespace: ReadyM.Relay.Server.Sdk.Ecs.Components
Assembly: ReadyM.Relay.Server.Sdk.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.

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

Type Parameters

T

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

RegisterLocalComponent<T>()

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

void RegisterLocalComponent<T>() where T : struct

Type Parameters

T

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

  • Methods
    • RegisterComponent<T>()
    • RegisterLocalComponent<T>()