--requires 1147.44+/~1300
--name,guid are required, the guid must be actual guid, the name can be anything it techinicaly doesn't have to mach the unit.
--optional specific_magguid="guid string" and specific_wpnrecguid="guid string", quantity=number.
local TopUpAllExistingMagsUnitList = {
    {name='SAM Bn S-400 #1', guid='4FH7PU-0HMNDPRJL9OQ0',comment="attempts all mags on unit"}, 
    {name='SAM Bn S-400 #2', guid='4FH7PU-0HMNDPRJL99BD',comment="attempts all mags on unit"}, 
    {name='DDG 125 #1 rim174 on munitions only', guid='4FH7PU-0HMNDPRJL9Q17',specific_magguid ="4FH7PU-0HMNDPRJL9QJH",specific_wpnrecguid="4FH7PU-0HMNDPRJL9QJI",comment="fastest perf it will only do this specific mag and only this specfic wpn record 174A blk1a"},
    {name='DDG 125 #1 helocoptermountonly', guid='4FH7PU-0HMNDPRJL9Q17',specific_magguid ="4FH7PU-0HMNDPRJL9Q6P",comment="will only process the helicopter mag."},
    {name='DDG 125 #1 mk54LHT to 24 only', guid='4FH7PU-0HMNDPRJL9Q17',specific_wpnrecguid ="4FH7PU-0HMNDPRJL9Q75",quantity=24,comment="will search all mags but only till it finds this specific mk54 LHT record and change it to 24"}
    --note the last entry would run faster searching wise if you also provided the magguid involved...but you don't have too.
}



---
-- now call the GLOBAL function with the table from above.
-- See no duplcate core function code. Just the local table definition and usage.
---
gKH.Magazines:TopUpAllExistingMags(TopUpAllExistingMagsUnitList);
