Let the user of the API define a name and directly return the new state machine.
This allows us to remove the custom type IdMap and hence simplifies the code.
Before:
val stateMachine = GuiStateMachineApi().createStateMachine()
After:
val stateMachine = GuiStateMachineApi().createStateMachine("test")
Let the user of the API define a name and directly return the new state machine. This allows us to remove the custom type
IdMap
and hence simplifies the code.Before:
val stateMachine = GuiStateMachineApi().createStateMachine()
After:
val stateMachine = GuiStateMachineApi().createStateMachine("test")