mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-31 05:31:01 +00:00 
			
		
		
		
	Add ability to bind typed arrays to script API
Note: Only replaced 2 instances to test, Node.get_children and TileMap.get_used_cells Note: Will do a mass replace on later PRs of whathever I can find, but probably need a tool to grep through doc. Warning: Mono will break, needs to be fixed (and so do TypeScript and NativeScript, need to ask respective maintainers)
This commit is contained in:
		
							parent
							
								
									7343ec13d9
								
							
						
					
					
						commit
						5d4dc2d45c
					
				
					 24 changed files with 452 additions and 10 deletions
				
			
		|  | @ -140,6 +140,13 @@ bool PluginScript::can_instance() const { | |||
| 	return can; | ||||
| } | ||||
| 
 | ||||
| bool PluginScript::inherits_script(const Ref<Script> &p_script) const { | ||||
| #ifndef _MSC_VER | ||||
| #warning inheritance needs to be implemented in PluginScript | ||||
| #endif | ||||
| 	return false; | ||||
| } | ||||
| 
 | ||||
| Ref<Script> PluginScript::get_base_script() const { | ||||
| 	if (_ref_base_parent.is_valid()) { | ||||
| 		return Ref<PluginScript>(_ref_base_parent); | ||||
|  |  | |||
|  | @ -72,6 +72,8 @@ private: | |||
| protected: | ||||
| 	static void _bind_methods(); | ||||
| 
 | ||||
| 	bool inherits_script(const Ref<Script> &p_script) const; | ||||
| 
 | ||||
| 	PluginScriptInstance *_create_instance(const Variant **p_args, int p_argcount, Object *p_owner, Callable::CallError &r_error); | ||||
| 	Variant _new(const Variant **p_args, int p_argcount, Callable::CallError &r_error); | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Juan Linietsky
						Juan Linietsky