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