1
0
Fork 0
mirror of https://github.com/tonytins/dressupzack synced 2025-05-08 14:14:48 -04:00
dressupzack/project/ImportItems.gd
Anthony Wilcox c93b416250 Removed Beyond outfit
-  WIP experiential JSON format for loading in new clothes
2019-06-08 17:09:19 -04:00

12 lines
No EOL
279 B
GDScript

extends Node
# export (String, FILE, "*.json") var item_file : String
func load_items(file_path) -> Dictionary:
var file = File.new()
assert file.file_exists(file_path)
file.open(file_path)
var items = parse_json(file.get_as_text())
assert items.size() > 0
return items