Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==============================================================================
- function DoWork() // Add by p627
- {
- $this->DebugMsg=false;// Info of Hook for Debug..
- $this->SendMsg('DoWork');
- $this->Hook('DebugInfos');
- $this->Hook('before_work');
- $this->ReloadConfig();
- $this->SendMsg('Begin saving user inventory to local db file');
- $this->ld->SaveInventory2db($this); // Add by p627
- $this->Hook('before_help_neighbors');
- $this->Hook('help_neighbors');
- $this->Hook('after_help_neighbors');
- $this->Hook('before_harvest_crops');
- $this->Hook('harvest_crops');
- $this->Hook('after_harvest_crops');
- $this->Hook('before_seed_crops');
- $this->Hook('seed_crops');
- $this->Hook('after_seed_crops');
- $this->Hook('before_collect_industry');
- $this->Hook('collect_industry');
- $this->Hook('after_collect_industry');
- $this->Hook('before_purchase_contracts');
- $this->Hook('purchase_contracts');
- $this->Hook('after_purchase_contracts');
- $this->Hook('before_buildings_work');
- $this->Hook('buildings_work');
- $this->Hook('after_buildings_work');
- $this->Hook('NeighborsUpdate'); // Add by p627
- $this->Hook('NeighborsVisit'); // Add by p627
- $this->Hook('before_other_work');
- $this->Hook('other_work');
- $this->Hook('after_other_work');
- // Please do not spent any energy in this hook
- $this->Hook('after_work'); //GameInfo plugin
- $this->SendMsg(">Coins: $this->gold Wood: $this->wood Oil: $this->oil Energy: $this->energy"); // Add by p627
- $this->ReloadConfig();
- $this->SendMsg('Begin saving user profile to local db file');
- $this->ld->SaveProfile2db($this);
- $this->SendMsg('End saving user profile to local db file');
- $this->Hook('download_images'); // Add by p627
- }
Add Comment
Please, Sign In to add comment