本文整理汇总了Python中gui.Scaleform.daapi.view.lobby.customization.CustomizationHelper.getNewIdsByType方法的典型用法代码示例。如果您正苦于以下问题:Python CustomizationHelper.getNewIdsByType方法的具体用法?Python CustomizationHelper.getNewIdsByType怎么用?Python CustomizationHelper.getNewIdsByType使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类gui.Scaleform.daapi.view.lobby.customization.CustomizationHelper
的用法示例。
在下文中一共展示了CustomizationHelper.getNewIdsByType方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: _hasNewItems
# 需要导入模块: from gui.Scaleform.daapi.view.lobby.customization import CustomizationHelper [as 别名]
# 或者: from gui.Scaleform.daapi.view.lobby.customization.CustomizationHelper import getNewIdsByType [as 别名]
def _hasNewItems(self, type, itemsInGroupIDs):
newItemsIds = CustomizationHelper.getNewIdsByType(type, self._nationID)
if type == CUSTOMIZATION_ITEM_TYPE.EMBLEM_TYPE:
groupIdsSet = set(itemsInGroupIDs)
else:
groupIdsSet = set(((self._nationID, id) for id in itemsInGroupIDs))
result = groupIdsSet.intersection(newItemsIds)
return len(result) > 0
示例2: __init__
# 需要导入模块: from gui.Scaleform.daapi.view.lobby.customization import CustomizationHelper [as 别名]
# 或者: from gui.Scaleform.daapi.view.lobby.customization.CustomizationHelper import getNewIdsByType [as 别名]
def __init__(self, name, nationId, type, position = -1):
super(BaseTimedCustomizationInterface, self).__init__(name, nationId, type, position)
self._currentItemID = None
self._currentLifeCycle = None
self._newItemID = None
self._rentalPackageDP = None
self._groupsDP = None
self._itemsDP = None
self._flashObject = None
self.__newIds = CustomizationHelper.getNewIdsByType(CUSTOMIZATION_ITEM_TYPE.CI_TYPES[type], nationId)
示例3: hasNewItems
# 需要导入模块: from gui.Scaleform.daapi.view.lobby.customization import CustomizationHelper [as 别名]
# 或者: from gui.Scaleform.daapi.view.lobby.customization.CustomizationHelper import getNewIdsByType [as 别名]
def hasNewItems(self):
type = CUSTOMIZATION_ITEM_TYPE.CI_TYPES[self._type]
newItemIDs = CustomizationHelper.getNewIdsByType(type, self._nationID)
return len(newItemIDs) > 0