Hi all,
I'm still hard working on my mod, and the data connection between simside (unit.lua) and my module works fine thanks to Myxir's help .
Now, i've got a custom database that the user modify from the ui (in my case the economy.lua by clicking on customs icons).
I know that i need to use callback functions to send data back to my lua module and to the sim side as it said in Myxir's page http://wiki.faforever.com/index.php?tit ... Sim_and_UI.
I'm not particulary familiar with callback function. I know that callback functions are function given by parameters in another function. I saw some of them in the scenarioFramework.lua file but i don't understand their practical use. Do i need to do something in the SimCallbacks.lua file too ?
Can somebody provide the most simple example of code for sending back a custom data content from ui to a mod module and simside ?
Thanks a lot for your help. It's not easy to write something i don't understand fully. I tried several hours without success.