rewired signals and added savemanager and resource saving
This commit is contained in:
parent
0f5045dc22
commit
f694d5c4f8
13 changed files with 138 additions and 87 deletions
15
resources/save_game/save_game.gd
Normal file
15
resources/save_game/save_game.gd
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
class_name SavedGame
|
||||
extends Resource
|
||||
# This resource collects all data to save, from the player and other nodes
|
||||
|
||||
# Player info to save
|
||||
@export var player_money : int = 0
|
||||
@export var party: Array[MonsterData] = []
|
||||
|
||||
# Environment info to save (daytime, current world, weather)
|
||||
@export var world : String = ""
|
||||
@export var daytime : float = 12.0
|
||||
@export var weather : String = "this should be a global enum"
|
||||
|
||||
# All other nodes's data is collected here
|
||||
@export var saved_data: Array[SavedData] = []
|
||||
Loading…
Add table
Add a link
Reference in a new issue