예제 #1
0
def __getDescriptorOfCurrentVehicle():
    igrRoomType = g_instance.igr.getRoomType()
    igrLayout = g_itemsCache.items.inventory.getIgrCustomizationsLayout()
    veh = g_currentVehicle.item
    defaultVehCompDescr = veh.descriptor.makeCompactDescr()
    igrVehCompDescr = getIGRCustomizedVehCompDescr(igrLayout, veh.invID, igrRoomType, defaultVehCompDescr)
    igrDescr = vehicles.VehicleDescr(igrVehCompDescr)
    return igrDescr
예제 #2
0
def __getDescriptorOfCurrentVehicle():
    igrRoomType = g_instance.igr.getRoomType()
    igrLayout = g_itemsCache.items.inventory.getIgrCustomizationsLayout()
    veh = g_currentVehicle.item
    defaultVehCompDescr = veh.descriptor.makeCompactDescr()
    igrVehCompDescr = getIGRCustomizedVehCompDescr(igrLayout, veh.invID, igrRoomType, defaultVehCompDescr)
    igrDescr = vehicles.VehicleDescr(igrVehCompDescr)
    return igrDescr
예제 #3
0
def getUpdatedDescriptor(vehDescr):
    igrRoomType = g_instance.igr.getRoomType()
    igrLayout = g_itemsCache.items.inventory.getIgrCustomizationsLayout()
    igrVehCompDescr = getIGRCustomizedVehCompDescr(igrLayout,
                                                   g_currentVehicle.item.invID,
                                                   igrRoomType,
                                                   vehDescr.makeCompactDescr())
    return vehicles.VehicleDescr(igrVehCompDescr)
예제 #4
0
def getCustomizationElements(type, igrType):
    igrLayout = g_itemsCache.items.inventory.getIgrCustomizationsLayout()
    veh = g_currentVehicle.item
    defaultVehCompDescr = veh.descriptor.makeCompactDescr()
    igrVehCompDescr = getIGRCustomizedVehCompDescr(igrLayout, veh.invID, igrType, defaultVehCompDescr)
    igrDescr = vehicles.VehicleDescr(igrVehCompDescr)
    dossier = g_itemsCache.items.getVehicleDossier(veh.intCD)
    if type == CUSTOMIZATION_ITEM_TYPE.CAMOUFLAGE:
        return (veh.descriptor.camouflages, igrDescr.camouflages, dossier.getBlock('camouflages'))
    elif type == CUSTOMIZATION_ITEM_TYPE.EMBLEM:
        return (veh.descriptor.playerEmblems, igrDescr.playerEmblems, dossier.getBlock('emblems'))
    elif type == CUSTOMIZATION_ITEM_TYPE.INSCRIPTION:
        return (veh.descriptor.playerInscriptions, igrDescr.playerInscriptions, dossier.getBlock('inscriptions'))
    else:
        return (None, None, None)
예제 #5
0
def getCustomizationElements(type, igrType):
    igrLayout = g_itemsCache.items.inventory.getIgrCustomizationsLayout()
    veh = g_currentVehicle.item
    defaultVehCompDescr = veh.descriptor.makeCompactDescr()
    igrVehCompDescr = getIGRCustomizedVehCompDescr(igrLayout, veh.invID, igrType, defaultVehCompDescr)
    igrDescr = vehicles.VehicleDescr(igrVehCompDescr)
    dossier = g_itemsCache.items.getVehicleDossier(veh.intCD)
    if type == CUSTOMIZATION_ITEM_TYPE.CAMOUFLAGE:
        return (veh.descriptor.camouflages, igrDescr.camouflages, dossier.getBlock('camouflages'))
    elif type == CUSTOMIZATION_ITEM_TYPE.EMBLEM:
        return (veh.descriptor.playerEmblems, igrDescr.playerEmblems, dossier.getBlock('emblems'))
    elif type == CUSTOMIZATION_ITEM_TYPE.INSCRIPTION:
        return (veh.descriptor.playerInscriptions, igrDescr.playerInscriptions, dossier.getBlock('inscriptions'))
    else:
        return (None, None, None)
        return None
예제 #6
0
def getUpdatedDescriptor(vehDescr):
    igrRoomType = g_instance.igr.getRoomType()
    igrLayout = g_itemsCache.items.inventory.getIgrCustomizationsLayout()
    igrVehCompDescr = getIGRCustomizedVehCompDescr(igrLayout, g_currentVehicle.item.invID, igrRoomType, vehDescr.makeCompactDescr())
    return vehicles.VehicleDescr(igrVehCompDescr)