Industry: Determine which tiles in industry layouts are not animated
Do not set these as animated tiles for new industries
This commit is contained in:
23
src/newgrf_industrytiles_analysis.h
Normal file
23
src/newgrf_industrytiles_analysis.h
Normal file
@@ -0,0 +1,23 @@
|
||||
/*
|
||||
* This file is part of OpenTTD.
|
||||
* OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
|
||||
* OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
* See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/** @file newgrf_industrytiles_analysis.h NewGRF handling of industry tiles: analysis. */
|
||||
|
||||
#ifndef NEWGRF_INDUSTRYTILES_ANALYSIS_H
|
||||
#define NEWGRF_INDUSTRYTILES_ANALYSIS_H
|
||||
|
||||
#include "industrytype.h"
|
||||
|
||||
struct AnalyseCallbackOperationIndustryTileData {
|
||||
const IndustryTileLayout *layout;
|
||||
uint64 check_mask;
|
||||
uint64 *result_mask;
|
||||
uint8 layout_index;
|
||||
bool anim_state_at_offset;
|
||||
};
|
||||
|
||||
#endif /* NEWGRF_INDUSTRYTILES_ANALYSIS_H */
|
||||
Reference in New Issue
Block a user