添加 Components 和 Scene 序列化支持
- Component: 添加 Serialize/Deserialize 虚函数 - TransformComponent: 实现 Transform 数据的序列化/反序列化 - GameObject: 实现对象序列化/反序列化 - Scene: 实现 Save/Load 方法,支持场景文件保存和加载 - 测试: 添加 Save_And_Load 和 Save_ContainsGameObjectData 测试
This commit is contained in:
5
test_scene.scene
Normal file
5
test_scene.scene
Normal file
@@ -0,0 +1,5 @@
|
||||
# XCEngine Scene File
|
||||
scene=TestScene;
|
||||
active=1;
|
||||
|
||||
gameobject=name=SavedObject;active=1;id=21;transform=position=1,2,3;rotation=0,0,0,1;scale=1,1,1;;
|
||||
Reference in New Issue
Block a user