Added ability to delete nodes from editor, added complete node load and save for the DSL
This commit is contained in:
@@ -85,13 +85,13 @@ public partial class ResourceLoader
|
||||
return symbols;
|
||||
}
|
||||
|
||||
public static Dictionary<string, ItemData> LoadItems()
|
||||
public static SortedDictionary<string, ItemData> LoadItems()
|
||||
{
|
||||
|
||||
FileAccess file = FileAccess.Open("res://Assets/Recipes.json", FileAccess.ModeFlags.Read);
|
||||
string json = file.GetAsText();
|
||||
|
||||
Dictionary<string, ItemData> result = new();
|
||||
SortedDictionary<string, ItemData> result = new();
|
||||
|
||||
List<ItemData> items = JsonSerializer.Deserialize<List<ItemData>>(json);
|
||||
foreach (ItemData item in items)
|
||||
|
||||
Reference in New Issue
Block a user