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
+474 -472
View File
@@ -1,473 +1,475 @@
{
"version": "1.1",
"prop_name": "Town House",
"material_preset": "none",
"tags": ["buildings"],
"shapes": [
{
"shape_type": "polygon",
"points": [
{
"x": -118,
"y": -178
},
{
"x": 118,
"y": -178
},
{
"x": 118,
"y": 120
},
{
"x": -118,
"y": 120
}
],
"fill_color": "#B3C99C",
"outline_color": "#332B45",
"outline_width": 4,
"closed": true,
"vertex_flags": [
0,
0,
0,
0
],
"reshaped": false
},
{
"shape_type": "polygon",
"points": [
{
"x": -138,
"y": -168
},
{
"x": 0,
"y": -270
},
{
"x": 138,
"y": -168
}
],
"fill_color": "#CF735F",
"outline_color": "#332B45",
"outline_width": 4,
"closed": true,
"vertex_flags": [
0,
0,
0
],
"reshaped": false
},
{
"shape_type": "polygon",
"points": [
{
"x": -24,
"y": -246
},
{
"x": 24,
"y": -246
},
{
"x": 24,
"y": -177
},
{
"x": -24,
"y": -177
}
],
"fill_color": "#F3E3B2",
"outline_color": "#332B45",
"outline_width": 4,
"closed": true,
"vertex_flags": [
0,
0,
0,
0
],
"reshaped": false
},
{
"shape_type": "polygon",
"points": [
{
"x": -20,
"y": -242
},
{
"x": 20,
"y": -242
},
{
"x": 20,
"y": -181
},
{
"x": -20,
"y": -181
}
],
"fill_color": "#85ADBC",
"outline_color": "#332B45",
"outline_width": 4,
"closed": true,
"vertex_flags": [
0,
0,
0,
0
],
"reshaped": false
},
{
"shape_type": "polygon",
"points": [
{
"x": -88,
"y": -124
},
{
"x": -28,
"y": -124
},
{
"x": -28,
"y": -38
},
{
"x": -88,
"y": -38
}
],
"fill_color": "#E9D6A9",
"outline_color": "#332B45",
"outline_width": 4,
"closed": true,
"vertex_flags": [
0,
0,
0,
0
],
"reshaped": false
},
{
"shape_type": "polygon",
"points": [
{
"x": 28,
"y": -124
},
{
"x": 88,
"y": -124
},
{
"x": 88,
"y": -38
},
{
"x": 28,
"y": -38
}
],
"fill_color": "#E9D6A9",
"outline_color": "#332B45",
"outline_width": 4,
"closed": true,
"vertex_flags": [
0,
0,
0,
0
],
"reshaped": false
},
{
"shape_type": "polygon",
"points": [
{
"x": -78,
"y": -113
},
{
"x": -38,
"y": -113
},
{
"x": -38,
"y": -49
},
{
"x": -78,
"y": -49
}
],
"fill_color": "#B9DFE3",
"outline_color": "#332B45",
"outline_width": 4,
"closed": true,
"vertex_flags": [
0,
0,
0,
0
],
"reshaped": false
},
{
"shape_type": "polygon",
"points": [
{
"x": 38,
"y": -113
},
{
"x": 78,
"y": -113
},
{
"x": 78,
"y": -49
},
{
"x": 38,
"y": -49
}
],
"fill_color": "#B9DFE3",
"outline_color": "#332B45",
"outline_width": 4,
"closed": true,
"vertex_flags": [
0,
0,
0,
0
],
"reshaped": false
},
{
"shape_type": "line",
"points": [
{
"x": -58,
"y": -113
},
{
"x": -58,
"y": -49
}
],
"fill_color": "#00000000",
"outline_color": "#E9D6A9",
"outline_width": 4,
"closed": false,
"vertex_flags": [
0,
0
],
"reshaped": false
},
{
"shape_type": "line",
"points": [
{
"x": 58,
"y": -113
},
{
"x": 58,
"y": -49
}
],
"fill_color": "#00000000",
"outline_color": "#E9D6A9",
"outline_width": 4,
"closed": false,
"vertex_flags": [
0,
0
],
"reshaped": false
},
{
"shape_type": "polygon",
"points": [
{
"x": -36,
"y": -10
},
{
"x": 36,
"y": -10
},
{
"x": 36,
"y": 120
},
{
"x": -36,
"y": 120
}
],
"fill_color": "#8A6273",
"outline_color": "#332B45",
"outline_width": 4,
"closed": true,
"vertex_flags": [
0,
0,
0,
0
],
"reshaped": false
},
{
"shape_type": "polygon",
"points": [
{
"x": 27.0,
"y": 61.0
},
{
"x": 26.62,
"y": 62.91
},
{
"x": 25.54,
"y": 64.54
},
{
"x": 23.91,
"y": 65.62
},
{
"x": 22.0,
"y": 66.0
},
{
"x": 20.09,
"y": 65.62
},
{
"x": 18.46,
"y": 64.54
},
{
"x": 17.38,
"y": 62.91
},
{
"x": 17.0,
"y": 61.0
},
{
"x": 17.38,
"y": 59.09
},
{
"x": 18.46,
"y": 57.46
},
{
"x": 20.09,
"y": 56.38
},
{
"x": 22.0,
"y": 56.0
},
{
"x": 23.91,
"y": 56.38
},
{
"x": 25.54,
"y": 57.46
},
{
"x": 26.62,
"y": 59.09
}
],
"fill_color": "#F5D98B",
"outline_color": "#F5D98B",
"outline_width": 1,
"closed": true,
"vertex_flags": [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
],
"reshaped": false
},
{
"shape_type": "polygon",
"points": [
{
"x": -128,
"y": 109
},
{
"x": 128,
"y": 109
},
{
"x": 128,
"y": 128
},
{
"x": -128,
"y": 128
}
],
"fill_color": "#E8B38A",
"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": "none",
"metadata": {
"created_at": "2026-10-21T21:40:03",
"modified_at": "2026-10-21T21:40:03"
},
"prop_name": "Town House",
"shapes": [
{
"closed": true,
"fill_color": "#B3C99C",
"outline_color": "#332B45",
"outline_width": 27.3735711442786,
"points": [
{
"x": -807.520385742188,
"y": -732.243041992188
},
{
"x": 807.520385742188,
"y": -732.243041992188
},
{
"x": 807.520385742188,
"y": 1307.08801269531
},
{
"x": -807.520385742188,
"y": 1307.08801269531
}
],
"reshaped": false,
"shape_type": "polygon",
"vertex_flags": [
0,
0,
0,
0
]
},
{
"closed": true,
"fill_color": "#CF735F",
"outline_color": "#332B45",
"outline_width": 27.3735711442786,
"points": [
{
"x": -944.38818359375,
"y": -663.80908203125
},
{
"x": 0.0,
"y": -1361.83520507813
},
{
"x": 944.38818359375,
"y": -663.80908203125
}
],
"reshaped": false,
"shape_type": "polygon",
"vertex_flags": [
0,
0,
0
]
},
{
"closed": true,
"fill_color": "#F3E3B2",
"outline_color": "#332B45",
"outline_width": 27.3735711442786,
"points": [
{
"x": -164.241424560547,
"y": -1197.59375
},
{
"x": 164.241424560547,
"y": -1197.59375
},
{
"x": 164.241424560547,
"y": -725.399658203125
},
{
"x": -164.241424560547,
"y": -725.399658203125
}
],
"reshaped": false,
"shape_type": "polygon",
"vertex_flags": [
0,
0,
0,
0
]
},
{
"closed": true,
"fill_color": "#85ADBC",
"outline_color": "#332B45",
"outline_width": 27.3735711442786,
"points": [
{
"x": -136.867858886719,
"y": -1170.22021484375
},
{
"x": 136.867858886719,
"y": -1170.22021484375
},
{
"x": 136.867858886719,
"y": -752.773193359375
},
{
"x": -136.867858886719,
"y": -752.773193359375
}
],
"reshaped": false,
"shape_type": "polygon",
"vertex_flags": [
0,
0,
0,
0
]
},
{
"closed": true,
"fill_color": "#E9D6A9",
"outline_color": "#332B45",
"outline_width": 27.3735711442786,
"points": [
{
"x": -602.218566894531,
"y": -362.699829101563
},
{
"x": -191.615005493164,
"y": -362.699829101563
},
{
"x": -191.615005493164,
"y": 225.831939697266
},
{
"x": -602.218566894531,
"y": 225.831939697266
}
],
"reshaped": false,
"shape_type": "polygon",
"vertex_flags": [
0,
0,
0,
0
]
},
{
"closed": true,
"fill_color": "#E9D6A9",
"outline_color": "#332B45",
"outline_width": 27.3735711442786,
"points": [
{
"x": 191.615005493164,
"y": -362.699829101563
},
{
"x": 602.218566894531,
"y": -362.699829101563
},
{
"x": 602.218566894531,
"y": 225.831939697266
},
{
"x": 191.615005493164,
"y": 225.831939697266
}
],
"reshaped": false,
"shape_type": "polygon",
"vertex_flags": [
0,
0,
0,
0
]
},
{
"closed": true,
"fill_color": "#B9DFE3",
"outline_color": "#332B45",
"outline_width": 27.3735711442786,
"points": [
{
"x": -533.78466796875,
"y": -287.422546386719
},
{
"x": -260.048919677734,
"y": -287.422546386719
},
{
"x": -260.048919677734,
"y": 150.554595947266
},
{
"x": -533.78466796875,
"y": 150.554595947266
}
],
"reshaped": false,
"shape_type": "polygon",
"vertex_flags": [
0,
0,
0,
0
]
},
{
"closed": true,
"fill_color": "#B9DFE3",
"outline_color": "#332B45",
"outline_width": 27.3735711442786,
"points": [
{
"x": 260.048919677734,
"y": -287.422546386719
},
{
"x": 533.78466796875,
"y": -287.422546386719
},
{
"x": 533.78466796875,
"y": 150.554595947266
},
{
"x": 260.048919677734,
"y": 150.554595947266
}
],
"reshaped": false,
"shape_type": "polygon",
"vertex_flags": [
0,
0,
0,
0
]
},
{
"closed": false,
"fill_color": "#00000000",
"outline_color": "#E9D6A9",
"outline_width": 27.3735711442786,
"points": [
{
"x": -396.916778564453,
"y": -287.422546386719
},
{
"x": -396.916778564453,
"y": 150.554595947266
}
],
"reshaped": false,
"shape_type": "line",
"vertex_flags": [
0,
0
]
},
{
"closed": false,
"fill_color": "#00000000",
"outline_color": "#E9D6A9",
"outline_width": 27.3735711442786,
"points": [
{
"x": 396.916778564453,
"y": -287.422546386719
},
{
"x": 396.916778564453,
"y": 150.554595947266
}
],
"reshaped": false,
"shape_type": "line",
"vertex_flags": [
0,
0
]
},
{
"closed": true,
"fill_color": "#8A6273",
"outline_color": "#332B45",
"outline_width": 27.3735711442786,
"points": [
{
"x": -246.36213684082,
"y": 417.446929931641
},
{
"x": 246.36213684082,
"y": 417.446929931641
},
{
"x": 246.36213684082,
"y": 1307.08801269531
},
{
"x": -246.36213684082,
"y": 1307.08801269531
}
],
"reshaped": false,
"shape_type": "polygon",
"vertex_flags": [
0,
0,
0,
0
]
},
{
"closed": true,
"fill_color": "#F5D98B",
"outline_color": "#F5D98B",
"outline_width": 6.84339278606966,
"points": [
{
"x": 184.771606445313,
"y": 903.327819824219
},
{
"x": 182.171127319336,
"y": 916.398681640625
},
{
"x": 174.780258178711,
"y": 927.553466796875
},
{
"x": 163.625518798828,
"y": 934.9443359375
},
{
"x": 150.554641723633,
"y": 937.544799804688
},
{
"x": 137.483764648438,
"y": 934.9443359375
},
{
"x": 126.329025268555,
"y": 927.553466796875
},
{
"x": 118.938163757324,
"y": 916.398681640625
},
{
"x": 116.337677001953,
"y": 903.327819824219
},
{
"x": 118.938163757324,
"y": 890.256958007813
},
{
"x": 126.329025268555,
"y": 879.102172851563
},
{
"x": 137.483764648438,
"y": 871.711364746094
},
{
"x": 150.554641723633,
"y": 869.11083984375
},
{
"x": 163.625518798828,
"y": 871.711364746094
},
{
"x": 174.780258178711,
"y": 879.102172851563
},
{
"x": 182.171127319336,
"y": 890.256958007813
}
],
"reshaped": false,
"shape_type": "polygon",
"vertex_flags": [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
},
{
"closed": true,
"fill_color": "#E8B38A",
"outline_color": "#332B45",
"outline_width": 27.3735711442786,
"points": [
{
"x": -875.954284667969,
"y": 1231.81066894531
},
{
"x": 875.954284667969,
"y": 1231.81066894531
},
{
"x": 875.954284667969,
"y": 1361.83520507813
},
{
"x": -875.954284667969,
"y": 1361.83520507813
}
],
"reshaped": false,
"shape_type": "polygon",
"vertex_flags": [
0,
0,
0,
0
]
}
],
"tags": [
"buildings"
],
"version": "1.1"
}