You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-19 14:31:59 +00:00
-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:
@@ -19,6 +19,20 @@ bool VariantParser::StreamFile::is_eof() const {
|
||||
}
|
||||
|
||||
|
||||
CharType VariantParser::StreamString::get_char() {
|
||||
|
||||
if (pos>=s.length())
|
||||
return 0;
|
||||
else
|
||||
return s[pos++];
|
||||
}
|
||||
|
||||
bool VariantParser::StreamString::is_utf8() const {
|
||||
return false;
|
||||
}
|
||||
bool VariantParser::StreamString::is_eof() const {
|
||||
return pos>s.length();
|
||||
}
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user