nestharus / JASS

MIT License
31 stars 8 forks source link

Has this code even been tested..? #24

Open Arhowk opened 9 years ago

Arhowk commented 9 years ago
function SaveItem takes item i, SaveCode data returns nothing
    call data.write(GetItemTypeId(i))
    if (null != i) then
        call data.write(GetItemCharges(i))
    endif
endfunction
function LoadItem takes LoadCode data returns item
    set loadItem = CreateItem(data.read(), 0, 0)
    call SetItemCharges(loadItem, data.read())

    return loadItem
endfunction

I'm trying to finish my codeless saveload as a last gift and I come across this little beauty.

nestharus commented 9 years ago

All code included in Save/Load has been tested

nestharus commented 8 years ago

Oh snap, I seee what you mean, lmao. Wow >.<.

Arhowk commented 8 years ago

test harder m8