reflex2q3/ReflexToQ3/includes/v8mapparser.h

45 lines
912 B
C
Raw Normal View History

2017-04-05 18:08:54 +05:30
//
// Author: Michael Cameron
// Email: chronokun@hotmail.com
//
#pragma once
#ifndef __V8MAPPARSER_H__
#define __V8MAPPARSER_H__
// Includes
#include "worldspawn.h"
#include "libraries.h"
2017-04-05 18:08:54 +05:30
// enums
enum EParserState
{
PARSERSTATE_UNKNOWN, // 0
PARSERSTATE_ENTITY, // 1
PARSERSTATE_WORLDSPAWN, // 2
PARSERSTATE_BRUSH, // 3
PARSERSTATE_VERTEX, // 4
PARSERSTATE_FACE, // 5
PARSERSTATE_PREFAB // 6
2017-04-05 18:08:54 +05:30
};
class CMapParser
{
// Variables
public:
TWorldSpawn m_WorldSpawn;
// Functions
public:
const bool LoadMap(const char* _kpcFileName);
protected:
EParserState ParsePrefab(const std::string _Line);
EParserState ParseEntity(const std::string _Line);
EParserState ParseWorldSpawn(const std::string _Line);
EParserState ParseBrush(const std::string _Line);
EParserState ParseVertex(const std::string _Line);
EParserState ParseFace(const std::string _Line);
};
#endif