src/newgrf_callbacks.h
changeset 7199 e65a28455ee3
parent 7198 27559e21e9f5
child 7205 0a6d45455ae5
equal deleted inserted replaced
7198:27559e21e9f5 7199:e65a28455ee3
   105 	/* Called (if appropriate bit in callback mask is set) to determine which
   105 	/* Called (if appropriate bit in callback mask is set) to determine which
   106 	 * cargoes a town building should accept. */
   106 	 * cargoes a town building should accept. */
   107 	CBID_HOUSE_ACCEPT_CARGO         = 0x2A,
   107 	CBID_HOUSE_ACCEPT_CARGO         = 0x2A,
   108 
   108 
   109 	/* Called to query the cargo acceptance of the industry tile */
   109 	/* Called to query the cargo acceptance of the industry tile */
   110 	CBID_INDTILE_ACCEPT_CARGO       = 0x2B, // not yet implemented
   110 	CBID_INDTILE_CARGO_ACCEPTANCE   = 0x2B,
   111 
   111 
   112 	/* Called to determine which cargoes an industry should accept. */
   112 	/* Called to determine which cargoes an industry should accept. */
   113 	CBID_INDUSTRY_ACCEPT_CARGO      = 0x2C, // not yet implemented
   113 	CBID_INDTILE_ACCEPT_CARGO       = 0x2C,
   114 
   114 
   115 	/* Called to determine if a specific colour map should be used for a vehicle
   115 	/* Called to determine if a specific colour map should be used for a vehicle
   116 	 * instead of the default livery */
   116 	 * instead of the default livery */
   117 	CBID_VEHICLE_COLOUR_MAPPING     = 0x2D,
   117 	CBID_VEHICLE_COLOUR_MAPPING     = 0x2D,
   118 
   118 
   156 	CBID_INDUSTRY_SPECIAL_EFFECT    = 0x3B, // not yet implemented
   156 	CBID_INDUSTRY_SPECIAL_EFFECT    = 0x3B, // not yet implemented
   157 
   157 
   158 	/* Called to determine if industry can alter the ground below industry tile */
   158 	/* Called to determine if industry can alter the ground below industry tile */
   159 	CBID_INDUSTRY_AUTOSLOPE         = 0x3C, // not yet implemented
   159 	CBID_INDUSTRY_AUTOSLOPE         = 0x3C, // not yet implemented
   160 
   160 
   161 	/* Called to determine if the industry can still accept or refuse  more cargo arrival */
   161 	/* Called to determine if the industry can still accept or refuse more cargo arrival */
   162 	CBID_INDUSTRY_REFUSE_CARGO      = 0x3D, // not yet implemented
   162 	CBID_INDUSTRY_REFUSE_CARGO      = 0x3D,
   163 
   163 
   164 	/* Called (if appropriate bit in callback mask set) to determine whether a
   164 	/* Called (if appropriate bit in callback mask set) to determine whether a
   165 	 * town building can be destroyed. */
   165 	 * town building can be destroyed. */
   166 	CBID_HOUSE_DENY_DESTRUCTION     = 0x143,
   166 	CBID_HOUSE_DENY_DESTRUCTION     = 0x143,
   167 
   167 
   238  * Callback masks for industry tiles
   238  * Callback masks for industry tiles
   239  */
   239  */
   240 enum IndustryTileCallbackMask {
   240 enum IndustryTileCallbackMask {
   241 	CBM_INDT_ANIM_NEXT_FRAME          = 0,  ///< decides next animation frame
   241 	CBM_INDT_ANIM_NEXT_FRAME          = 0,  ///< decides next animation frame
   242 	CBM_INDT_ANIM_SPEED               = 1,  ///< decides animation speed
   242 	CBM_INDT_ANIM_SPEED               = 1,  ///< decides animation speed
   243 	CBM_INDT_ACCEPTANCE_CARGO         = 2,  ///< decides amount of cargo acceptance
   243 	CBM_INDT_CARGO_ACCEPTANCE         = 2,  ///< decides amount of cargo acceptance
   244 	CBM_INDT_ACCEPT_CARGO             = 3,  ///< decides accepted types
   244 	CBM_INDT_ACCEPT_CARGO             = 3,  ///< decides accepted types
   245 	CBM_INDT_SHAPE_CHECK              = 4,  ///< decides slope suitability
   245 	CBM_INDT_SHAPE_CHECK              = 4,  ///< decides slope suitability
   246 	CBM_INDT_DRAW_FOUNDATIONS         = 5,  ///< decides if default foundations need to be drawn
   246 	CBM_INDT_DRAW_FOUNDATIONS         = 5,  ///< decides if default foundations need to be drawn
   247 	CBM_INDT_AUTOSLOPE                = 6,  ///< decides allowance of autosloping
   247 	CBM_INDT_AUTOSLOPE                = 6,  ///< decides allowance of autosloping
   248 };
   248 };