DarkAlchemist
Programmer
I have 2 strings like so
a = Focus
b = Coordination
now I need to call a function like so
m_pCharStats->GetSkill(DecalFilters::eAttributeFocus)
and
m_pCharStats->GetSkill(DecalFilters::eAttributeCoordination)
How can I do this in a compiled framework? In a script environment I could simply make a 3rd constant and do (in essence) this: a = ("DecalFilters::eAttribute" + a). This one has me baffled in how to do it via C++ and yes a and b could be anything in their strings.
a = Focus
b = Coordination
now I need to call a function like so
m_pCharStats->GetSkill(DecalFilters::eAttributeFocus)
and
m_pCharStats->GetSkill(DecalFilters::eAttributeCoordination)
How can I do this in a compiled framework? In a script environment I could simply make a 3rd constant and do (in essence) this: a = ("DecalFilters::eAttribute" + a). This one has me baffled in how to do it via C++ and yes a and b could be anything in their strings.