2013-07-02 12:16:41 +02:00
|
|
|
#pragma once
|
|
|
|
#ifndef _LOADERIDE_HPP_
|
|
|
|
#define _LOADERIDE_HPP_
|
|
|
|
|
|
|
|
#include <iostream>
|
2014-09-17 04:13:02 +02:00
|
|
|
#include <map>
|
2013-07-02 12:16:41 +02:00
|
|
|
#include <glm/glm.hpp>
|
2013-12-20 15:03:32 +01:00
|
|
|
#include <data/ObjectData.hpp>
|
2014-02-28 12:23:51 +01:00
|
|
|
#include <objects/VehicleInfo.hpp>
|
2013-12-20 15:03:32 +01:00
|
|
|
#include <data/PathData.hpp>
|
2013-07-02 12:16:41 +02:00
|
|
|
|
|
|
|
class LoaderIDE
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
enum SectionTypes
|
|
|
|
{
|
|
|
|
NONE,
|
|
|
|
OBJS,
|
|
|
|
TOBJ,
|
|
|
|
PEDS,
|
|
|
|
CARS,
|
|
|
|
HIER,
|
|
|
|
TWODFX,
|
|
|
|
PATH,
|
|
|
|
};
|
2013-11-26 17:14:13 +01:00
|
|
|
|
2013-07-02 12:16:41 +02:00
|
|
|
// Load the IDE data into memory
|
|
|
|
bool load(const std::string& filename);
|
|
|
|
|
2014-09-17 04:13:02 +02:00
|
|
|
/**
|
|
|
|
* @brief objects loaded during the call to load()
|
|
|
|
*/
|
|
|
|
std::map<ObjectID, ObjectInformationPtr> objects;
|
|
|
|
|
|
|
|
/*std::vector<std::shared_ptr<ObjectData>> OBJSs;
|
2014-02-28 12:23:51 +01:00
|
|
|
std::vector<std::shared_ptr<VehicleData>> CARSs;
|
2013-11-26 17:14:13 +01:00
|
|
|
std::vector<std::shared_ptr<CharacterData>> PEDSs;
|
2015-04-24 21:22:39 +02:00
|
|
|
std::vector<std::shared_ptr<CutsceneObjectData>> HIERs;
|
|
|
|
std::vector<std::shared_ptr<PathData>> PATHs;*/
|
2013-07-02 12:16:41 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|