first. is this a good idea?
entity
{
"name" "methodTest"
"keyPressed"
{
"keyCode" ""
"doubled" ""
"repeated" ""
"return"
{
}
}
}
if i wanted to call that i would fill go:
setValue("methodTest.keyPressed.keyCode","KEY_W");
setValue("methodTest.keyPressed.doubled","false");
setValue("methodTest.keyPressed.repeated","false");
call("methodTest.keyPressed");
retKeyValue=getValue("methodTest.keyPressed.return");
this could be cleaned up with some sugar. is it really necessary? pretend this is Input calling
a listener.
it would have a list of entities and a list of methods it would need to call. it could just
do the call right then.
std::vector
args+=gbKeyValue("keyCode","KEY_W");
args+=gbKeyValue("doubled","false");
args+=gbKeyValue("repeated","false");
std::vector
call("methodText.keyPressed",args,ret);
it probably should be translated to 'forward' instead of KEY_W.