Get a method from a string

I have a JSON file containing spells for a combat system I’m tinkering with. It contains things like names, descriptions, and the name of the method that’s run when that spell is cast. I’m having trouble getting a reference to the method, though. So, say the method name from my JSON file is “CombatMe.SpellSystem.Spell_Fireball.Cast”, how would I get a reference to the method from that?

submitted by /u/Afropenguinn
[link] [comments]

Leave a Reply