mirror of
https://github.com/tonytins/dressupzack
synced 2025-12-18 21:04:43 -05:00
Removed Beyond outfit
- WIP experiential JSON format for loading in new clothes
This commit is contained in:
parent
78872e68a0
commit
c93b416250
10 changed files with 87 additions and 491 deletions
12
project/ImportItems.gd
Normal file
12
project/ImportItems.gd
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue