mirror of
https://github.com/rwengine/openrw.git
synced 2024-11-23 02:42:39 +01:00
GTAData now loads weather
This commit is contained in:
parent
47117cbd65
commit
b6e096a7ec
@ -75,6 +75,7 @@ void GTAData::load()
|
||||
loadDFF("wheels.DFF");
|
||||
|
||||
loadCarcols(datpath+"/data/carcols.dat");
|
||||
loadWeather(datpath+"/data/timecyc.dat");
|
||||
}
|
||||
|
||||
void GTAData::parseDAT(const std::string& path)
|
||||
@ -248,6 +249,11 @@ void GTAData::loadCarcols(const std::string& path)
|
||||
}
|
||||
}
|
||||
|
||||
void GTAData::loadWeather(const std::string &path)
|
||||
{
|
||||
weatherLoader.load(path);
|
||||
}
|
||||
|
||||
void GTAData::loadTXD(const std::string& name)
|
||||
{
|
||||
if( loadedFiles.find(name) != loadedFiles.end()) {
|
||||
|
@ -6,6 +6,7 @@
|
||||
#include <renderwure/loaders/TextureLoader.hpp>
|
||||
#include <renderwure/loaders/LoaderDFF.hpp>
|
||||
#include <renderwure/loaders/LoaderIDE.hpp>
|
||||
#include <renderwure/loaders/WeatherLoader.hpp>
|
||||
|
||||
#include <string>
|
||||
#include <map>
|
||||
@ -65,6 +66,8 @@ public:
|
||||
void loadIPL(const std::string& name);
|
||||
|
||||
void loadCarcols(const std::string& path);
|
||||
|
||||
void loadWeather(const std::string& path);
|
||||
|
||||
void load();
|
||||
|
||||
@ -125,6 +128,11 @@ public:
|
||||
* Texture Loader
|
||||
*/
|
||||
TextureLoader textureLoader;
|
||||
|
||||
/**
|
||||
* Weather Loader
|
||||
*/
|
||||
WeatherLoader weatherLoader;
|
||||
|
||||
/**
|
||||
* Loaded models
|
||||
|
Loading…
Reference in New Issue
Block a user