Code: Select all
functable = {}
Function func1 (a, b)
DebugPrint(a)
DebugPrint(b)
EndFunction
InsertItem(functable, {func=func1, attributes={5, 4} })
functable[0].func(functable[0].attributes[0], functable[0].attributes[1])
In case I am using wrong word here, what I mean here is:
Code: Select all
function checklocation(x, y)
In best case, I could just do like this:
Code: Select all
FunctionTable[1]
Second best case would be:
Code: Select all
FunctionTable[1](attributestable[1])
That by other words, Attributestable[1] would contain "(100, 200)" inside it.
But is there any way to do it something like this, or do I have to resort into using the first, working example?