Add networked crab gathering prototype

This commit is contained in:
Alexander Sellite 2026-08-14 22:11:49 -04:00
parent f55663c105
commit a62cce6404
56 changed files with 2692 additions and 56 deletions

View file

@ -3,23 +3,48 @@ extends RefCounted
const FishDataType = preload("res://fish/fish_data.gd")
enum Category {
FRESH_WATER,
SALT_WATER,
OTHER,
SHELLFISH,
}
static func category_for(fish: FishDataType) -> WaterType.Type:
static func category_for(fish: FishDataType) -> Category:
if fish == null:
return WaterType.Type.OTHER
return fish.get_primary_water_type()
static func category_label(category: WaterType.Type) -> String:
return WaterType.label(category)
static func empty_state(category: WaterType.Type) -> String:
match category:
return Category.OTHER
if fish.logbook_section == FishDataType.LogbookSection.SHELLFISH:
return Category.SHELLFISH
match fish.get_primary_water_type():
WaterType.Type.FRESH_WATER:
return "No freshwater catches cataloged yet."
return Category.FRESH_WATER
WaterType.Type.SALT_WATER:
return Category.SALT_WATER
_:
return Category.OTHER
static func category_label(category: Category) -> String:
match category:
Category.FRESH_WATER:
return "Fresh Water"
Category.SALT_WATER:
return "Salt Water"
Category.SHELLFISH:
return "Shellfish"
_:
return "Misc"
static func empty_state(category: Category) -> String:
match category:
Category.FRESH_WATER:
return "No freshwater catches cataloged yet."
Category.SALT_WATER:
return "No saltwater catches cataloged yet."
Category.SHELLFISH:
return "No shellfish cataloged yet."
_:
return "No entries available."