2017-05-05 14:16:44 +05:30
|
|
|
|
|
|
|
#ifndef __OOPLESS_PARSER__
|
|
|
|
#define __OOPLESS_PARSER__
|
|
|
|
|
2017-05-06 05:41:22 +05:30
|
|
|
#include "planes.h"
|
2017-05-05 14:16:44 +05:30
|
|
|
#include "worldspawn.h"
|
2017-05-06 05:41:22 +05:30
|
|
|
#include <string>
|
2017-05-05 14:16:44 +05:30
|
|
|
#include <vector>
|
|
|
|
#include <fstream>
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-05-06 05:41:22 +05:30
|
|
|
bool write(const struct TBrush &,
|
|
|
|
std::ofstream &,
|
|
|
|
void (*f) (std::stringstream &, const std::vector<TPlanePoints> &));
|
|
|
|
|
|
|
|
void write(const std::vector<std::string> &, std::ofstream &);
|
|
|
|
|
|
|
|
std::vector<std::string> get_entity(std::ifstream &);
|
2017-05-05 14:16:44 +05:30
|
|
|
|
2017-05-06 05:41:22 +05:30
|
|
|
std::vector<Eigen::Vector3f> parse_vertices(std::ifstream &);
|
2017-05-05 14:16:44 +05:30
|
|
|
|
2017-05-06 05:41:22 +05:30
|
|
|
std::vector<TFace> parse_face(std::ifstream &);
|
2017-05-05 14:16:44 +05:30
|
|
|
|
2017-05-06 05:41:22 +05:30
|
|
|
struct TBrush parse_brush(std::ifstream &);
|
2017-05-05 14:16:44 +05:30
|
|
|
|
2017-05-06 05:41:22 +05:30
|
|
|
void parse_prefab(std::ifstream &,
|
|
|
|
std::ofstream &,
|
|
|
|
void (*f) (std::stringstream &, const std::vector<TPlanePoints> &));
|
2017-05-05 14:16:44 +05:30
|
|
|
|
2017-05-06 05:41:22 +05:30
|
|
|
bool convertmap(const char * const,
|
|
|
|
const char * const,
|
|
|
|
void (*f) (std::stringstream &, const std::vector<TPlanePoints> &));
|
2017-05-05 14:16:44 +05:30
|
|
|
|
|
|
|
#endif
|