QodotPlugin / qodot-plugin

(LEGACY) Quake .map support for Godot 3.x
MIT License
960 stars 70 forks source link

maintain entity fields so they are easily accessible through godot #68

Closed lordee closed 4 years ago

lordee commented 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; }

Shfty commented 4 years ago

This looks good, merged.