目标
能够将scene数据保存为一个JSON文件,方便读取和保存
{
"id": 2586028185080,
"scene_width": 64000,
"scene_height": 64000,
"node": [
{
"id": 2586029654760,
"title": "这是一个节点",
"pos_x": -350.0,
"pos_y": -250.0,
"inputs": [
{
"id": 2586029897152,
"index": 0,
"position": 2,
"socket_type": 0
},
{
"id": 2586029905288,
"index": 1,
"position": 2,
"socket_type": 0
},
{
"id": 2586029905344,
"index": 2,
"position": 2,
"socket_type": 0
}
],
"outputs": [
{
"id": 2586029905400,
"index": 0,
"position": 3,
"socket_type": 3
}
],
"content": {
}
},
{
"id": 2586029897096,
"title": "这是第二个节点",
"pos_x": -75.0,
"pos_y": 0.0,
"inputs": [
{
"id": 2586029905512,
"index": 0,
"position": 2,
"socket_type": 1
},
{
"id": 2586029905568,
"index": 1,
"position": 2,
"socket_type": 1
}