anyone know how to use Reflection in Node.js/Discord I want to replace
my direct map property call: Userlist.get(uid).Strength
with a more programic one like var DamangeStateName = "Strength" Userlist.get(uid).DamangeStateName
which would get the Strength property like the direct one. The main reason I need reflection is because sometimes the Key attribute is "Agilty" not "Strength" And while my code everwhere else works with the string variable my Map of the player data can't use those same tricks and i need to be able to use reflection os it synergies with the rest of my code
Aucun commentaire:
Enregistrer un commentaire