get's a map by its mxid

This commit is contained in:
kremsy 2014-08-13 11:42:10 +02:00
parent 13924f7d8a
commit 73bdeca4d2

View File

@ -470,6 +470,21 @@ class MapManager implements CallbackListener {
return null;
}
/**
* Get's a Map by it's Mania-Exchange Id
*
* @param $mxId
* @return Map
*/
public function getMapByMxId($mxId) {
foreach ($this->maps as $map) {
if ($map->mx->id == $mxId) {
return $map;
}
}
return null;
}
/**
* Updates the full Map list, needed on Init, addMap and on ShuffleMaps
*/