1
Fork 0
mirror of https://github.com/redstrate/Novus.git synced 2025-04-22 12:07:45 +00:00
novus/mapeditor/include/mapview.h
Joshua Goins c19ff1e132 Add mapeditor program
This allows viewing regions in the game. Some of them don't work, not
sure why yet.
2024-02-02 14:29:48 -05:00

31 lines
No EOL
584 B
C++

// SPDX-FileCopyrightText: 2024 Joshua Goins <josh@redstrate.com>
// SPDX-License-Identifier: GPL-3.0-or-later
#pragma once
#include "filecache.h"
#include "mdlpart.h"
#include <QComboBox>
#include <QWidget>
#include <physis.hpp>
struct GameData;
class MapView : public QWidget
{
Q_OBJECT
public:
explicit MapView(GameData *data, FileCache &cache, QWidget *parent = nullptr);
MDLPart &part() const;
public Q_SLOTS:
void addTerrain(QString basePath, physis_Terrain terrain);
private:
MDLPart *mdlPart = nullptr;
GameData *data;
FileCache &cache;
};