本文整理汇总了Python中UnitBase.UnitBase.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python UnitBase.__init__方法的具体用法?Python UnitBase.__init__怎么用?Python UnitBase.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类UnitBase.UnitBase
的用法示例。
在下文中一共展示了UnitBase.__init__方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from UnitBase import UnitBase [as 别名]
# 或者: from UnitBase.UnitBase import __init__ [as 别名]
def __init__(self, slotDefs = {}, slotCount = 0, packedRoster = '', packedUnit = ''):
self.__eManager = Event.EventManager()
self.onUnitStateChanged = Event.Event(self.__eManager)
self.onUnitReadyMaskChanged = Event.Event(self.__eManager)
self.onUnitVehicleChanged = Event.Event(self.__eManager)
self.onUnitSettingChanged = Event.Event(self.__eManager)
self.onUnitPlayerRoleChanged = Event.Event(self.__eManager)
self.onUnitRosterChanged = Event.Event(self.__eManager)
self.onUnitMembersListChanged = Event.Event(self.__eManager)
self.onUnitPlayerAdded = Event.Event(self.__eManager)
self.onUnitPlayerRemoved = Event.Event(self.__eManager)
self.onUnitPlayersListChanged = Event.Event(self.__eManager)
self.onUnitPlayerVehDictChanged = Event.Event(self.__eManager)
self.onUnitPlayerInfoChanged = Event.Event(self.__eManager)
self.onUnitUpdated = Event.Event(self.__eManager)
self._creatorDBID = 0L
UnitBase.__init__(self, slotDefs, slotCount, packedRoster, packedUnit)
示例2: __init__
# 需要导入模块: from UnitBase import UnitBase [as 别名]
# 或者: from UnitBase.UnitBase import __init__ [as 别名]
def __init__(self, limitsDefs = {}, slotDefs = {}, slotCount = 0, packedRoster = '', extrasInit = None, packedUnit = ''):
self.__eManager = Event.SuspendedEventManager()
self.onUnitFlagsChanged = Event.SuspendedEvent(self.__eManager)
self.onUnitReadyMaskChanged = Event.SuspendedEvent(self.__eManager)
self.onUnitVehicleChanged = Event.SuspendedEvent(self.__eManager)
self.onUnitVehiclesChanged = Event.SuspendedEvent(self.__eManager)
self.onUnitSettingChanged = Event.SuspendedEvent(self.__eManager)
self.onUnitPlayerRoleChanged = Event.SuspendedEvent(self.__eManager)
self.onUnitRosterChanged = Event.SuspendedEvent(self.__eManager)
self.onUnitMembersListChanged = Event.SuspendedEvent(self.__eManager)
self.onUnitPlayerAdded = Event.SuspendedEvent(self.__eManager)
self.onUnitPlayerRemoved = Event.SuspendedEvent(self.__eManager)
self.onUnitPlayersListChanged = Event.SuspendedEvent(self.__eManager)
self.onUnitPlayerVehDictChanged = Event.SuspendedEvent(self.__eManager)
self.onUnitPlayerInfoChanged = Event.SuspendedEvent(self.__eManager)
self.onUnitExtraChanged = Event.SuspendedEvent(self.__eManager)
self.onUnitUpdated = Event.SuspendedEvent(self.__eManager)
self._creatorDBID = 0
UnitBase.__init__(self, limitsDefs, slotDefs, slotCount, packedRoster, extrasInit, packedUnit)