Exemplo n.º 1
0
        public static CustomCar getCustomCar(CarEntity carEntity)
        {
            CustomCar customCar = new CustomCar();
            customCar.baseCarId = carEntity.baseCarId;
            customCar.carClassHash = (Int32)carEntity.raceClass;
            customCar.id = carEntity.id;
            customCar.isPreset = false;
            customCar.level = 0;
            customCar.name = null;
            customCar.paints = carEntity.paints;
            customCar.performanceParts = carEntity.performanceParts;
            customCar.physicsProfileHash = carEntity.physicsProfileHash;
            customCar.rating = carEntity.rating;
            customCar.resalePrice = carEntity.resalePrice;
            customCar.skillModParts = carEntity.skillModParts;
            customCar.skillModSlotCount = 6;
            customCar.vinyls = carEntity.vinyls;
            customCar.visualParts = carEntity.visualParts;

            return customCar;
        }
Exemplo n.º 2
0
        public static CustomCar getCustomCar(CarEntity carEntity)
        {
            CustomCar customCar = new CustomCar();

            customCar.baseCarId          = carEntity.baseCarId;
            customCar.carClassHash       = (Int32)carEntity.raceClass;
            customCar.id                 = carEntity.id;
            customCar.isPreset           = false;
            customCar.level              = 0;
            customCar.name               = null;
            customCar.paints             = carEntity.paints;
            customCar.performanceParts   = carEntity.performanceParts;
            customCar.physicsProfileHash = carEntity.physicsProfileHash;
            customCar.rating             = carEntity.rating;
            customCar.resalePrice        = carEntity.resalePrice;
            customCar.skillModParts      = carEntity.skillModParts;
            customCar.skillModSlotCount  = 6;
            customCar.vinyls             = carEntity.vinyls;
            customCar.visualParts        = carEntity.visualParts;

            return(customCar);
        }