mirror of
https://github.com/edubart/otclient.git
synced 2025-04-29 09:19:19 +02:00
Return Tile walking creatures and things by const ref instead of copy (#1117)
This commit is contained in:
parent
18dd9c2d2d
commit
f521737b26
@ -88,8 +88,8 @@ public:
|
|||||||
int getDrawElevation() { return m_drawElevation; }
|
int getDrawElevation() { return m_drawElevation; }
|
||||||
std::vector<ItemPtr> getItems();
|
std::vector<ItemPtr> getItems();
|
||||||
std::vector<CreaturePtr> getCreatures();
|
std::vector<CreaturePtr> getCreatures();
|
||||||
std::vector<CreaturePtr> getWalkingCreatures() { return m_walkingCreatures; }
|
const std::vector<CreaturePtr>& getWalkingCreatures() { return m_walkingCreatures; }
|
||||||
std::vector<ThingPtr> getThings() { return m_things; }
|
const std::vector<ThingPtr>& getThings() { return m_things; }
|
||||||
ItemPtr getGround();
|
ItemPtr getGround();
|
||||||
int getGroundSpeed();
|
int getGroundSpeed();
|
||||||
uint8 getMinimapColorByte();
|
uint8 getMinimapColorByte();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user