AsciiMapReader works on raw data, so it needs to know
the map size (2D only) from the outside.
This commit is contained in:
parent
eaca77c2de
commit
2d61a84c13
3 changed files with 29 additions and 15 deletions
|
@ -20,11 +20,11 @@ namespace dkh {
|
|||
AsciiMapSource ( void ) = delete;
|
||||
AsciiMapSource ( const AsciiMapSource& ) = delete;
|
||||
AsciiMapSource ( AsciiMapSource&& parOther ) = default;
|
||||
explicit AsciiMapSource ( const char* parFilename );
|
||||
explicit AsciiMapSource ( const std::string& parFilename );
|
||||
explicit AsciiMapSource ( std::istream& parData );
|
||||
AsciiMapSource ( const char* parFilename, const coords& parSize );
|
||||
AsciiMapSource ( const std::string& parFilename, const coords& parSize );
|
||||
AsciiMapSource ( std::istream& parData, const coords& parSize );
|
||||
template <typename I>
|
||||
AsciiMapSource ( I parDataFrom, I parDataTo );
|
||||
AsciiMapSource ( I parDataFrom, I parDataTo, const coords& parSize );
|
||||
~AsciiMapSource ( void ) noexcept = default;
|
||||
|
||||
const coords& mapSize ( void ) const noexcept { return m_mapSize; }
|
||||
|
@ -45,7 +45,7 @@ namespace dkh {
|
|||
void parse_map_data ( std::istream& parSrc );
|
||||
|
||||
std::vector<MapTileType> m_wholedata;
|
||||
coords m_mapSize;
|
||||
const coords m_mapSize;
|
||||
std::size_t m_bytepos;
|
||||
};
|
||||
} //namespace dkh
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue