Open Schwaggot opened 6 years ago
Here is the convert from setUnitLoadout to AceArsenalStyle:
It is from getUnitLoadoutStyle to a gui style:
https://github.com/acemod/ACE3/blob/c4655148e075466fafc3a73ecd0ad6892299b8b0/addons/arsenal/functions/fnc_buttonImport.sqf#L42
https://github.com/acemod/ACE3/blob/62710f27c2e35b2ebd9a13186d378873714f8854/addons/arsenal/defines.hpp#L334
At the end the "ace_arsenal_currentItems" is the final style is what the gui needs
It seams that "ace_arsenal_saved_loadouts" are getUnitLoadout Style with some optimizations... like baseWeapons and other Stuff. https://github.com/acemod/ACE3/blob/c4655148e075466fafc3a73ecd0ad6892299b8b0/addons/arsenal/functions/fnc_buttonLoadoutsSave.sqf#L34
It could be useful to have a bi-directional conversion between the Loadout Cfgs and the ACE Arsenal format.