/*****************************************************************************
 * Copyright (c) 2014-2026 OpenRCT2 developers
 *
 * For a complete list of all authors, please refer to contributors.md
 * Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2
 *
 * OpenRCT2 is licensed under the GNU General Public License version 3.
 *****************************************************************************/

#pragma once

#include "../ride/TrackDesign.h"

namespace OpenRCT2
{
    struct IStream;
}

namespace OpenRCT2::RCT2
{
    /**
     * Class to export RollerCoaster Tycoon 2 track designs (*.TD6).
     */
    class T6Exporter final
    {
    public:
        T6Exporter(const TrackDesign& trackDesign);

        bool SaveTrack(const utf8* path);
        bool SaveTrack(IStream* stream);

    private:
        const TrackDesign& _trackDesign;

        void exportMazeElements(IStream& tempStream) const;
        void exportTrackElements(IStream& tempStream) const;
        void exportTrackElementsTD7(IStream& tempStream) const;
        void exportEntranceElements(IStream& tempStream) const;
        void exportSceneryElements(IStream& tempStream) const;
    };
} // namespace OpenRCT2::RCT2
