Advertisement
97Lukas90

meGrapes Beispiel

Mar 30th, 2022
15
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.77 KB | None | 0 0
  1. -- by 97Lukas90/NerdCrash
  2. meGrapesBeispiel = {};
  3.  
  4. function meGrapesBeispiel:loadMap(name)
  5.    
  6.     local literPerSqm = {};
  7.    
  8.     literPerSqm.GRAPE = 2.33;
  9.     literPerSqm.WHEAT = 1000.00;
  10.     literPerSqm.BARLEY = 1000.00;
  11.     literPerSqm.CANOLA = 1000.00;
  12.     literPerSqm.MAIZE = 1000.00;
  13.    
  14.     for k, v in pairs(g_currentMission.fruitTypeManager.fruitTypes) do
  15.         if literPerSqm[v.name] ~= nil then
  16.             v.literPerSqm = literPerSqm[v.name];
  17.         end;
  18.     end;
  19.  
  20. end;
  21.  
  22.  
  23.  
  24.  
  25. function meGrapesBeispiel:keyEvent(unicode, sym, modifier, isDown)
  26. end;
  27. function meGrapesBeispiel:update(dt)
  28. end;
  29. function meGrapesBeispiel:draw()
  30. end;
  31. function meGrapesBeispiel:deleteMap()
  32. end;
  33. function meGrapesBeispiel:mouseEvent(posX, posY, isDown, isUp, button)
  34. end;
  35.  
  36. addModEventListener(meGrapesBeispiel);
  37.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement