コード例 #1
0
ファイル: factories.py プロジェクト: v3ss0n/WOTDecompiled
def getAchievementFactory(name, dossier):
    if name in _ACHIEVEMENTS_BY_NAME:
        return _ACHIEVEMENTS_BY_NAME[name](name, dossier)
    else:
        achieveType = dossiers_utils.getAchievementType(name)
        if achieveType is not None and achieveType in _ACHIEVEMENTS_BY_TYPE:
            return _ACHIEVEMENTS_BY_TYPE[achieveType](name, dossier)
        return _AchieveFactory(achievements.RegularAchievement, name, dossier)
コード例 #2
0
ファイル: factories.py プロジェクト: 19colt87/WOTDecompiled
def getAchievementFactory(name, dossier):
    if name in _ACHIEVEMENTS_BY_NAME:
        return _ACHIEVEMENTS_BY_NAME[name](name, dossier)
    else:
        achieveType = dossiers_utils.getAchievementType(name)
        if achieveType is not None and achieveType in _ACHIEVEMENTS_BY_TYPE:
            return _ACHIEVEMENTS_BY_TYPE[achieveType](name, dossier)
        return _AchieveFactory(achievements.RegularAchievement, name, dossier)
コード例 #3
0
 def getType(self):
     return dossiers_utils.getAchievementType(self.name)
コード例 #4
0
 def getType(self):
     return dossiers_utils.getAchievementType(self.name)