A class in Root.Township, Alta.PlayerStates.
Creates player state objects by PlayerStateType. Injected through VContainer as IPlayerStateFactory.
Constructors
| Member | What it is |
|---|
PlayerStateFactory(IPostProcessController postProcessController) | Creates a PlayerStateFactory from postProcessController. |
Fields
2 private and internal fields
Methods
| Member | What it is |
|---|
IPlayerState CreateNewPlayerState(PlayerStateType stateType, IPlayerState baseStateForDecorators) | Makes a new state of the given type. Decorator states (combat, equipment, spirit, downed) get the PlayingState found under the given base state. |
1 private and internal method
| Member | What it is |
|---|
private static T FindStateOfType<T>(IPlayerState stateToSearch) | Walks down a state's BaseState chain and returns the first state of the given type, or null. |