mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-14 08:30:50 +00:00
ef98757c7c
- removed all remnants of finesine and deleted tables.c and tables.h.
36 lines
No EOL
638 B
C++
36 lines
No EOL
638 B
C++
#ifndef __P_UDMF_H
|
|
#define __P_UDMF_H
|
|
|
|
#include "sc_man.h"
|
|
#include "m_fixed.h"
|
|
|
|
class UDMFParserBase
|
|
{
|
|
protected:
|
|
FScanner sc;
|
|
FName namespc;
|
|
int namespace_bits;
|
|
FString parsedString;
|
|
|
|
void Skip();
|
|
FName ParseKey(bool checkblock = false, bool *isblock = NULL);
|
|
int CheckInt(const char *key);
|
|
double CheckFloat(const char *key);
|
|
DAngle CheckAngle(const char *key);
|
|
bool CheckBool(const char *key);
|
|
const char *CheckString(const char *key);
|
|
|
|
template<typename T>
|
|
void Flag(T &value, int mask, const char *key)
|
|
{
|
|
if (CheckBool(key))
|
|
value |= mask;
|
|
else
|
|
value &= ~mask;
|
|
}
|
|
|
|
};
|
|
|
|
#define BLOCK_ID (ENamedName)-1
|
|
|
|
#endif |