//------------------------------------------------------------------------------------- bool Space::addSpaceGeometryMapping(std::string respath, bool shouldLoadOnServer) { INFO_MSG(fmt::format("KBEngine::addSpaceGeometryMapping: spaceID={}, respath={}, shouldLoadOnServer={}!\n", id(), respath, shouldLoadOnServer)); hasGeometry_ = true; if(getGeometryPath() == respath) { WARNING_MSG(fmt::format("KBEngine::addSpaceGeometryMapping: spaceID={}, respath={} is exist!\n", id(), respath)); return true; } setGeometryPath(respath); if(shouldLoadOnServer) loadSpaceGeometry(); return true; }
//------------------------------------------------------------------------------------- bool Space::addSpaceGeometryMapping(std::string respath, bool shouldLoadOnServer) { INFO_MSG(boost::format("KBEngine::addSpaceGeometryMapping: spaceID=%1%, respath=%2%, shouldLoadOnServer=%3%!\n") % getID() % respath % shouldLoadOnServer); hasGeometry_ = true; if(getGeometryPath() == respath) { WARNING_MSG(boost::format("KBEngine::addSpaceGeometryMapping: spaceID=%1%, respath=%2% is exist!\n") % getID() % respath); return true; } setGeometryPath(respath); if(shouldLoadOnServer) loadSpaceGeometry(); return true; }