def init(preloadEverything, pricesToCollect=None):
    global _g_itemTypes
    _g_itemTypes = _readItemTypes()
    if pricesToCollect is not None:
        pricesToCollect['itemPrices'] = ItemsPrices()
        pricesToCollect['vehiclesRentPrices'] = {}
        pricesToCollect['notInShopItems'] = set()
        pricesToCollect['vehiclesNotToBuy'] = set()
        pricesToCollect['vehiclesToSellForGold'] = set()
        pricesToCollect['vehicleSellPriceFactors'] = {}
        pricesToCollect['vehicleCamouflagePriceFactors'] = {}
        pricesToCollect['camouflagePriceFactors'] = [{} for x in nations.NAMES]
        pricesToCollect['notInShopCamouflages'] = [
            set() for x in nations.NAMES
        ]
        pricesToCollect['inscriptionGroupPriceFactors'] = [
            {} for x in nations.NAMES
        ]
        pricesToCollect['notInShopInscriptionGroups'] = [
            set() for x in nations.NAMES
        ]
        pricesToCollect['playerEmblemGroupPriceFactors'] = {}
        pricesToCollect['notInShopPlayerEmblemGroups'] = set()
    from items import stun
    stun.init()
    from items import vehicles
    vehicles.init(preloadEverything, pricesToCollect)
    from items import avatars
    avatars.init()
    from items import tankmen
    tankmen.init(preloadEverything)
    from . import qualifiers
    qualifiers.init()
    return
예제 #2
0
def init(preloadEverything, pricesToCollect=None):
    global _g_itemTypes
    _g_itemTypes = _readItemTypes()
    from items import vehicles
    vehicles.init(preloadEverything, pricesToCollect)
    from items import tankmen
    tankmen.init(preloadEverything)
예제 #3
0
def init(preloadEverything, pricesToCollect = None):
    global _g_itemTypes
    _g_itemTypes = _readItemTypes()
    from items import vehicles
    vehicles.init(preloadEverything, pricesToCollect)
    from items import tankmen
    tankmen.init(preloadEverything)
예제 #4
0
def init(preloadEverything, pricesToCollect=None):
    global _g_itemTypes
    _g_itemTypes = _readItemTypes()
    if pricesToCollect is not None:
        pricesToCollect["itemPrices"] = {}
        pricesToCollect["vehiclesRentPrices"] = {}
        pricesToCollect["notInShopItems"] = set()
        pricesToCollect["vehiclesNotToBuy"] = set()
        pricesToCollect["vehiclesToSellForGold"] = set()
        pricesToCollect["vehicleSellPriceFactors"] = {}
        pricesToCollect["vehicleCamouflagePriceFactors"] = {}
        pricesToCollect["vehicleHornPriceFactors"] = {}
        pricesToCollect["hornPrices"] = {}
        pricesToCollect["camouflagePriceFactors"] = [{} for x in nations.NAMES]
        pricesToCollect["notInShopCamouflages"] = [set() for x in nations.NAMES]
        pricesToCollect["inscriptionGroupPriceFactors"] = [{} for x in nations.NAMES]
        pricesToCollect["notInShopInscriptionGroups"] = [set() for x in nations.NAMES]
        pricesToCollect["playerEmblemGroupPriceFactors"] = {}
        pricesToCollect["notInShopPlayerEmblemGroups"] = set()
    from items import vehicles

    vehicles.init(preloadEverything, pricesToCollect)
    from items import tankmen

    tankmen.init(preloadEverything)
    from . import qualifiers

    qualifiers.init()
    return