I have a static class that mainly functions as a mediator between my main and other classes. This static class has a dictionary that looks like this:
public static var dict:Dictionary = [ | |
{index: 1, effect: "upgrade(front,1)",condition:"!isFront(empty,self)" }....}] |
I want to be able to call the stored function like this:
Function(dict[0].effect).call()