FindValue for enum Fields
Posted: Thu Feb 17, 2022 7:26 am
Hi Tony,
Finally have some time to look at fixing some minor bugs with the save system's integration into my project. In particular, I'm looking to fix the active quest not displaying properly in my save metadata info.
I don't have the code in front of me right now but the basic gist of it is that I'm trying to check first the group field of the quest (this works as a simple GetFieldValue method) and then check the state is active(this is the part I'm having issues with). There's only one active quest a time in the group.
Is there a GetField equivalent to the enum field used by the quest state? If I can use something similar or a different method to get the state it should be an easy fix. Or perhaps I'm looking at this the wrong way.
Let me know if this sounds doable to you - I'll try to get my hands on the relevant code tomorrow if it'll help.
Thanks!
Finally have some time to look at fixing some minor bugs with the save system's integration into my project. In particular, I'm looking to fix the active quest not displaying properly in my save metadata info.
I don't have the code in front of me right now but the basic gist of it is that I'm trying to check first the group field of the quest (this works as a simple GetFieldValue method) and then check the state is active(this is the part I'm having issues with). There's only one active quest a time in the group.
Is there a GetField equivalent to the enum field used by the quest state? If I can use something similar or a different method to get the state it should be an easy fix. Or perhaps I'm looking at this the wrong way.
Let me know if this sounds doable to you - I'll try to get my hands on the relevant code tomorrow if it'll help.
Thanks!