#pragma once #include "domain/Project.h" #include namespace core::persistence { /// 实体 payload 的目录 bundle 结构(v7 起): /// assets/entities// /// meta.json // 静态字段(几何/层级/黑洞等) /// anim.json // 关键帧轨道(location/depthScale/userScale/visibility/priority/sprite frames) /// intro.json // intro /// default.png // 默认贴图(可为空) struct EntityBundleStore { static QString bundleRelativeDir(const QString& entityId); static bool save(const QString& projectDirAbs, const Project::Entity& entity); static bool load(const QString& projectDirAbs, Project::Entity& inOutEntity); }; } // namespace core::persistence