Table of Contents

Interface IEntityBuilder<TSelf>

Namespace
KeenEyes
Assembly
KeenEyes.Abstractions.dll

Strongly-typed entity builder interface for better fluent API support.

public interface IEntityBuilder<TSelf> : IEntityBuilder where TSelf : IEntityBuilder<TSelf>

Type Parameters

TSelf

The concrete builder type.

Inherited Members

Methods

WithParent(Entity)

Sets the parent entity for the entity being built.

TSelf WithParent(Entity parent)

Parameters

parent Entity

The parent entity.

Returns

TSelf

This builder for chaining.

WithTag<T>()

Adds a tag component to the entity being built.

TSelf WithTag<T>() where T : struct, ITagComponent

Returns

TSelf

This builder for chaining.

Type Parameters

T

The tag component type.

With<T>(T)

Adds a component to the entity being built.

TSelf With<T>(T component) where T : struct, IComponent

Parameters

component T

The component data.

Returns

TSelf

This builder for chaining.

Type Parameters

T

The component type.