Tilemap: Remove RGSS2 viewport setter
This class is not used in RGSS2 at all.
This commit is contained in:
parent
c88b4b03d6
commit
28421a0ce5
|
@ -1276,26 +1276,6 @@ DEF_ATTR_RD_SIMPLE(Tilemap, Visible, bool, p->visible)
|
||||||
DEF_ATTR_RD_SIMPLE(Tilemap, OX, int, p->offset.x)
|
DEF_ATTR_RD_SIMPLE(Tilemap, OX, int, p->offset.x)
|
||||||
DEF_ATTR_RD_SIMPLE(Tilemap, OY, int, p->offset.y)
|
DEF_ATTR_RD_SIMPLE(Tilemap, OY, int, p->offset.y)
|
||||||
|
|
||||||
#ifdef RGSS2
|
|
||||||
|
|
||||||
void Tilemap::setViewport(Viewport *value)
|
|
||||||
{
|
|
||||||
if (p->viewport == value)
|
|
||||||
return;
|
|
||||||
|
|
||||||
p->viewport = value;
|
|
||||||
|
|
||||||
if (!p->tilemapReady)
|
|
||||||
return;
|
|
||||||
|
|
||||||
p->elem.ground->setViewport(value);
|
|
||||||
|
|
||||||
for (size_t i = 0; i < zlayersMax; ++i)
|
|
||||||
p->elem.zlayers[i]->setViewport(value);
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
void Tilemap::setTileset(Bitmap *value)
|
void Tilemap::setTileset(Bitmap *value)
|
||||||
{
|
{
|
||||||
if (p->tileset == value)
|
if (p->tileset == value)
|
||||||
|
|
|
@ -56,12 +56,8 @@ public:
|
||||||
void update();
|
void update();
|
||||||
|
|
||||||
Autotiles &getAutotiles() const;
|
Autotiles &getAutotiles() const;
|
||||||
|
|
||||||
#ifndef RGSS2
|
|
||||||
Viewport *getViewport() const;
|
Viewport *getViewport() const;
|
||||||
#else
|
|
||||||
DECL_ATTR( Viewport, Viewport* )
|
|
||||||
#endif
|
|
||||||
DECL_ATTR( Tileset, Bitmap* )
|
DECL_ATTR( Tileset, Bitmap* )
|
||||||
DECL_ATTR( MapData, Table* )
|
DECL_ATTR( MapData, Table* )
|
||||||
DECL_ATTR( FlashData, Table* )
|
DECL_ATTR( FlashData, Table* )
|
||||||
|
|
Loading…
Reference in New Issue