1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-10 12:52:39 +01:00
openrw/rwengine/include/loaders/GenericDATLoader.hpp
2015-06-14 21:52:47 +01:00

32 lines
814 B
C++

#ifndef _GENERICDATLOADER_HPP_
#define _GENERICDATLOADER_HPP_
#include <map>
#include <memory>
#include <vector>
struct DynamicObjectData;
typedef std::shared_ptr<DynamicObjectData> DynamicObjectDataPtr;
typedef std::map<std::string,DynamicObjectDataPtr> DynamicObjectDataPtrs;
struct WeaponData;
typedef std::shared_ptr<WeaponData> WeaponDataPtr;
typedef std::vector<WeaponDataPtr> WeaponDataPtrs;
struct VehicleInfo;
typedef std::shared_ptr<VehicleInfo> VehicleInfoPtr;
typedef std::map<std::string, VehicleInfoPtr> VehicleInfoPtrs;
class GenericDATLoader
{
public:
void loadDynamicObjects(const std::string& name, DynamicObjectDataPtrs& data);
void loadWeapons(const std::string& name, WeaponDataPtrs& weaponData);
void loadHandling(const std::string& name, VehicleInfoPtrs& vehicleData);
};
#endif