Add getPlayerIconByPath to playerFactory
This commit is contained in:
parent
6e4c19e50b
commit
b0944c8aa3
@ -15,6 +15,12 @@ class PlayerFactory(object):
|
|||||||
if(player.isValidPlayerPath(path)):
|
if(player.isValidPlayerPath(path)):
|
||||||
return player
|
return player
|
||||||
|
|
||||||
|
def getPlayerIconByPath(self, path):
|
||||||
|
for player in self._players:
|
||||||
|
if(player.isValidPlayerPath(path)):
|
||||||
|
return player.getIconPath(path)
|
||||||
|
return None
|
||||||
|
|
||||||
def getExpandedPlayerPathByPath(self, path):
|
def getExpandedPlayerPathByPath(self, path):
|
||||||
for player in self._players:
|
for player in self._players:
|
||||||
if(player.isValidPlayerPath(path)):
|
if(player.isValidPlayerPath(path)):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user