1
0
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:
Timmy Sjöstedt 2013-07-04 12:00:30 +02:00
parent 47117cbd65
commit b6e096a7ec
2 changed files with 14 additions and 0 deletions

View File

@ -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()) {

View File

@ -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