31 lines
640 B
C++
31 lines
640 B
C++
#ifndef ADTFILE_H
|
|
#define ADTFILE_H
|
|
|
|
#define CHUNKS_PER_TILE 256
|
|
|
|
#include "ADTFileStructs.h"
|
|
|
|
class ADTFile
|
|
{
|
|
public:
|
|
bool Load(std::string);
|
|
bool LoadMem(ByteBuffer&);
|
|
bool Loaded(void) { return m_loaded; }
|
|
|
|
MapChunk _chunks[CHUNKS_PER_TILE]; // 16x16
|
|
std::vector<std::string> _textures;
|
|
std::vector<std::string> _wmos;
|
|
std::vector<std::string> _models;
|
|
std::vector<MDDF_chunk> _doodadsp;
|
|
std::vector<MODF_chunk> _wmosp;
|
|
std::vector<MCSE_chunk> _soundemm;
|
|
MHDR_chunk mhdr;
|
|
MCIN_chunk mcin[CHUNKS_PER_TILE];
|
|
uint32 _version;
|
|
|
|
bool m_loaded;
|
|
};
|
|
|
|
|
|
#endif
|