Closed lordee closed 4 years ago
Unsure how this would work with gdscript, but it allows anonymous access to the fields from the .map file instead of discarding it when using c#:
Spatial entitySpawns = GetNode("/root/Path/To/QodotMap/Entity Spawns") as Spatial; Godot.Collections.Array ents = entitySpawns.GetChildren(); foreach(Spatial ent in ents) { Godot.Collections.Dictionary fields = ent.Get("properties") as Godot.Collections.Dictionary; }
This looks good, merged.
Unsure how this would work with gdscript, but it allows anonymous access to the fields from the .map file instead of discarding it when using c#:
Spatial entitySpawns = GetNode("/root/Path/To/QodotMap/Entity Spawns") as Spatial; Godot.Collections.Array ents = entitySpawns.GetChildren(); foreach(Spatial ent in ents) { Godot.Collections.Dictionary fields = ent.Get("properties") as Godot.Collections.Dictionary; }