package thb.jeanluc.adventure.model;

import java.util.List;

/** Onboarding walkthrough: an intro, ordered steps, and closing tips. */
public record Tutorial(String intro, List<TutorialStep> steps, String closingTips) {

    public Tutorial {
        steps = steps == null ? List.of() : List.copyOf(steps);
    }

    public boolean isEmpty() {
        return steps.isEmpty();
    }

    /** An absent tutorial (no steps). */
    public static Tutorial none() {
        return new Tutorial(null, List.of(), null);
    }
}
