X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=src%2Floader%2FParsedSource.h;h=98ecd8423c401652f235c01a5ed7d68d40b1379b;hb=d5959073b2c413ba1bd6f3d14bc8bcf59304e488;hp=36f3810ab434cb8805bb188b95348f6984165a91;hpb=40e697f7265b98dd99918d9c3f5541d9878d80b0;p=l2e.git diff --git a/src/loader/ParsedSource.h b/src/loader/ParsedSource.h index 36f3810..98ecd84 100644 --- a/src/loader/ParsedSource.h +++ b/src/loader/ParsedSource.h @@ -28,6 +28,7 @@ public: BOOLEAN, COLOR, NUMBER, + PATH, STRING, VECTOR, OBJECT @@ -39,6 +40,7 @@ public: explicit Literal(bool); Literal(int r, int g, int b, int a = 255); explicit Literal(int number); + Literal(const std::string &dir, const std::string &path); Literal(const std::string &); Literal(int x, int y); Literal(const std::string &typeName, PropertyList *properties); @@ -204,6 +206,9 @@ public: const std::map &Definitions() const { return definitions; } const std::set &Exports() const { return exports; } +public: + void WriteHeader(std::ostream &) const; + private: std::map declarations; std::map definitions;