1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-10 12:52:39 +01:00
openrw/rwengine/include/loaders/LoaderIDE.hpp
Daniel Evans cfca1cbdc8 Refactor Object data into heirarchy
+ All Object Data classes inheirt from ObjectInformation which stores
  the ID and class_type, which maps to the IDE name.
- Remove all object mappings except for objectTypes, which now stores
  all of them.
2014-09-17 03:13:02 +01:00

43 lines
796 B
C++

#pragma once
#ifndef _LOADERIDE_HPP_
#define _LOADERIDE_HPP_
#include <iostream>
#include <map>
#include <glm/glm.hpp>
#include <data/ObjectData.hpp>
#include <objects/VehicleInfo.hpp>
#include <data/PathData.hpp>
class LoaderIDE
{
public:
enum SectionTypes
{
NONE,
OBJS,
TOBJ,
PEDS,
CARS,
HIER,
TWODFX,
PATH,
};
// Load the IDE data into memory
bool load(const std::string& filename);
/**
* @brief objects loaded during the call to load()
*/
std::map<ObjectID, ObjectInformationPtr> objects;
/*std::vector<std::shared_ptr<ObjectData>> OBJSs;
std::vector<std::shared_ptr<VehicleData>> CARSs;
std::vector<std::shared_ptr<CharacterData>> PEDSs;
std::vector<std::shared_ptr<CutsceneObjectData>> HIERs;*/
std::vector<std::shared_ptr<PathData>> PATHs;
};
#endif