コード例 #1
0
ファイル: task.py プロジェクト: odysseus654/supermake
 def declareAsset(self, obj):
     isNew = (obj.type not in self.assetsByType) or (
         obj not in self.assetsByType[obj.type])
     Environment.declareAsset(self, obj)
     if isNew:
         self.observers.notifyObservers(
             Notification(self, Notification.ntNEWASSET, obj))
コード例 #2
0
ファイル: task.py プロジェクト: odysseus654/supermake
	def declareAsset(self, obj):
		isNew = (obj.type not in self.assetsByType) or (obj not in self.assetsByType[obj.type])
		Environment.declareAsset(self, obj)
		if isNew:
			self.observers.notifyObservers(Notification(self, Notification.ntNEWASSET, obj))