Mert
Member
While looking around the Facebook extension's java code, I saw
I had ZERO idea that RunnerJNILib had such functions. Up until now, I always created "ds_map" which is, what everybody knows as, async_load[? "..."], returned to the Game Maker via SOCIAL ASYNC Event. It mostly included a long series of string with a parsing key (Someting like :! etc.). Then I had to parse it in GML. It costs too much to be honest.
It seems like we can add lists that can be inserted in a map. These functions works exactly like the ones in GML. With this knowledge, a lot of things will change in my Firebase extensions series.
I wonder what is also there ? Can we async-call another event than SOCIAL one ?
What are the parameters in the function ? Can we get some information maybe ?
Code:
RunnerJNILib.dsMapAddString( mapIndex, "request", requestId );
int dsListIndex = RunnerJNILib.dsListCreate();
RunnerJNILib.dsMapAddInt( mapIndex, "to", dsListIndex);
for(int i=0;i<recipients.size();i++)
{
RunnerJNILib.dsListAddString(dsListIndex, (String)(recipients.get(i)) );
}
It seems like we can add lists that can be inserted in a map. These functions works exactly like the ones in GML. With this knowledge, a lot of things will change in my Firebase extensions series.
I wonder what is also there ? Can we async-call another event than SOCIAL one ?
Code:
int dsMapIndex = RunnerJNILib.jCreateDsMap(null, null, null);