Closed Zaraka closed 2 years ago
This isn't idiomatic with the rest of the TB game config, so can't be merged as-is.
A face attribute default should be a resource type (as with surface flags, content flags, etc.) that encodes the possible values it can hold in the final config file using the corresponding Godot types.
The idea being that:
A. The user shouldn't be required to know the TB config format in order to configure it from the inspector
B. Options should be represented by the approriate control in the inspector (export(Dictionary)
should be avoided, since the UI for it is pretty clunky)
I've created a new TrenchBroomFaceAttribDefaults Resource with all the attributes I could found over GameConfigParser.cpp in Trenchbroom. Attribute types are defined in Godot format but exported to Trenchbroom format. I have not tested surfaceContents, surfaceFlags, surfaceValue, and color as I'm not sure what they should do.
will this ever be merged?
I was dazzled why qodot doesn't use JSON class so I used it as a demonstration