update
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user