mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-31 21:51:22 +00:00 
			
		
		
		
	Allow registering "runtime classes"
This commit is contained in:
		
							parent
							
								
									dfe226b933
								
							
						
					
					
						commit
						ea75307a11
					
				
					 9 changed files with 401 additions and 38 deletions
				
			
		|  | @ -1379,7 +1379,7 @@ static GDExtensionMethodBindPtr gdextension_classdb_get_method_bind(GDExtensionC | |||
| 
 | ||||
| static GDExtensionObjectPtr gdextension_classdb_construct_object(GDExtensionConstStringNamePtr p_classname) { | ||||
| 	const StringName classname = *reinterpret_cast<const StringName *>(p_classname); | ||||
| 	return (GDExtensionObjectPtr)ClassDB::instantiate(classname); | ||||
| 	return (GDExtensionObjectPtr)ClassDB::instantiate_no_placeholders(classname); | ||||
| } | ||||
| 
 | ||||
| static void *gdextension_classdb_get_class_tag(GDExtensionConstStringNamePtr p_classname) { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 David Snopek
						David Snopek