mirror of
https://github.com/godotengine/godot.git
synced 2025-10-31 21:51:22 +00:00
-some changes by okam
This commit is contained in:
parent
95047562d7
commit
55b34e05b3
13 changed files with 72 additions and 6 deletions
|
|
@ -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) {
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue