当前位置: 首页>>代码示例>>Python>>正文


Python UnitBase.__init__方法代码示例

本文整理汇总了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)
开发者ID:Infernux,项目名称:Projects,代码行数:19,代码来源:clientunit.py

示例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)
开发者ID:aevitas,项目名称:wotsdk,代码行数:21,代码来源:client_commonclientunit.py


注:本文中的UnitBase.UnitBase.__init__方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。