master
chendian 2 years ago
parent 158a1fa6fc
commit 4e664e4785

File diff suppressed because one or more lines are too long

@ -1,6 +1,49 @@
[gd_scene load_steps=2 format=3 uid="uid://b3rp0a5do2mm6"]
[gd_scene load_steps=15 format=3 uid="uid://b3rp0a5do2mm6"]
[ext_resource type="Script" path="res://script/editor_tool/mesh_lib.gd" id="1_7xp6b"]
[ext_resource type="PackedScene" uid="uid://d1lh6ere14pny" path="res://resource/mesh_library/block_full.tscn" id="2_xn8cf"]
[ext_resource type="ArrayMesh" uid="uid://43lv5hser7jg" path="res://resource/mesh_level/f_block_air.vox" id="3_rgsxo"]
[ext_resource type="ArrayMesh" uid="uid://dbaxh8tjqojop" path="res://resource/mesh_level/f_block_center.vox" id="4_l6isk"]
[ext_resource type="ArrayMesh" uid="uid://dpfp554wuwtom" path="res://resource/mesh_level/f_block_corner.vox" id="5_0rc2s"]
[ext_resource type="ArrayMesh" uid="uid://b828kv8ly5aef" path="res://resource/mesh_level/f_block_edge.vox" id="6_7adng"]
[ext_resource type="PackedScene" uid="uid://ceyw37iyt3ye5" path="res://resource/mesh_library/block_half.tscn" id="7_2wb1i"]
[ext_resource type="ArrayMesh" uid="uid://cr0oere8ykvyw" path="res://resource/mesh_level/h_block_center_half.vox" id="8_4npd3"]
[ext_resource type="ArrayMesh" uid="uid://cmei6mojx4han" path="res://resource/mesh_level/h_wood_floor1.vox" id="9_loom3"]
[ext_resource type="ArrayMesh" uid="uid://dxhtmci2c1kn4" path="res://resource/mesh_level/h_wood_floor2.vox" id="10_72s0a"]
[ext_resource type="PackedScene" uid="uid://bb3rddqjm47aw" path="res://resource/mesh_library/block_empty.tscn" id="11_ppx7j"]
[ext_resource type="ArrayMesh" uid="uid://48vrhuyvto7c" path="res://resource/mesh_level/n_empty.vox" id="12_ggfpd"]
[ext_resource type="ArrayMesh" uid="uid://h5otvw5f0irr" path="res://resource/mesh_level/s_window1.vox" id="13_yyvao"]
[ext_resource type="ArrayMesh" uid="uid://ka07hfn33kq0" path="res://resource/mesh_level/s_window2.vox" id="14_t7xve"]
[node name="MeshLib" type="Node3D"]
script = ExtResource("1_7xp6b")
[node name="f_block_air" parent="." instance=ExtResource("2_xn8cf")]
mesh = ExtResource("3_rgsxo")
[node name="f_block_center" parent="." instance=ExtResource("2_xn8cf")]
mesh = ExtResource("4_l6isk")
[node name="f_block_corner" parent="." instance=ExtResource("2_xn8cf")]
mesh = ExtResource("5_0rc2s")
[node name="f_block_edge" parent="." instance=ExtResource("2_xn8cf")]
mesh = ExtResource("6_7adng")
[node name="h_block_center_half" parent="." instance=ExtResource("7_2wb1i")]
mesh = ExtResource("8_4npd3")
[node name="h_wood_floor1" parent="." instance=ExtResource("7_2wb1i")]
mesh = ExtResource("9_loom3")
[node name="h_wood_floor2" parent="." instance=ExtResource("7_2wb1i")]
mesh = ExtResource("10_72s0a")
[node name="n_empty" parent="." instance=ExtResource("11_ppx7j")]
mesh = ExtResource("12_ggfpd")
[node name="s_window1" parent="." instance=ExtResource("11_ppx7j")]
mesh = ExtResource("13_yyvao")
[node name="s_window2" parent="." instance=ExtResource("11_ppx7j")]
mesh = ExtResource("14_t7xve")

