freettrpg/scripts/content.gd

13 lines
316 B
GDScript3
Raw Normal View History

2024-06-18 19:17:42 +02:00
extends Node
2024-06-18 18:58:47 +02:00
# Variable to store the path from which JSON data is loaded
2024-06-18 19:17:42 +02:00
var loadPath
2024-06-18 18:58:47 +02:00
# Variable to store the loaded JSON data
2024-06-18 19:17:42 +02:00
var data
# Currently placeholder function, to be deprecated once custom content loading is enabled.
2024-06-18 19:17:42 +02:00
func _ready():
loadPath = "res://content/stats.json"
data = Load.loadJSON(loadPath)