mirror of
https://github.com/tonytins/dressupzack
synced 2025-06-26 00:24:44 -04:00
Moved entire project to root
- Removed assets and publishing directories
This commit is contained in:
parent
4b37f6be3b
commit
8f6ab4592d
395 changed files with 0 additions and 823 deletions
14
scripts/ImportItems.gd
Normal file
14
scripts/ImportItems.gd
Normal file
|
@ -0,0 +1,14 @@
|
|||
# Anthony Wilcox licenses this file to you under the MPL license.
|
||||
# See the LICENSE file in the project root for more information.
|
||||
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