package p.packer.messages.assets;

public record ScenePackTileRequest(
        boolean active,
        int glyphId,
        int paletteId,
        boolean flipX,
        boolean flipY) {

    public ScenePackTileRequest {
        if (glyphId < 0) {
            throw new IllegalArgumentException("glyphId must be non-negative");
        }
        if (paletteId < 0) {
            throw new IllegalArgumentException("paletteId must be non-negative");
        }
    }
}
