def __init__(self, *args): Component.__init__(self, *args) self.isActive = False self.activeTimestamp = None self.SubscribeToMessage(MSG_ON_ADDED_TO_SPACE, self.OnAddedToSpace) self.SubscribeToMessage(MSG_ON_SLIM_ITEM_UPDATED, self.OnSlimItemUpdated)
def __init__(self, itemID, typeID, attributes, componentRegistry): Component.__init__(self, itemID, typeID, attributes, componentRegistry) logger.debug('Adding a behavior to %s of type %s', itemID, typeID) self.SubscribeToMessage(messages.MSG_ON_ADDED_TO_SPACE, self.OnAddedToSpace) self.SubscribeToMessage(messages.MSG_ON_REMOVED_FROM_SPACE, self.OnRemovedFromSpace)
def __init__(self, *args): Component.__init__(self, *args) self.isReinforced = False self.reinforceTimestamp = None self.SubscribeToMessage(MSG_ON_ADDED_TO_SPACE, self.OnSlimItemUpdated) self.SubscribeToMessage(MSG_ON_SLIM_ITEM_UPDATED, self.OnSlimItemUpdated)
def __init__(self, itemID, typeID, attributes, componentRegistry): Component.__init__(self, itemID, typeID, attributes, componentRegistry) logger.debug('Micro jump driver component created for item %s of type %s', itemID, typeID) self.interactionRange = self.attributes.interactionRange self.maxShipMass = self.attributes.maxShipMass self.spoolUpDurationMillisec = self.attributes.spoolUpDurationMillisec self.ballpark = None self.microJumpingShips = set() self.componentRegistry.SubscribeToItemMessage(itemID, MSG_ON_ADDED_TO_SPACE, self.OnAddedToSpace) self.componentRegistry.SubscribeToItemMessage(itemID, MSG_ON_REMOVED_FROM_SPACE, self.OnRemovedFromSpace)
def __init__(self, itemID, typeID, attributes, componentRegistry): Component.__init__(self, itemID, typeID, attributes, componentRegistry) logger.debug('Looter component created for item %s of type %s', itemID, typeID) self.lootRange = getattr(self.attributes, 'range', maxCargoContainerTransferDistance) self.isThreadActive = False self.ballpark = None self.componentRegistry.SubscribeToItemMessage(itemID, 'OnAddedToSpace', self.OnAddedToSpace) self.componentRegistry.SubscribeToItemMessage(itemID, 'OnRemovedFromSpace', self.OnRemovedFromSpace) self.componentRegistry.SubscribeToItemMessage(itemID, MSG_ON_BALLPARK_RELEASE, self.OnBallparkRelease) self.SetIntervalInSeconds(self.attributes.cycleTimeSeconds)
def __init__(self, itemID, typeID, attributes, componentRegistry): Component.__init__(self, itemID, typeID, attributes, componentRegistry) self.unlockTimestamp = None self.unlockSeconds = 0 self.tagSpawnSeconds = attributes.tagSpawnDelay self.accessRange = attributes.accessRange self.unlockingShipID = None self.lockState = None self.tagCalculator = TagCalculator(GetPriceByTagTypeID(attributes.tagTypeIDs)) self.SubscribeToMessage(MSG_ON_SLIM_ITEM_UPDATED, self.OnSlimItemUpdated) sm.RegisterNotify(self)
def __init__(self, itemID, typeID, attributes, componentRegistry): Component.__init__(self, itemID, typeID, attributes, componentRegistry) logger.debug('AutoTractorBeam component created for item %s of type %s', itemID, typeID) self.isThreadActive = False self.ballpark = None self.targetID = None self.ownerID = None self.SubscribeToMessage('OnAddedToSpace', self.OnAddedToSpace) self.SubscribeToMessage('OnRemovedFromSpace', self.OnRemovedFromSpace) self.SubscribeToMessage(MSG_ON_BALLPARK_RELEASE, self.OnBallparkRelease) self.SetIntervalInSeconds(self.attributes.cycleTimeSeconds)
def __init__(self, itemID, typeID, attributes, componentRegistry): Component.__init__(self, itemID, typeID, attributes, componentRegistry) self.eventLogger = self.componentRegistry.eventLogger self.GetWallclockTime = componentRegistry.asyncFuncs.GetWallclockTime self.GetSimTime = componentRegistry.asyncFuncs.GetSimTime self.SleepSim = componentRegistry.asyncFuncs.SleepSim self.TimeDiffInMs = componentRegistry.asyncFuncs.TimeDiffInMs self.UThreadNew = componentRegistry.asyncFuncs.UThreadNew self.isActive = False self.activeTimestamp = None componentRegistry.SubscribeToItemMessage(self.itemID, 'OnAddedToSpace', self.OnAddedToSpace) componentRegistry.SubscribeToItemMessage(self.itemID, 'OnRemovedFromSpace', self.OnRemovedFromSpace)
def __init__(self, itemID, typeID, attributes, componentRegistry): Component.__init__(self, itemID, typeID, attributes, componentRegistry) self.unlockTimestamp = None self.unlockSeconds = 0 self.tagSpawnSeconds = attributes.tagSpawnDelay self.accessRange = attributes.accessRange self.unlockingShipID = None self.lockState = None self.tagCalculator = TagCalculator( GetPriceByTagTypeID(attributes.tagTypeIDs)) self.SubscribeToMessage(MSG_ON_SLIM_ITEM_UPDATED, self.OnSlimItemUpdated) sm.RegisterNotify(self)
def __init__(self, itemID, typeID, attributes, componentRegistry): Component.__init__(self, itemID, typeID, attributes, componentRegistry) logger.debug( 'AutoTractorBeam component created for item %s of type %s', itemID, typeID) self.isThreadActive = False self.ballpark = None self.targetID = None self.ownerID = None self.SubscribeToMessage('OnAddedToSpace', self.OnAddedToSpace) self.SubscribeToMessage('OnRemovedFromSpace', self.OnRemovedFromSpace) self.SubscribeToMessage(MSG_ON_BALLPARK_RELEASE, self.OnBallparkRelease) self.SetIntervalInSeconds(self.attributes.cycleTimeSeconds)
def __init__(self, itemID, typeID, attributes, componentRegistry): Component.__init__(self, itemID, typeID, attributes, componentRegistry) logger.debug( 'Micro jump driver component created for item %s of type %s', itemID, typeID) self.interactionRange = self.attributes.interactionRange self.maxShipMass = self.attributes.maxShipMass self.spoolUpDurationMillisec = self.attributes.spoolUpDurationMillisec self.ballpark = None self.microJumpingShips = set() self.componentRegistry.SubscribeToItemMessage(itemID, MSG_ON_ADDED_TO_SPACE, self.OnAddedToSpace) self.componentRegistry.SubscribeToItemMessage( itemID, MSG_ON_REMOVED_FROM_SPACE, self.OnRemovedFromSpace)
def __init__(self, itemID, typeID, attributes, componentRegistry): Component.__init__(self, itemID, typeID, attributes, componentRegistry) self.SubscribeToMessage(MSG_ON_SLIM_ITEM_UPDATED, self.OnSlimItemUpdated) self.lastEndTime = None self.spoolUpDurationMillisec = self.attributes.spoolUpDurationMillisec
def __init__(self, *args): Component.__init__(self, *args) self.fittingRange = self.attributes.range
def __init__(self, itemID, typeID, attributes, componentRegistry): Component.__init__(self, itemID, typeID, attributes, componentRegistry) self.SubscribeToMessage(MSG_ON_ADDED_TO_SPACE, self._OnAddedToSpace) self.SubscribeToMessage(MSG_ON_SLIM_ITEM_UPDATED, self._OnSlimItemUpdated) self.SubscribeToMessage(MSG_ON_BRACKET_CREATED, self._OnBracketCreated)
def __init__(self, itemID, typeID, attributes, componentRegistry): Component.__init__(self, itemID, typeID, attributes, componentRegistry) self.warpDisruptionRange = attributes.warpDisruptionRange self.SubscribeToMessage(MSG_ON_ACTIVE, self.OnActive) self.SubscribeToMessage(MSG_ON_REMOVED_FROM_SPACE, self.OnRemovedFromSpace) self.addedWarpDisruptor = False
def __init__(self, itemID, typeID, attributes, componentRegistry): Component.__init__(self, itemID, typeID, attributes, componentRegistry) self.SubscribeToMessage(MSG_ON_LOAD_OBJECT, self.OnLoadObject) self.SubscribeToMessage(MSG_ON_REMOVED_FROM_SPACE, self.OnRemovedFromSpace)
def __init__(self, itemTraderItemId, typeId, attributes, componentRegistry): Component.__init__(self, itemTraderItemId, typeId, attributes, componentRegistry) self.SubscribeToMessage('OnAddedToSpace', self.OnAddedToSpace)
def __init__(self, itemID, typeID, attributes, componentRegistry): Component.__init__(self, itemID, typeID, attributes, componentRegistry) self.isPaying = False self.SubscribeToMessage('OnAddedToSpace', self.OnAddedToSpace) self.SubscribeToMessage('OnRemovedFromSpace', self.OnRemovedFromSpace)
def __init__(self, cargoBayItemID, typeID, attributes, componentRegistry): Component.__init__(self, cargoBayItemID, typeID, attributes, componentRegistry) self.componentRegistry.SubscribeToItemMessage(self.itemID, 'OnRemovedFromSpace', self.OnRemovedFromSpace)
def __init__(self, itemID, typeID, attributes, componentRegistry): Component.__init__(self, itemID, typeID, attributes, componentRegistry) self.isAlwaysGlobal = attributes.isAlwaysGlobal
def __init__(self, itemID, typeID, attributes, componentRegistry): Component.__init__(self, itemID, typeID, attributes, componentRegistry) self.componentRegistry.SubscribeToItemMessage(itemID, MSG_ON_ADDED_TO_SPACE, self.OnAddedToSpace) self.componentRegistry.SubscribeToItemMessage(itemID, MSG_ON_REMOVED_FROM_SPACE, self.OnRemovedFromSpace) self.componentRegistry.SubscribeToItemMessage(itemID, MSG_ON_ACTIVE, self.OnActive)
def __init__(self, *args): Component.__init__(self, *args) self.SubscribeToMessage(MSG_ON_ADDED_TO_SPACE, self.OnAddedToSpace) self.SubscribeToMessage(MSG_ON_SLIM_ITEM_UPDATED, self.OnSlimItemUpdate) self.decayTimestamp = None
def __init__(self, *args): Component.__init__(self, *args) self.isPolarized = False self.polarizationEndTime = None self.polarizationDuration = None self.SubscribeToMessage(MSG_ON_ADDED_TO_SPACE, self.OnAddedToSpace)
def __init__(self, itemID, typeID, attributes, componentRegistry): Component.__init__(self, itemID, typeID, attributes, componentRegistry) self.SubscribeToMessage(messages.MSG_ON_ADDED_TO_SPACE, self.OnAddedToSpace)