2021-08-27 23:12:20 -04:00
|
|
|
#pragma once
|
|
|
|
#include <map>
|
2021-10-24 18:08:00 -04:00
|
|
|
#include <vector>
|
2021-10-25 10:03:27 -04:00
|
|
|
#include <string>
|
2021-08-27 23:12:20 -04:00
|
|
|
|
|
|
|
class FileHandler
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
FileHandler() = delete;
|
2021-10-25 10:03:27 -04:00
|
|
|
FileHandler(FileHandler&) = delete;
|
2021-08-27 23:12:20 -04:00
|
|
|
|
|
|
|
/*
|
2021-10-23 16:57:34 -04:00
|
|
|
Parses data/carcols.dat file and stores color data
|
2021-08-27 23:12:20 -04:00
|
|
|
TODO: Implement something that also parses modloader data
|
|
|
|
*/
|
2021-10-25 10:03:27 -04:00
|
|
|
static void FetchColorData(std::vector<std::vector<float>>& storeVec);
|
2021-08-27 23:12:20 -04:00
|
|
|
/*
|
|
|
|
Parses data/vehicles.ide file and stores handingId in a map
|
|
|
|
TODO: Implement something that also parses modloader data
|
|
|
|
*/
|
2021-10-25 10:03:27 -04:00
|
|
|
static void FetchHandlingID(std::map<int, std::string>& storeMap);
|
|
|
|
static void GenerateHandlingFile(int pHandling, std::map<int, std::string>& storeMap);
|
2021-08-27 23:12:20 -04:00
|
|
|
};
|
2021-10-25 10:03:27 -04:00
|
|
|
|