How to read .ini with values owning fields
I am implementing a code where I'm trying to read data from a custom.ini as the following: [/scripts/commands] command=(type="Skill",name="BasicAttack",label="Basic Attack",description="Execute a basic attack",skill="TestSkill")
Unfortunatelly, I've not found any way to parse the value other than FString... I can implement a logic to parse that data in a TMap, but I'm guessing if there is any built-in implementation we can use in that case.
asked May 30 '17 at 01:24 AM in C++ Programming
Check how [/Script/Cascade.CascadeConfiguration] from BaseEditor.ini is made. I think You just have to make a struct:
then you need a field in your class:
Your class is:
To learn how structs in config files are parse, I think you need to check how it works in GConfig under the hood...
answered Jun 02 '17 at 11:23 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here