mirror of
https://github.com/ScrelliCopter/tmx2gba.git
synced 2025-02-21 03:29:25 +11:00
Refactored TMX loading & argument parsing code.
This commit is contained in:
30
src/tmxreader.h
Normal file
30
src/tmxreader.h
Normal file
@@ -0,0 +1,30 @@
|
||||
#ifndef __TMXREADER_H__
|
||||
#define __TMXREADER_H__
|
||||
|
||||
#include <istream>
|
||||
#include <vector>
|
||||
|
||||
class CTmxLayer;
|
||||
|
||||
class CTmxReader
|
||||
{
|
||||
public:
|
||||
CTmxReader ();
|
||||
~CTmxReader ();
|
||||
|
||||
void Open ( std::istream& a_in );
|
||||
|
||||
int GetWidth () const;
|
||||
int GetHeight () const;
|
||||
|
||||
const CTmxLayer* GetLayer ( int a_iId ) const;
|
||||
const CTmxLayer* GetLayer ( std::string a_strName ) const;
|
||||
int GetLayerCount () const;
|
||||
|
||||
private:
|
||||
int m_iWidth, m_iHeight;
|
||||
std::vector<CTmxLayer*> m_vpLayers;
|
||||
|
||||
};
|
||||
|
||||
#endif//__TMXREADER_H__
|
||||
Reference in New Issue
Block a user