@ -33,4 +33,4 @@ cell_size = Vector3(0.64, 0.64, 0.64)
data = {
"cells": PackedInt32Array(0, 1, 917504, 0, 0, 917504, 19, 1, 917504, 19, 0, 917504, 19, 2, 0, 19, 3, 0, 19, 7, 917504, 19, 8, 0, 19, 9, 0, 19, 10, 0, 18, 10, 0, 17, 10, 0, 16, 10, 0, 0, 2, 917504, 0, 3, 917504, 0, 9, 917504, 0, 5, 917504, 0, 4, 917504, 15, 10, 0, 14, 10, 0, 13, 10, 0, 12, 10, 0, 11, 10, 0, 8, 10, 0, 7, 10, 0, 6, 10, 0, 5, 10, 0, 4, 10, 0, 3, 10, 0, 2, 10, 0, 1, 10, 0, 0, 10, 0, 0, 65535, 917504, 1, 65535, 917504, 2, 65535, 917504, 3, 65535, 917504, 4, 65535, 917504, 5, 65535, 917504, 6, 65535, 917504, 7, 65535, 917504, 8, 65535, 917504, 9, 65535, 917504, 12, 65535, 917504, 13, 65535, 917504, 14, 65535, 917504, 15, 65535, 917504, 16, 65535, 917504, 65549, 65535, 917507, 65550, 65535, 917507, 65551, 65535, 917507, 65552, 65535, 917507, 65553, 65535, 917507, 65554, 65535, 917507, 131084, 65535, 917507, 131085, 65535, 917507, 131086, 65535, 917507, 131087, 65535, 917507, 131088, 65535, 917507, 131089, 65535, 917507, 131090, 65535, 917507, 9, 10, 917504, 10, 10, 917504, 19, 6, 917504, 19, 5, 917504, 19, 4, 917504, 19, 65535, 917504, 18, 65535, 917504, 17, 65535, 917504, 11, 65535, 917504, 10, 65535, 917504, 0, 6, 917504, 0, 7, 917504, 0, 8, 917504, 65545, 65535, 917504, 131081, 65535, 917504, 131080, 65535, 917504, 131079, 65535, 917504, 131078, 65535, 917504, 131077, 65535, 917504, 131076, 65535, 917504, 131075, 65535, 917504, 131074, 65535, 917504, 131073, 65535, 917504, 131072, 65535, 917504, 65544, 65535, 917504, 65543, 65535, 917504, 65634, 7, 917504, 65542, 65535, 917504, 65541, 65535, 917504, 65540, 65535, 917504, 65538, 65535, 917504, 65537, 65535, 917504, 65536, 65535, 917504, 65539, 65535, 917504, 65547, 65535, 917507, 65546, 65535, 917507, 65548, 65535, 917507, 131083, 65535, 917507, 131082, 65535, 917507, 196609, 65535, 786432, 196610, 65535, 786432, 196613, 65535, 196608, 196616, 65535, 196608, 196615, 65535, 196608, 196612, 65535, 196608, 196611, 65535, 262144, 196614, 65535, 262144, 65555, 65535, 262144, 131091, 65535, 262144, 196627, 65535, 262144, 196618, 65535, 917507, 196619, 65535, 917507, 196620, 65535, 917507, 196621, 65535, 917507, 196622, 65535, 917507, 196623, 65535, 917507, 196624, 65535, 917507, 196625, 65535, 917507, 196626, 65535, 917507, 262163, 65535, 196608, 262162, 65535, 196608, 262161, 65535, 196608, 262160, 65535, 196608, 262159, 65535, 196608, 262158, 65535, 196608, 262157, 65535, 196608, 262156, 65535, 196608, 262155, 65535, 196608, 262154, 65535, 196608, 262150, 65535, 196608, 262151, 65535, 196608, 262152, 65535, 196608, 262153, 65535, 196608, 262149, 65535, 196608, 262148, 65535, 196608, 262147, 65535, 196608, 262144, 65535, 196608, 262145, 65535, 196608, 262146, 65535, 196608, 196608, 65535, 196608, 196617, 65535, 196608, 196615, 0, 786436, 196612, 0, 786436, 196609, 0, 786436, 196610, 0, 917508, 196613, 0, 917508, 196616, 0, 917508)
}
metadata/_editor_floor_ = Vector3(0, 0, 0)
metadata/_editor_floor_ = Vector3(0, 1, 0)

