17 lines
610 B
GDScript
17 lines
610 B
GDScript
class_name SavedGame
|
|
extends Resource
|
|
# This is the main SaveGame that collects all data to save
|
|
# It saves all player data and other nodes in the world, quest progress, etc.
|
|
|
|
# Player info to save
|
|
@export var player_money : int = 0
|
|
@export var party: Array[MonsterData] = []
|
|
@export var monster_storage: 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] = []
|