2026-07-25 11:05:37 -04:00
|
|
|
extends Node3D
|
|
|
|
|
|
|
|
|
|
const FishingSpotType = preload("res://fishing/fishing_spot.gd")
|
2026-07-25 16:27:07 -04:00
|
|
|
const FishBuyerProfileType = preload("res://economy/fish_buyer_profile.gd")
|
2026-07-25 16:02:34 -04:00
|
|
|
const FishPoolType = preload("res://fish/fish_pool.gd")
|
2026-07-25 11:05:37 -04:00
|
|
|
const GameUIType = preload("res://ui/game_ui.gd")
|
|
|
|
|
const PlayerType = preload("res://player/player.gd")
|
|
|
|
|
|
2026-07-25 16:02:34 -04:00
|
|
|
@export var fish_catalog: FishPoolType
|
2026-07-25 16:27:07 -04:00
|
|
|
@export var pelican_buyer_profile: FishBuyerProfileType
|
2026-07-25 16:02:34 -04:00
|
|
|
|
2026-07-25 11:05:37 -04:00
|
|
|
@onready var _player: PlayerType = %Player
|
|
|
|
|
@onready var _fishing_spot: FishingSpotType = %FishingSpot
|
|
|
|
|
@onready var _game_ui: GameUIType = %GameUI
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func _ready() -> void:
|
2026-07-25 16:27:07 -04:00
|
|
|
_player.fish_sale_service.setup(
|
|
|
|
|
_player.inventory,
|
|
|
|
|
_player.wallet
|
|
|
|
|
)
|
2026-07-25 15:15:24 -04:00
|
|
|
_fishing_spot.setup(
|
|
|
|
|
_player,
|
|
|
|
|
_player.inventory,
|
|
|
|
|
_player.collection_log
|
|
|
|
|
)
|
2026-07-25 16:02:34 -04:00
|
|
|
_game_ui.setup(
|
|
|
|
|
_player,
|
|
|
|
|
_player.inventory,
|
|
|
|
|
_player.collection_log,
|
2026-07-25 16:27:07 -04:00
|
|
|
_player.wallet,
|
|
|
|
|
_player.fish_sale_service,
|
|
|
|
|
pelican_buyer_profile,
|
2026-07-25 16:02:34 -04:00
|
|
|
fish_catalog,
|
|
|
|
|
_fishing_spot
|
|
|
|
|
)
|