#include "map_controller.h" bool MapController::loadMap(long mapId) { auto mapEntity = MapEntity::findById(mapId); qDebug() << mapEntity.mapName; // TODO 获取数据 // 分析模型 // 初始化 return false; } void MapController::route(const QString& key, const QString& message) { qDebug() << key << ":" << message; // TODO route to function if(key == "loadMap"){ loadMap(1); } }