mirror of
https://github.com/huderlem/porymap.git
synced 2026-08-11 19:35:38 -05:00
Read map.json constants on project open
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
|
||||
Map::Map(QObject *parent) : QObject(parent)
|
||||
{
|
||||
m_scriptsLoaded = false;
|
||||
m_editHistory = new QUndoStack(this);
|
||||
resetEvents();
|
||||
}
|
||||
@@ -23,12 +24,6 @@ Map::~Map() {
|
||||
deleteConnections();
|
||||
}
|
||||
|
||||
void Map::setName(QString mapName) {
|
||||
m_name = mapName;
|
||||
m_constantName = mapConstantFromName(mapName);
|
||||
m_scriptsLoaded = false;
|
||||
}
|
||||
|
||||
// Note: Map does not take ownership of layout
|
||||
void Map::setLayout(Layout *layout) {
|
||||
m_layout = layout;
|
||||
|
||||
Reference in New Issue
Block a user