26 lines
620 B
C++
26 lines
620 B
C++
|
|
||
|
#ifndef __OOPLESS_PARSER__
|
||
|
#define __OOPLESS_PARSER__
|
||
|
|
||
|
#include "worldspawn.h"
|
||
|
#include <vector>
|
||
|
#include <fstream>
|
||
|
#include <string>
|
||
|
|
||
|
void write(const TBrush &object, const char * const fn);
|
||
|
|
||
|
void write(const std::vector<std::string> &object, const char * const fn);
|
||
|
|
||
|
std::vector<std::string> get_entity(std::ifstream &f);
|
||
|
|
||
|
std::vector<Eigen::Vector3f> parse_vertices(std::ifstream &f);
|
||
|
|
||
|
std::vector<TFace> parse_face(std::ifstream & f);
|
||
|
|
||
|
struct TBrush parse_brush(std::ifstream & f);
|
||
|
|
||
|
void parse_prefab(std::ifstream & f, const char * const out);
|
||
|
|
||
|
bool loadmap(const char* infile, const char * const outfile);
|
||
|
|
||
|
#endif
|