freettrpg/scripts/content.gd
Patrick_Pluto 6b2159b840 Code Refactoring: Part 2
Hopefully final refactoring, offloaded ui scripts to its own global .gd to prevent repetition.
2024-06-19 18:27:40 +02:00

12 lines
316 B
GDScript

extends Node
# Variable to store the path from which JSON data is loaded
var loadPath
# Variable to store the loaded JSON data
var data
# Currently placeholder function, to be deprecated once custom content loading is enabled.
func _ready():
loadPath = "res://content/stats.json"
data = Load.loadJSON(loadPath)