2023-12-19 00:15:48 +02:00
|
|
|
[gd_scene load_steps=10 format=3 uid="uid://bswgmclohuqui"]
|
2023-12-09 22:45:18 +02:00
|
|
|
|
|
|
|
[ext_resource type="Script" path="res://content/system/room/room.gd" id="1_fccq0"]
|
|
|
|
[ext_resource type="Script" path="res://content/functions/clickable.gd" id="1_ugebq"]
|
2023-12-09 23:50:23 +02:00
|
|
|
[ext_resource type="Material" uid="uid://bbx6fv7jq50tr" path="res://content/system/room/walls.tres" id="3_al1ev"]
|
2023-12-19 00:15:48 +02:00
|
|
|
[ext_resource type="Script" path="res://lib/utils/state_machine/state_machine.gd" id="4_nbbo6"]
|
|
|
|
[ext_resource type="Script" path="res://content/system/room/states/view.gd" id="6_g066t"]
|
|
|
|
[ext_resource type="Script" path="res://content/system/room/states/edit.gd" id="7_ap14h"]
|
2023-12-09 22:45:18 +02:00
|
|
|
|
|
|
|
[sub_resource type="WorldBoundaryShape3D" id="WorldBoundaryShape3D_08sv0"]
|
|
|
|
|
|
|
|
[sub_resource type="ArrayMesh" id="ArrayMesh_7dibq"]
|
|
|
|
|
2023-12-11 16:24:10 +02:00
|
|
|
[sub_resource type="WorldBoundaryShape3D" id="WorldBoundaryShape3D_ap613"]
|
2023-12-19 00:15:48 +02:00
|
|
|
plane = Plane(0, -1, 0, 0)
|
2023-12-11 16:24:10 +02:00
|
|
|
|
2023-12-09 22:45:18 +02:00
|
|
|
[node name="Room" type="Node3D"]
|
|
|
|
script = ExtResource("1_fccq0")
|
|
|
|
|
2023-12-19 00:15:48 +02:00
|
|
|
[node name="Floor" type="StaticBody3D" parent="."]
|
2023-12-09 22:45:18 +02:00
|
|
|
collision_layer = 24
|
|
|
|
collision_mask = 0
|
|
|
|
|
2023-12-19 00:15:48 +02:00
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="Floor"]
|
2023-12-09 22:45:18 +02:00
|
|
|
shape = SubResource("WorldBoundaryShape3D_08sv0")
|
|
|
|
|
2023-12-19 00:15:48 +02:00
|
|
|
[node name="Clickable" type="Node" parent="Floor"]
|
2023-12-09 22:45:18 +02:00
|
|
|
script = ExtResource("1_ugebq")
|
|
|
|
|
|
|
|
[node name="WallMesh" type="MeshInstance3D" parent="."]
|
|
|
|
material_override = ExtResource("3_al1ev")
|
|
|
|
mesh = SubResource("ArrayMesh_7dibq")
|
|
|
|
|
|
|
|
[node name="WallCollisions" type="Node3D" parent="."]
|
2023-12-11 16:24:10 +02:00
|
|
|
|
2023-12-19 00:15:48 +02:00
|
|
|
[node name="Ceiling" type="StaticBody3D" parent="."]
|
|
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2, 0)
|
|
|
|
collision_layer = 24
|
2023-12-11 16:24:10 +02:00
|
|
|
collision_mask = 0
|
|
|
|
|
2023-12-19 00:15:48 +02:00
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="Ceiling"]
|
2023-12-11 16:24:10 +02:00
|
|
|
shape = SubResource("WorldBoundaryShape3D_ap613")
|
2023-12-19 00:15:48 +02:00
|
|
|
disabled = true
|
|
|
|
|
|
|
|
[node name="Clickable" type="Node" parent="Ceiling"]
|
|
|
|
script = ExtResource("1_ugebq")
|
|
|
|
|
|
|
|
[node name="WallCorners" type="Node3D" parent="Ceiling"]
|
|
|
|
|
|
|
|
[node name="WallEdges" type="Node3D" parent="Ceiling"]
|
|
|
|
|
|
|
|
[node name="StateMachine" type="Node" parent="." node_paths=PackedStringArray("current_state")]
|
|
|
|
script = ExtResource("4_nbbo6")
|
|
|
|
current_state = NodePath("View")
|
|
|
|
|
|
|
|
[node name="View" type="Node" parent="StateMachine"]
|
|
|
|
script = ExtResource("6_g066t")
|
|
|
|
|
|
|
|
[node name="Edit" type="Node" parent="StateMachine"]
|
|
|
|
script = ExtResource("7_ap14h")
|