File diff r10570:e200b86ce378 → r10571:99cb9a95b4cf
src/newgrf_house.h
Show inline comments
 
@@ -4,12 +4,13 @@
 

	
 
#ifndef NEWGRF_HOUSE_H
 
#define NEWGRF_HOUSE_H
 

	
 
#include "town_type.h"
 
#include "newgrf_callbacks.h"
 
#include "tile_cmd.h"
 

	
 
/**
 
 * Makes class IDs unique to each GRF file.
 
 * Houses can be assigned class IDs which are only comparable within the GRF
 
 * file they were defined in. This mapping ensures that if two houses have the
 
 * same class as defined by the GRF file, the classes are different within the
 
@@ -23,14 +24,12 @@
 
 */
 
struct HouseClassMapping {
 
	uint32 grfid;     ////< The GRF ID of the file this class belongs to
 
	uint8  class_id;  ////< The class id within the grf file
 
};
 

	
 
void UpdateHousesAndTowns();
 

	
 
HouseClassID AllocateHouseClassID(byte grf_class_id, uint32 grfid);
 

	
 
void InitializeBuildingCounts();
 
void IncreaseBuildingCount(Town *t, HouseID house_id);
 
void DecreaseBuildingCount(Town *t, HouseID house_id);