[gd_scene load_steps=10 format=3 uid="uid://dspysc2bld6eu"]

[ext_resource type="Script" uid="uid://dfnb036hysorj" path="res://src/core/level/level_loader.gd" id="1_kntr3"]
[ext_resource type="PackedScene" uid="uid://drr80goa61wrx" path="res://src/core/level/level_area.tscn" id="2_5mqkb"]
[ext_resource type="Script" uid="uid://3hlvt5k34xva" path="res://src/core/player_spawn_point.gd" id="3_aoi14"]
[ext_resource type="Script" uid="uid://dhrqjudaignuc" path="res://src/core/level/load_threshold_area.gd" id="3_mcc85"]
[ext_resource type="Script" uid="uid://dgsfc4i6bovwa" path="res://src/core/chapter/chapter_area.gd" id="4_sujqt"]

[sub_resource type="BoxShape3D" id="BoxShape3D_aoi14"]
size = Vector3(17, 9, 36)

[sub_resource type="BoxShape3D" id="BoxShape3D_5mqkb"]
size = Vector3(31, 19, 37)

[sub_resource type="BoxShape3D" id="BoxShape3D_mcc85"]
size = Vector3(4, 3, 0.5)

[sub_resource type="BoxShape3D" id="BoxShape3D_sujqt"]
size = Vector3(4, 3, 1)

[node name="ExpoCombined" type="Node"]

[node name="LevelLoaders" type="Node" parent="."]

[node name="OutsideArea" type="Marker3D" parent="LevelLoaders"]
script = ExtResource("1_kntr3")
scene_path = "uid://lraild3yetsh"
level_id = &"OutsideArea"
metadata/_custom_type_script = "uid://dfnb036hysorj"

[node name="EntranceHall" type="Marker3D" parent="LevelLoaders"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.3, 3.5, 33)
script = ExtResource("1_kntr3")
scene_path = "uid://cmdy6f6kesmbj"
level_id = &"EntranceHall"
metadata/_custom_type_script = "uid://dfnb036hysorj"

[node name="LevelAreas" type="Node" parent="."]

[node name="OutsideArea" parent="LevelAreas" node_paths=PackedStringArray("level_loader", "loaded_if_spawnpoint") instance=ExtResource("2_5mqkb")]
level_loader = NodePath("../../LevelLoaders/OutsideArea")
loaded_if_spawnpoint = [NodePath("../../Spawnpoints/OutsideSpawnPoint")]

[node name="CollisionShape3D" type="CollisionShape3D" parent="LevelAreas/OutsideArea"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1, 4, 17.5)
shape = SubResource("BoxShape3D_aoi14")
debug_color = Color(1, 1, 0, 0.41960785)

[node name="EntranceHall" parent="LevelAreas" node_paths=PackedStringArray("level_loader", "loaded_if_spawnpoint") instance=ExtResource("2_5mqkb")]
level_loader = NodePath("../../LevelLoaders/EntranceHall")
loaded_if_spawnpoint = [NodePath("../../Spawnpoints/EntranceHallSpawnPoint")]

[node name="CollisionShape3D" type="CollisionShape3D" parent="LevelAreas/EntranceHall"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 9, 53)
shape = SubResource("BoxShape3D_5mqkb")
debug_color = Color(1, 1, 0, 0.41960785)

[node name="LevelLoadThresholds" type="Node" parent="."]

[node name="LevelThresholdArea" type="Area3D" parent="LevelLoadThresholds" node_paths=PackedStringArray("level_loaders")]
collision_layer = 0
collision_mask = 2
script = ExtResource("3_mcc85")
level_loaders = [NodePath("../../LevelLoaders/OutsideArea"), NodePath("../../LevelLoaders/EntranceHall")]
metadata/_custom_type_script = "uid://dhrqjudaignuc"

[node name="CollisionShape" type="CollisionShape3D" parent="LevelLoadThresholds/LevelThresholdArea"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.8, 5, 36.2)
shape = SubResource("BoxShape3D_mcc85")
debug_color = Color(1, 0.5176471, 0, 0.41960785)

[node name="CollisionShape2" type="CollisionShape3D" parent="LevelLoadThresholds/LevelThresholdArea"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.8, 5, 33)
shape = SubResource("BoxShape3D_mcc85")
debug_color = Color(1, 0.5176471, 0, 0.41960785)

[node name="Spawnpoints" type="Node" parent="."]

[node name="OutsideSpawnPoint" type="Marker3D" parent="Spawnpoints"]
transform = Transform3D(-1, 0, 8.742278e-08, 0, 1, 0, -8.742278e-08, 0, -1, 1, 1, 1)
script = ExtResource("3_aoi14")
metadata/_custom_type_script = "uid://3hlvt5k34xva"

[node name="EntranceHallSpawnPoint" type="Marker3D" parent="Spawnpoints"]
transform = Transform3D(-1, 0, 8.742278e-08, 0, 1, 0, -8.742278e-08, 0, -1, 0, 3.4999995, 44)
script = ExtResource("3_aoi14")
spawn_id = &"NoKnows"
metadata/_custom_type_script = "uid://3hlvt5k34xva"

[node name="Checkpoints" type="Node" parent="."]

[node name="CheckpointEntranceHall" type="Area3D" parent="Checkpoints"]
collision_layer = 0
collision_mask = 2
script = ExtResource("4_sujqt")
chapter_index = 1
spawn_id = &"NoKnows"
metadata/_custom_type_script = "uid://dgsfc4i6bovwa"

[node name="CollisionShape3D" type="CollisionShape3D" parent="Checkpoints/CheckpointEntranceHall"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.8, 5, 37)
shape = SubResource("BoxShape3D_sujqt")
debug_color = Color(0.970704, 0, 0.45613372, 0.41960785)
