26 lines
761 B
C++
26 lines
761 B
C++
#pragma once
|
|
#include <map>
|
|
#include <vector>
|
|
#include <string>
|
|
|
|
class FileHandler
|
|
{
|
|
public:
|
|
FileHandler() = delete;
|
|
FileHandler(FileHandler&) = delete;
|
|
|
|
/*
|
|
Parses data/carcols.dat file and stores color data per vehicle
|
|
TODO: Implement something that also parses modloader data
|
|
*/
|
|
static void FetchColorData(std::vector<std::vector<float>>& storeVec,
|
|
std::map<std::string, std::vector<int>>& storeMap);
|
|
/*
|
|
Parses data/vehicles.ide file and stores handingId in a map
|
|
TODO: Implement something that also parses modloader data
|
|
*/
|
|
static void FetchHandlingID(std::map<int, std::string>& storeMap);
|
|
static void GenerateHandlingFile(int pHandling, std::map<int, std::string>& storeMap);
|
|
};
|
|
|