You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
-some changes by okam
This commit is contained in:
@@ -1977,9 +1977,17 @@ void GDScript::_bind_methods() {
|
||||
|
||||
ObjectTypeDB::bind_native_method(METHOD_FLAGS_DEFAULT,"new",&GDScript::_new,MethodInfo("new"));
|
||||
|
||||
ObjectTypeDB::bind_method(_MD("get_as_byte_code"),&GDScript::get_as_byte_code);
|
||||
|
||||
}
|
||||
|
||||
|
||||
Vector<uint8_t> GDScript::get_as_byte_code() const {
|
||||
|
||||
GDTokenizerBuffer tokenizer;
|
||||
return tokenizer.parse_code_string(source);
|
||||
};
|
||||
|
||||
|
||||
Error GDScript::load_byte_code(const String& p_path) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user