get's a map by its mxid
This commit is contained in:
parent
13924f7d8a
commit
73bdeca4d2
@ -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
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user