Initial commit — Station 0 vertical slice in progress
Includes full design documentation (ARCHITECTURE, DESIGN_NOTES, CONTENT_SPEC, PRODUCTION_NOTES) and active Godot 4 / GDScript codebase. Core systems built: player, floor generation, room system, enemy base, body part upgrades, run manager, save system, HUD, EventBus.
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
extends Node
|
||||
|
||||
# All lore IDs the player has discovered — never lost on death
|
||||
var discovered: Array[String] = []
|
||||
|
||||
func discover(lore_id: String) -> void:
|
||||
if lore_id not in discovered:
|
||||
discovered.append(lore_id)
|
||||
EventBus.lore_discovered.emit(lore_id)
|
||||
|
||||
func has_discovered(lore_id: String) -> bool:
|
||||
return lore_id in discovered
|
||||
|
||||
func get_save_data() -> Array:
|
||||
return discovered.duplicate()
|
||||
|
||||
func load_save_data(data: Array) -> void:
|
||||
discovered.clear()
|
||||
for entry in data:
|
||||
discovered.append(str(entry))
|
||||
Reference in New Issue
Block a user