diff options
author | Shauren <shauren.trinity@gmail.com> | 2021-05-29 21:21:37 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2021-05-29 21:21:37 +0200 |
commit | 6ecfe58cae6d9cfa7a3aef21a4a96aa00c513ba2 (patch) | |
tree | ff96897b193f6f78ad00fdf4100631705c2f010d /src/common/Collision/Maps/MapDefines.cpp | |
parent | 2de6e56d29df8cebb358e10e5e452422588a3929 (diff) |
Core/Maps & Extractors: Move copypasted map file headers into a single shared file and replace #defines with enums
Diffstat (limited to 'src/common/Collision/Maps/MapDefines.cpp')
-rw-r--r-- | src/common/Collision/Maps/MapDefines.cpp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/common/Collision/Maps/MapDefines.cpp b/src/common/Collision/Maps/MapDefines.cpp new file mode 100644 index 00000000000..4ce96e3ad39 --- /dev/null +++ b/src/common/Collision/Maps/MapDefines.cpp @@ -0,0 +1,24 @@ +/* + * This file is part of the TrinityCore Project. See AUTHORS file for Copyright information + * + * This program 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; either version 2 of the License, or (at your + * option) any later version. + * + * This program 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 this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#include "MapDefines.h" + +u_map_magic const MapMagic = { 'M','A','P','S' }; +u_map_magic const MapVersionMagic = { 'v','1','.','9' }; +u_map_magic const MapAreaMagic = { 'A','R','E','A' }; +u_map_magic const MapHeightMagic = { 'M','H','G','T' }; +u_map_magic const MapLiquidMagic = { 'M','L','I','Q' }; |