Files
2026-05-14 13:30:06 +08:00

23 lines
747 B
C++
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#pragma once
#include "domain/Project.h"
#include <QString>
namespace core::persistence {
/// 实体 payload 的目录 bundle 结构(v7 起):
/// assets/entities/<id>/
/// 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