21 lines
573 B
C++
21 lines
573 B
C++
#pragma once
|
||
|
||
#include "domain/Project.h"
|
||
|
||
#include <QString>
|
||
|
||
namespace core::persistence {
|
||
|
||
/// 动画 payload 的目录 bundle(v7 起):
|
||
/// assets/animations/<id>/
|
||
/// anim.json // 元数据 + 所有 track(后续可拆成按 track 分块)
|
||
struct AnimationBundleStore {
|
||
static QString bundleRelativeDir(const QString& animationId);
|
||
|
||
static bool save(const QString& projectDirAbs, const Project::Animation& animation);
|
||
static bool load(const QString& projectDirAbs, Project::Animation& inOutAnimation);
|
||
};
|
||
|
||
} // namespace core::persistence
|
||
|