|
@@ -6,25 +6,24 @@
|
|
|
* 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_commons.h This file simplyfies and embeds a common mechanism of
|
|
|
* loading/saving and mapping of grf entities.
|
|
|
*/
|
|
|
|
|
|
#ifndef NEWGRF_COMMONS_H
|
|
|
#define NEWGRF_COMMONS_H
|
|
|
|
|
|
#include "tile_type.h"
|
|
|
#include "sprite.h"
|
|
|
#include "core/alloc_type.hpp"
|
|
|
#include "core/smallvec_type.hpp"
|
|
|
#include "command_type.h"
|
|
|
#include "direction_type.h"
|
|
|
#include "company_type.h"
|
|
|
|
|
|
/** Context for tile accesses */
|
|
|
enum TileContext {
|
|
|
TCX_NORMAL, ///< Nothing special.
|
|
|
TCX_UPPER_HALFTILE, ///< Querying information about the upper part of a tile with halftile foundation.
|
|
|
TCX_ON_BRIDGE, ///< Querying information about stuff on the bridge (via some bridgehead).
|