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