Loading

Paste #p4irntufd

  1.     /**
  2.      * Set the production multiplier of given industry. This will call a callback in NewGRFs
  3.      * which will return actual production based on the production multiplier specified from
  4.      * your game script.
  5.      * @param industry_id The index of the industry.
  6.      * @param prod_multiplier The new production multiplier
  7.      * @pre IsValidIndustry(industry_id).
  8.      * @return The IndustryType of the industry.
  9.      * @api game
  10.      */
  11.     static IndustryType SetIndustryBaseProduction(IndustryID industry_id, uint16 prod_multiplier);
  12.  
  13.     /**
  14.      * Send a message to the NewGRF. This result in random production change callback and
  15.      * tile animamion callback of the industry NewGRF being called.
  16.      * @param industry_id The index of the industry.
  17.      * @param message These bits will be passed to the NewGRF var 10 resp. 18 for prodution
  18.      * change callback resp. animation callback.
  19.      * @pre IsValidIndustry(industry_id).
  20.      * @return The IndustryType of the industry.
  21.      * @api game
  22.      */
  23.     static IndustryType SendIndustryMessage(IndustryID industry_id, uint16 message);

Comments