|
PeanutButter
|
Most basic interface to implement to be considered a builder. More...
Public Member Functions | |
| TEntity | Build () |
| Builds a new instance of TSubject. | |
| TBuilder | WithProp (Action< TEntity > transform) |
| Queues a transform to be run at build time on entities you wish to build; use this on reference types. | |
| TBuilder | WithProp (ActionRef< TEntity > transform) |
| Queues a transform to be run at build time on entities you wish to build; use this on value types. | |
Most basic interface to implement to be considered a builder.
| TEntity | Type of the entity this builder should build |
| TBuilder |
| TEntity PeanutButter.Utils.IBuilder< TBuilder, TEntity >.Build | ( | ) |
Builds a new instance of TSubject.
Implemented in PeanutButter.RandomGenerators.GenericBuilder< TBuilder, TEntity >, and PeanutButter.Utils.Builder< TBuilder, TEntity >.
| TBuilder PeanutButter.Utils.IBuilder< TBuilder, TEntity >.WithProp | ( | Action< TEntity > | transform | ) |
Queues a transform to be run at build time on entities you wish to build; use this on reference types.
| transform |
Implemented in PeanutButter.RandomGenerators.GenericBuilder< TBuilder, TEntity >, and PeanutButter.Utils.Builder< TBuilder, TEntity >.
| TBuilder PeanutButter.Utils.IBuilder< TBuilder, TEntity >.WithProp | ( | ActionRef< TEntity > | transform | ) |
Queues a transform to be run at build time on entities you wish to build; use this on value types.
| transform |
Implemented in PeanutButter.RandomGenerators.GenericBuilder< TBuilder, TEntity >, and PeanutButter.Utils.Builder< TBuilder, TEntity >.