@ -11,6 +11,7 @@
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="Light"]
transform = Transform3D(0.707107, -0.5, 0.5, 0, 0.707107, 0.707107, -0.707107, -0.5, 0.5, 0, 0, 0)
shadow_enabled = true
[node name="Ground" type="CSGBox3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 6.4, -1, 7.2)
@ -21,6 +22,6 @@ size = Vector3(12.8, 2, 14.4)
mesh_library = ExtResource("2_fqw73")
cell_size = Vector3(0.64, 0.64, 0.64)
data = {
"cells": PackedInt32Array(19, 7, 917504, 19, 8, 917504, 19, 9, 0, 19, 10, 0, 0, 2, 917504, 0, 3, 917504, 0, 9, 917504, 0, 5, 917504, 0, 4, 917504, 0, 65535, 1376258, 1, 65535, 1376258, 2, 65535, 1376258, 3, 65535, 1376258, 4, 65535, 1376258, 5, 65535, 1376258, 6, 65535, 1376258, 7, 65535, 1376258, 12, 65535, 1376258, 13, 65535, 1376258, 14, 65535, 1376258, 15, 65535, 1376258, 16, 65535, 1376258, 17, 65535, 1376258, 18, 65535, 1376258, 19, 65535, 1376258, 19, 21, 2, 17, 21, 0, 18, 21, 0, 16, 21, 0, 15, 21, 0, 14, 21, 0, 13, 21, 0, 12, 21, 0, 7, 21, 0, 6, 21, 0, 5, 21, 0, 4, 21, 0, 3, 21, 0, 2, 21, 0, 1, 21, 0, 0, 21, 0, 0, 6, 917504, 0, 7, 917504, 0, 8, 917504, 11, 65535, 917504, 8, 65535, 917504, 19, 2, 917504, 19, 3, 917504, 19, 4, 917504, 19, 5, 917504, 19, 6, 917504)
"cells": PackedInt32Array(19, 7, 917504, 19, 8, 917504, 19, 9, 0, 19, 10, 0, 0, 2, 917504, 0, 3, 917504, 0, 9, 917504, 0, 5, 917504, 0, 4, 917504, 0, 65535, 1376258, 1, 65535, 1376258, 2, 65535, 1048582, 3, 65535, 1048582, 4, 65535, 1048582, 5, 65535, 1048582, 6, 65535, 1048582, 7, 65535, 1048582, 12, 65535, 1048582, 13, 65535, 1048582, 14, 65535, 1048582, 15, 65535, 1048582, 16, 65535, 1048582, 17, 65535, 1048582, 18, 65535, 1048582, 19, 65535, 1048582, 19, 21, 2, 17, 21, 0, 18, 21, 0, 16, 21, 0, 15, 21, 0, 14, 21, 0, 13, 21, 0, 12, 21, 0, 7, 21, 0, 6, 21, 0, 5, 21, 0, 4, 21, 0, 3, 21, 0, 2, 21, 0, 1, 21, 0, 0, 21, 0, 0, 6, 917504, 0, 7, 917504, 0, 8, 917504, 11, 65535, 1048582, 8, 65535, 917504, 19, 2, 917504, 19, 3, 917504, 19, 4, 917504, 19, 5, 917504, 19, 6, 917504, 1, 1, 1048587, 2, 1, 1048587, 3, 1, 1048587, 4, 1, 1048587, 5, 1, 1048587, 6, 1, 1048587, 7, 1, 1048587, 8, 1, 1048587, 9, 1, 1048587, 10, 1, 1048587, 11, 1, 1048587, 12, 1, 1048587, 13, 1, 1048587, 14, 1, 1048587, 15, 1, 1048587, 15, 0, 1048587, 16, 0, 1048586, 17, 0, 1048586, 17, 1, 1048587, 16, 1, 1048587, 18, 1, 1048587, 19, 1, 1048587, 14, 0, 1048586, 13, 0, 1048586, 12, 0, 1048586, 11, 0, 1048586, 10, 65535, 1048586, 9, 65535, 1048586, 10, 0, 1048586, 9, 0, 1048586, 8, 0, 1048586, 7, 0, 1048586, 6, 0, 1048586, 3, 0, 1048586, 2, 0, 1048586, 1, 0, 1048586, 4, 0, 1048586, 5, 0, 1048586, 18, 0, 1048586, 19, 0, 1048586, 0, 1, 1048586, 0, 0, 1048586)
}
metadata/_editor_floor_ = Vector3(0, 0, 0)

@ -24,5 +24,5 @@ func add(file_name_full:String,file_name:String):
template.name = resource_name
template.mesh = mesh
add_child(template)
template.owner = get_tree().edited_scene_root
template.owner = self
print(file_name)

Loading…
Cancel
Save