Advertisement
tinyevil

Untitled

Nov 5th, 2018
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. try{
  2. data = readData();
  3. map = parseMap(data);
  4. units = parseUnits(data);
  5. // restore links in units (who's attacking whom etc)
  6. // ...
  7. }catch(Error){
  8. // present user with "save file is corrupted"
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement