MQEngine
载入中...
搜索中...
未找到
SavedComponentsList.h
浏览该文件的文档.
1//
2// Created by Administrator on 2025/9/12.
3//
4
5#ifndef SAVEDCOMPONENTSLIST_H
6#define SAVEDCOMPONENTSLIST_H
7namespace MQEngine {
8 template<typename SnapshotType, typename WrapperType>
9 void SerializeComponents(SnapshotType&& snapshot, WrapperType& wrapper) {
10 snapshot
11 .get<entt::entity>(wrapper)
12 .get<NameTag>(wrapper)
13 .get<StaticMeshInstance>(wrapper)
14 .get<DirectionalLightComponent>(wrapper)
15 .get<DiffuseTextureComponent>(wrapper)
16 .get<PositionComponent>(wrapper)
17 .get<RotationComponent>(wrapper)
18 .get<ScaleComponent>(wrapper)
19 .get<CameraComponent>(wrapper);
20 }
21}
22#endif //SAVEDCOMPONENTSLIST_H
定义 application.h:5
void SerializeComponents(SnapshotType &&snapshot, WrapperType &wrapper)
定义 SavedComponentsList.h:9
定义 Component.h:12