Guest User

Untitled

a guest
Oct 16th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.10 KB | None | 0 0
  1. // ==============================================================================
  2. function DoWork() // Add by p627
  3. {
  4. $this->DebugMsg=false;// Info of Hook for Debug..
  5. $this->SendMsg('DoWork');
  6.  
  7. $this->Hook('DebugInfos');
  8. $this->Hook('before_work');
  9.  
  10. $this->ReloadConfig();
  11. $this->SendMsg('Begin saving user inventory to local db file');
  12. $this->ld->SaveInventory2db($this); // Add by p627
  13.  
  14. $this->Hook('before_help_neighbors');
  15. $this->Hook('help_neighbors');
  16. $this->Hook('after_help_neighbors');
  17.  
  18. $this->Hook('before_harvest_crops');
  19. $this->Hook('harvest_crops');
  20. $this->Hook('after_harvest_crops');
  21.  
  22. $this->Hook('before_seed_crops');
  23. $this->Hook('seed_crops');
  24. $this->Hook('after_seed_crops');
  25.  
  26. $this->Hook('before_collect_industry');
  27. $this->Hook('collect_industry');
  28. $this->Hook('after_collect_industry');
  29.  
  30. $this->Hook('before_purchase_contracts');
  31. $this->Hook('purchase_contracts');
  32. $this->Hook('after_purchase_contracts');
  33.  
  34. $this->Hook('before_buildings_work');
  35. $this->Hook('buildings_work');
  36. $this->Hook('after_buildings_work');
  37.  
  38. $this->Hook('NeighborsUpdate'); // Add by p627
  39. $this->Hook('NeighborsVisit'); // Add by p627
  40.  
  41. $this->Hook('before_other_work');
  42. $this->Hook('other_work');
  43. $this->Hook('after_other_work');
  44.  
  45. // Please do not spent any energy in this hook
  46. $this->Hook('after_work'); //GameInfo plugin
  47.  
  48. $this->SendMsg(">Coins: $this->gold Wood: $this->wood Oil: $this->oil Energy: $this->energy"); // Add by p627
  49.  
  50. $this->ReloadConfig();
  51. $this->SendMsg('Begin saving user profile to local db file');
  52. $this->ld->SaveProfile2db($this);
  53. $this->SendMsg('End saving user profile to local db file');
  54. $this->Hook('download_images'); // Add by p627
  55. }
Add Comment
Please, Sign In to add comment