Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class ScriptEventOnHouseDestroyed : public ScriptEventCompanyTown {
- public:
- int population;
- /**
- * @param company The company.
- * @param town The town.
- * @param _population The population.
- */
- ScriptEventOnHouseDestroyed(ScriptCompany::CompanyID company, TownID town, int _population) :
- ScriptEventCompanyTown(ET_HOUSE_DESTROYED, company, town)
- {
- population = _population;
- }
- /**
- * Convert an ScriptEvent to the real instance.
- * @param instance The instance to convert.
- * @return The converted instance.
- */
- static ScriptEventOnHouseDestroyed *Convert(ScriptEventCompanyTown *instance) {
- return (ScriptEventRoadReconstruction *)instance;
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement