rocket_league.state_mutators.mutator_sequence

Classes

MutatorSequence

A StateMutator that applies a sequence of StateMutators to the state.

Module Contents

class rocket_league.state_mutators.mutator_sequence.MutatorSequence(*mutators: rlgym.api.StateMutator[rlgym.api.StateType])

Bases: rlgym.api.StateMutator[rlgym.api.StateType]

A StateMutator that applies a sequence of StateMutators to the state.

mutators = ()
apply(state: rlgym.api.StateType, shared_info: Dict[str, Any]) None

Function to be called each time the environment is reset. This function should change any desired values of the State. The values within State are sent to the transition engine to set up the initial state.

Parameters:
  • state – State object to be modified with desired state values.

  • shared_info – A dictionary with shared information across all config objects.