package fr.bglands.client.protocol;

import java.util.List;
import java.util.Objects;

/** Optional authored scene. Older protocol-major-1 clients safely ignore it. */
public record UiScene(
        int schemaVersion,
        UiSceneCanvas canvas,
        List<UiSceneWidget> widgets
) {
    public UiScene {
        Objects.requireNonNull(canvas, "canvas");
        widgets = List.copyOf(widgets);
    }
}
