laingawbl / circular

I'm not sure
Other
0 stars 0 forks source link

C2: `godot::ConfigFile` analogue #3

Closed laingawbl closed 1 year ago

laingawbl commented 1 year ago

World takes in a set of initial condition info ("ICs") when constructed. We need some data class that represents this info. I think the godot::ConfigFile worked well for this in pan-gaia. To avoid introducing a GD depdency into circular (as it's explicitly RefCounted and not a variant class), we would like some lightweight analogue without ref-counting or reference to the filesystem.

What

Expose a ConfigMap class that can be mapped 1:1 to a godot::ConfigFile. You do not need to provide the method to do this, as andrija will handle it. You also do not need to implement the load_ / save_ / parse methods in ConfigFile. There are 9 methods besides this in ConfigFile's public interface.

Notes

Well.. what should ConfigMap do?