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
TSelfThe concrete builder type.
- Inherited Members
Methods
WithParent(Entity)
Sets the parent entity for the entity being built.
TSelf WithParent(Entity parent)
Parameters
parentEntityThe 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
TThe tag component type.
With<T>(T)
Adds a component to the entity being built.
TSelf With<T>(T component) where T : struct, IComponent
Parameters
componentTThe component data.
Returns
- TSelf
This builder for chaining.
Type Parameters
TThe component type.