package p.studio.workspaces.assets.tiled;

import p.studio.workspaces.assets.metadata.AssetStudioSceneLayerBinding;

import java.nio.file.Path;
import java.util.List;
import java.util.Objects;

public record TiledAssetGenerationResult(
        boolean success,
        String message,
        List<AssetStudioSceneLayerBinding> updatedBindings,
        List<Path> writtenFiles) {

    public TiledAssetGenerationResult {
        message = Objects.requireNonNullElse(message, "");
        writtenFiles = List.copyOf(Objects.requireNonNullElse(writtenFiles, List.of()));
    }
}
