2013-07-02 12:16:41 +02:00
|
|
|
#pragma once
|
|
|
|
#ifndef _LOADERIDE_HPP_
|
|
|
|
#define _LOADERIDE_HPP_
|
|
|
|
|
|
|
|
#include <iostream>
|
|
|
|
#include <vector>
|
2013-11-26 17:14:13 +01:00
|
|
|
#include <memory>
|
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);
|
|
|
|
|
2013-11-26 17:14:13 +01:00
|
|
|
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;
|
|
|
|
std::vector<std::shared_ptr<PathData>> PATHs;
|
2013-07-02 12:16:41 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|