Retro68/Rez/RezWorld.h
Wolfgang Thaller 399131a8a6 Rez: switch
2014-10-08 01:17:17 +02:00

26 lines
512 B
C++

#ifndef REZWORLD_H
#define REZWORLD_H
#include <map>
#include <stack>
#include "ResourceDefinitions.h"
#include "Expression.h"
class RezWorld
{
friend class RezParser;
std::map<TypeSpec, TypeDefinitionPtr> types;
std::stack<FieldListPtr> fieldLists;
std::stack<IdentifierExprPtr> functionCalls;
std::stack<SwitchFieldPtr> switches;
public:
RezWorld();
void addTypeDefinition(TypeSpec spec, TypeDefinitionPtr type);
TypeDefinitionPtr getTypeDefinition(ResType type, int id);
};
#endif // REZWORLD_H