def undeclareAsset(self, obj): isDead = (obj.type in self.assetsByType) and (obj in self.assetsByType[obj.type]) Environment.undeclareAsset(self, obj) if isDead: self.observers.notifyObservers( Notification(self, Notification.ntDEADASSET, obj))
def undeclareAsset(self, obj): isDead = (obj.type in self.assetsByType) and (obj in self.assetsByType[obj.type]) Environment.undeclareAsset(self, obj) if isDead: self.observers.notifyObservers(Notification(self, Notification.ntDEADASSET, obj))