This commit is contained in:
@@ -57,7 +57,7 @@ public:
|
||||
* Initialize the BitmapTileArea with the specified Rect.
|
||||
* @param rect Rect to use.
|
||||
*/
|
||||
void Initialize(Rect r)
|
||||
void Initialize(const Rect &r)
|
||||
{
|
||||
this->tile = TileXY(r.left, r.top);
|
||||
this->w = r.right - r.left + 1;
|
||||
@@ -66,6 +66,15 @@ public:
|
||||
this->data.resize(Index(w, h));
|
||||
}
|
||||
|
||||
void Initialize(const TileArea &ta)
|
||||
{
|
||||
this->tile = ta.tile;
|
||||
this->w = ta.w;
|
||||
this->h = ta.h;
|
||||
this->data.clear();
|
||||
this->data.resize(Index(w, h));
|
||||
}
|
||||
|
||||
/**
|
||||
* Add a tile as part of the tile area.
|
||||
* @param tile Tile to add.
|
||||
|
Reference in New Issue
Block a user