-Changed var2str and str2var in GDScript to use VariantWriter and VariantParser
-It is now finally possible to parse back a variant from text!
This commit is contained in:
parent
335c52ba03
commit
b60a3e7202
5 changed files with 52 additions and 129 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue