package thb.jeanluc.adventure.model;

import java.util.List;

/** A game ending: shown (and ends the game) when its conditions hold. */
public record Ending(String id, String title, boolean victory, List<Condition> when, String text) {
    public Ending {
        when = when == null ? List.of() : List.copyOf(when);
    }
}
