本文整理汇总了Python中toontown.catalog.CatalogItemList.CatalogItemList.pop方法的典型用法代码示例。如果您正苦于以下问题:Python CatalogItemList.pop方法的具体用法?Python CatalogItemList.pop怎么用?Python CatalogItemList.pop使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类toontown.catalog.CatalogItemList.CatalogItemList
的用法示例。
在下文中一共展示了CatalogItemList.pop方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: DistributedFurnitureManagerAI
# 需要导入模块: from toontown.catalog.CatalogItemList import CatalogItemList [as 别名]
# 或者: from toontown.catalog.CatalogItemList.CatalogItemList import pop [as 别名]
#.........这里部分代码省略.........
item.destroy()
self.items.remove(item)
return ToontownGlobals.FM_MovedItem
def moveItemFromAttic(self, index, x, y, z, h, p, r):
item = self.getAtticFurniture(self.atticItems, index)
self.atticItems.remove(item)
self.d_setAtticItems(self.getAtticItems())
item.posHpr = (x, y, z, h, p, r)
do = DistributedFurnitureItemAI(self.air, self, item)
do.generateWithRequired(self.zoneId)
self.items.append(do)
return (ToontownGlobals.FM_MovedItem, do.doId)
def deleteItemFromAttic(self, blob, index):
pass
def deleteItemFromRoom(self, blob, doId):
pass
def moveWallpaperFromAttic(self, index, room):
if room > 1:
return ToontownGlobals.FM_InvalidIndex
if index >= len(self.atticWallpaper):
return ToontownGlobals.FM_InvalidIndex
wallpaper = self.atticWallpaper.pop(index)
if room < len(self.wallpaper):
oldWallpaper = self.wallpaper.pop(room)
self.atticWallpaper.append(oldWallpaper)
self.b_setAtticWallpaper(self.atticWallpaper.getBlob())
self.wallpaper.insert(room, wallpaper)
self.applyWallpaper()
return ToontownGlobals.FM_SwappedItem
def deleteWallpaperFromAttic(self, blob, index):
pass
def moveWindowToAttic(self, slot):
window = self.getWindow(slot)
if window is None:
return ToontownGlobals.FM_InvalidIndex
self.windows.remove(window)
self.applyWindows()
self.atticWindows.append(window)
self.d_setAtticWindows(self.getAtticWindows())
return ToontownGlobals.FM_MovedItem
def moveWindowFromAttic(self, index, slot):
retcode = ToontownGlobals.FM_MovedItem
window = self.getAtticFurniture(self.atticWindows, index)
if slot > 5: