mirror of
https://github.com/xtjoeytx/GServer-v2.git
synced 2026-05-07 16:19:40 -04:00
22 lines
383 B
C++
22 lines
383 B
C++
#ifndef GS2EMU_TLEVELTILES_H
|
|
#define GS2EMU_TLEVELTILES_H
|
|
|
|
#include <cstring>
|
|
|
|
class LevelTiles
|
|
{
|
|
public:
|
|
LevelTiles(short fillTile = 0x00)
|
|
{
|
|
memset(m_tiles, fillTile, sizeof(m_tiles));
|
|
}
|
|
|
|
short& operator[](uint32_t index) { return m_tiles[index]; }
|
|
explicit operator char*() const { return (char*)m_tiles; };
|
|
|
|
private:
|
|
short m_tiles[4096];
|
|
};
|
|
|
|
#endif //GS2EMU_TLEVELTILES_H
|