[gd_scene load_steps=8 format=3]

[ext_resource type="Script" path="res://world/water_body_authoring.gd" id="1_authoring"]
[ext_resource type="Script" path="res://world/fishable_water_region.gd" id="2_fishing"]
[ext_resource type="Script" path="res://world/player_water_trigger.gd" id="3_recovery"]
[ext_resource type="Material" path="res://world/materials/stylized_water.tres" id="4_water"]

[sub_resource type="PlaneMesh" id="WaterSurfaceMesh"]
resource_local_to_scene = true
size = Vector2(10, 10)

[sub_resource type="BoxShape3D" id="FishingVolumeShape"]
resource_local_to_scene = true
size = Vector3(10, 4, 10)

[sub_resource type="BoxShape3D" id="RecoveryVolumeShape"]
resource_local_to_scene = true
size = Vector3(10, 4.8, 10)

[node name="WaterBody" type="Node3D"]
script = ExtResource("1_authoring")
water_material = ExtResource("4_water")

[node name="VisualWater" type="MeshInstance3D" parent="."]
cast_shadow = 0
material_override = ExtResource("4_water")
mesh = SubResource("WaterSurfaceMesh")

[node name="FishingRegion" type="Area3D" parent="."]
collision_layer = 4
collision_mask = 0
monitoring = false
script = ExtResource("2_fishing")
surface_height_mode = 1

[node name="Shape" type="CollisionShape3D" parent="FishingRegion"]
position = Vector3(0, -2, 0)
shape = SubResource("FishingVolumeShape")

[node name="RecoveryRegion" type="Area3D" parent="."]
position = Vector3(0, -2.4, 0)
collision_layer = 8
collision_mask = 2
script = ExtResource("3_recovery")
surface_height_mode = 1

[node name="Shape" type="CollisionShape3D" parent="RecoveryRegion"]
shape = SubResource("RecoveryVolumeShape")
