Add starter RV progression and fishing feedback
This commit is contained in:
parent
eed361681a
commit
d8bf59bca0
47 changed files with 2268 additions and 467 deletions
|
|
@ -10,6 +10,9 @@ const PlayerStorageInteractionType = preload(
|
|||
const DecorShopInteractionType = preload(
|
||||
"res://world/decor_shop_interaction.gd"
|
||||
)
|
||||
const RVUpgradeInteractionType = preload(
|
||||
"res://world/rv_upgrade_interaction.gd"
|
||||
)
|
||||
const WorldLayoutType = preload("res://world/world_layout.gd")
|
||||
const GENERATED_REGION_SCENE: PackedScene = preload(
|
||||
"res://world/generation/generated_world_region.tscn"
|
||||
|
|
@ -75,6 +78,10 @@ func get_decor_shop() -> DecorShopInteractionType:
|
|||
return _active_region.get_decor_shop()
|
||||
|
||||
|
||||
func get_rv_upgrade_shop() -> RVUpgradeInteractionType:
|
||||
return _active_region.get_rv_upgrade_shop()
|
||||
|
||||
|
||||
func get_player_spawn_transform() -> Transform3D:
|
||||
return _active_region.get_player_spawn_transform()
|
||||
|
||||
|
|
@ -170,10 +177,29 @@ func get_saltwater_shoreline_mesh() -> MeshInstance3D:
|
|||
func get_spawn_surface_triangles(
|
||||
material_names: Array[StringName],
|
||||
minimum_global_y: float,
|
||||
minimum_up_dot: float = 0.6,
|
||||
maximum_global_y: float = 100.0,
|
||||
) -> Array[PackedVector3Array]:
|
||||
return _active_region.get_spawn_surface_triangles(
|
||||
material_names,
|
||||
minimum_global_y,
|
||||
minimum_up_dot,
|
||||
maximum_global_y,
|
||||
)
|
||||
|
||||
|
||||
func get_saltwater_surface_height() -> float:
|
||||
return (
|
||||
_active_region.get_saltwater_surface_height()
|
||||
if _active_region != null
|
||||
else NAN
|
||||
)
|
||||
|
||||
|
||||
func is_home_exterior_position_accessible(position: Vector3) -> bool:
|
||||
return (
|
||||
_active_region != null
|
||||
and _active_region.is_home_exterior_position_accessible(position)
|
||||
)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue