Refactor code structure for improved readability and maintainability

This commit is contained in:
2026-10-22 00:52:36 -04:00
parent 0b1dda2e2f
commit db677dc194
20 changed files with 18475 additions and 14642 deletions
+299 -297
View File
@@ -1,298 +1,300 @@
{
"version": "1.1",
"prop_name": "Cozy Couch",
"material_preset": "wood",
"tags": ["objects"],
"shapes": [
{
"shape_type": "polygon",
"points": [
{
"x": -168,
"y": 74
},
{
"x": -168,
"y": -56
},
{
"x": -145,
"y": -91
},
{
"x": 145,
"y": -91
},
{
"x": 168,
"y": -56
},
{
"x": 168,
"y": 74
},
{
"x": 146,
"y": 94
},
{
"x": -146,
"y": 94
}
],
"fill_color": "#B7767B",
"outline_color": "#332B45",
"outline_width": 4,
"closed": true,
"vertex_flags": [
0,
0,
0,
0,
0,
0,
0,
0
],
"reshaped": false
},
{
"shape_type": "polygon",
"points": [
{
"x": -137,
"y": -62
},
{
"x": 137,
"y": -62
},
{
"x": 137,
"y": 26
},
{
"x": -137,
"y": 26
}
],
"fill_color": "#D9908A",
"outline_color": "#332B45",
"outline_width": 4,
"closed": true,
"vertex_flags": [
0,
0,
0,
0
],
"reshaped": false
},
{
"shape_type": "line",
"points": [
{
"x": 0,
"y": -61
},
{
"x": 0,
"y": 25
}
],
"fill_color": "#00000000",
"outline_color": "#985C71",
"outline_width": 4,
"closed": false,
"vertex_flags": [
0,
0
],
"reshaped": false
},
{
"shape_type": "polygon",
"points": [
{
"x": -142,
"y": 19
},
{
"x": 142,
"y": 19
},
{
"x": 151,
"y": 72
},
{
"x": -151,
"y": 72
}
],
"fill_color": "#EDB09A",
"outline_color": "#332B45",
"outline_width": 4,
"closed": true,
"vertex_flags": [
0,
0,
0,
0
],
"reshaped": false
},
{
"shape_type": "polygon",
"points": [
{
"x": -167,
"y": -13
},
{
"x": -144,
"y": -24
},
{
"x": -131,
"y": -10
},
{
"x": -131,
"y": 82
},
{
"x": -168,
"y": 82
}
],
"fill_color": "#B7767B",
"outline_color": "#332B45",
"outline_width": 4,
"closed": true,
"vertex_flags": [
0,
0,
0,
0,
0
],
"reshaped": false
},
{
"shape_type": "polygon",
"points": [
{
"x": 167,
"y": -13
},
{
"x": 144,
"y": -24
},
{
"x": 131,
"y": -10
},
{
"x": 131,
"y": 82
},
{
"x": 168,
"y": 82
}
],
"fill_color": "#B7767B",
"outline_color": "#332B45",
"outline_width": 4,
"closed": true,
"vertex_flags": [
0,
0,
0,
0,
0
],
"reshaped": false
},
{
"shape_type": "polygon",
"points": [
{
"x": -139,
"y": 88
},
{
"x": -113,
"y": 88
},
{
"x": -113,
"y": 111
},
{
"x": -139,
"y": 111
}
],
"fill_color": "#755369",
"outline_color": "#332B45",
"outline_width": 4,
"closed": true,
"vertex_flags": [
0,
0,
0,
0
],
"reshaped": false
},
{
"shape_type": "polygon",
"points": [
{
"x": 113,
"y": 88
},
{
"x": 139,
"y": 88
},
{
"x": 139,
"y": 111
},
{
"x": 113,
"y": 111
}
],
"fill_color": "#755369",
"outline_color": "#332B45",
"outline_width": 4,
"closed": true,
"vertex_flags": [
0,
0,
0,
0
],
"reshaped": false
}
],
"anchors": {
"origin": {
"role": "pivot",
"x": 0,
"y": 0,
"rotation_deg": 0,
"z_index_offset": 0,
"allowed_hands": "both"
}
},
"metadata": {
"created_at": "2026-10-15T00:00:00",
"modified_at": "2026-10-15T00:00:00"
}
}
"anchors": {
"origin": {
"allowed_hands": "both",
"role": "pivot",
"rotation_deg": 0.0,
"x": 0.0,
"y": 0.0,
"z_index_offset": 0
}
},
"material_preset": "wood",
"metadata": {
"created_at": "2026-10-21T23:16:12",
"modified_at": "2026-10-21T23:16:12"
},
"prop_name": "Cozy Couch",
"shapes": [
{
"closed": true,
"fill_color": "#B7767B",
"outline_color": "#332B45",
"outline_width": 10.3749698404,
"points": [
{
"x": -435.748718261719,
"y": 165.99951171875
},
{
"x": -435.748718261719,
"y": -171.186996459961
},
{
"x": -376.092651367188,
"y": -261.967987060547
},
{
"x": 376.092651367188,
"y": -261.967987060547
},
{
"x": 435.748718261719,
"y": -171.186996459961
},
{
"x": 435.748718261719,
"y": 165.99951171875
},
{
"x": 378.686401367188,
"y": 217.874359130859
},
{
"x": -378.686401367188,
"y": 217.874359130859
}
],
"reshaped": false,
"shape_type": "polygon",
"vertex_flags": [
0,
0,
0,
0,
0,
0,
0,
0
]
},
{
"closed": true,
"fill_color": "#D9908A",
"outline_color": "#332B45",
"outline_width": 10.3749698404,
"points": [
{
"x": -355.342712402344,
"y": -186.749450683594
},
{
"x": 355.342712402344,
"y": -186.749450683594
},
{
"x": 355.342712402344,
"y": 41.4998779296875
},
{
"x": -355.342712402344,
"y": 41.4998779296875
}
],
"reshaped": false,
"shape_type": "polygon",
"vertex_flags": [
0,
0,
0,
0
]
},
{
"closed": false,
"fill_color": "#00000000",
"outline_color": "#985C71",
"outline_width": 10.3749698404,
"points": [
{
"x": 0.0,
"y": -184.155700683594
},
{
"x": 0.0,
"y": 38.906135559082
}
],
"reshaped": false,
"shape_type": "line",
"vertex_flags": [
0,
0
]
},
{
"closed": true,
"fill_color": "#EDB09A",
"outline_color": "#332B45",
"outline_width": 10.3749698404,
"points": [
{
"x": -368.311401367188,
"y": 23.3436813354492
},
{
"x": 368.311401367188,
"y": 23.3436813354492
},
{
"x": 391.655090332031,
"y": 160.812026977539
},
{
"x": -391.655090332031,
"y": 160.812026977539
}
],
"reshaped": false,
"shape_type": "polygon",
"vertex_flags": [
0,
0,
0,
0
]
},
{
"closed": true,
"fill_color": "#B7767B",
"outline_color": "#332B45",
"outline_width": 10.3749698404,
"points": [
{
"x": -433.154968261719,
"y": -59.6560745239258
},
{
"x": -373.498901367188,
"y": -88.1872406005859
},
{
"x": -339.780242919922,
"y": -51.8748474121094
},
{
"x": -339.780242919922,
"y": 186.749450683594
},
{
"x": -435.748718261719,
"y": 186.749450683594
}
],
"reshaped": false,
"shape_type": "polygon",
"vertex_flags": [
0,
0,
0,
0,
0
]
},
{
"closed": true,
"fill_color": "#B7767B",
"outline_color": "#332B45",
"outline_width": 10.3749698404,
"points": [
{
"x": 433.154968261719,
"y": -59.6560745239258
},
{
"x": 373.498901367188,
"y": -88.1872406005859
},
{
"x": 339.780242919922,
"y": -51.8748474121094
},
{
"x": 339.780242919922,
"y": 186.749450683594
},
{
"x": 435.748718261719,
"y": 186.749450683594
}
],
"reshaped": false,
"shape_type": "polygon",
"vertex_flags": [
0,
0,
0,
0,
0
]
},
{
"closed": true,
"fill_color": "#755369",
"outline_color": "#332B45",
"outline_width": 10.3749698404,
"points": [
{
"x": -360.530181884766,
"y": 202.311904907227
},
{
"x": -293.092895507813,
"y": 202.311904907227
},
{
"x": -293.092895507813,
"y": 261.967987060547
},
{
"x": -360.530181884766,
"y": 261.967987060547
}
],
"reshaped": false,
"shape_type": "polygon",
"vertex_flags": [
0,
0,
0,
0
]
},
{
"closed": true,
"fill_color": "#755369",
"outline_color": "#332B45",
"outline_width": 10.3749698404,
"points": [
{
"x": 293.092895507813,
"y": 202.311904907227
},
{
"x": 360.530181884766,
"y": 202.311904907227
},
{
"x": 360.530181884766,
"y": 261.967987060547
},
{
"x": 293.092895507813,
"y": 261.967987060547
}
],
"reshaped": false,
"shape_type": "polygon",
"vertex_flags": [
0,
0,
0,
0
]
}
],
"tags": [
"objects"
],
"version": "1.1"
}