summaryrefslogtreecommitdiff
path: root/core/variant_parser.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/variant_parser.h')
-rw-r--r--core/variant_parser.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/core/variant_parser.h b/core/variant_parser.h
index 2bfb244fc8..831876705d 100644
--- a/core/variant_parser.h
+++ b/core/variant_parser.h
@@ -32,6 +32,19 @@ public:
};
+ struct StreamString : public Stream {
+
+ String s;
+ int pos;
+
+ virtual CharType get_char();
+ virtual bool is_utf8() const;
+ virtual bool is_eof() const;
+
+ StreamString() { pos=0; }
+
+ };
+
typedef Error (*ParseResourceFunc)(void* p_self, Stream* p_stream,Ref<Resource>& r_res,int &line,String &r_err_str);
struct ResourceParser {