blob: bbecf39319cfed61352cc50f62a0a33a2f7f5b3b [file] [log] [blame]
#include "rive/assets/file_asset_referencer.hpp"
#include "rive/backboard.hpp"
#include "rive/importers/backboard_importer.hpp"
using namespace rive;
StatusCode FileAssetReferencer::registerReferencer(ImportStack& importStack)
{
auto backboardImporter = importStack.latest<BackboardImporter>(Backboard::typeKey);
if (backboardImporter == nullptr)
{
return StatusCode::MissingObject;
}
backboardImporter->addFileAssetReferencer(this);
return StatusCode::Ok;
}