package eu.jonahbauer.wizard.core.machine.states.game;

import eu.jonahbauer.wizard.core.machine.Game;
import eu.jonahbauer.wizard.core.machine.states.GameData;
import eu.jonahbauer.wizard.core.machine.GameState;

import java.util.Optional;

public final class Finished extends GameState {
    public Finished() {
        super(GameData.EMPTY);
    }

    @Override
    public Optional<GameState> onEnter(Game context) {
        context.complete(null);
        return Optional.empty();
    }
}
