Table of Contents

Interface ISystemDependencyProvider

Namespace
KeenEyes
Assembly
KeenEyes.Abstractions.dll

Interface for systems that explicitly declare their component dependencies.

public interface ISystemDependencyProvider

Examples

public class MovementSystem : SystemBase, ISystemDependencyProvider
{
    public void GetDependencies(ISystemDependencyBuilder builder)
    {
        builder
            .Reads<Position>()
            .Writes<Velocity>();
    }

    public override void Update(float deltaTime)
    {
        // System implementation
    }
}

Remarks

Implement this interface to provide component read/write dependencies that enable parallel system execution. The scheduler uses these dependencies to determine which systems can run concurrently.

If a system does not implement this interface, its dependencies may be inferred from registered queries or assumed to be unsafe for parallelization.

Methods

GetDependencies(ISystemDependencyBuilder)

Declares the component dependencies for this system.

void GetDependencies(ISystemDependencyBuilder builder)

Parameters

builder ISystemDependencyBuilder

The dependency builder to configure.