| 208 | } |
| 209 | |
| 210 | unsigned int TileMap::getLayer(TileObject::Type type) const |
| 211 | { |
| 212 | for (unsigned i = 0; i < this->layerMap.size(); i++) |
| 213 | { |
| 214 | if (this->layerMap[i].find(type) != this->layerMap[i].end()) |
| 215 | { |
| 216 | return i; |
| 217 | } |
| 218 | } |
| 219 | LogError("No layer matching object type %d", static_cast<int>(type)); |
| 220 | return 0; |
| 221 | } |
| 222 | |
| 223 | unsigned int TileMap::getLayerCount() const { return (unsigned)this->layerMap.size(); } |
| 224 |
no test coverage detected