mirror of
https://github.com/godotengine/godot.git
synced 2025-10-25 18:54:43 +00:00
PluginScript: Add support for the new() method
This commit is contained in:
parent
4e1995c29b
commit
3feabd6756
3 changed files with 85 additions and 13 deletions
|
|
@ -37,8 +37,6 @@
|
|||
#include "pluginscript_language.h"
|
||||
#include <pluginscript/godot_pluginscript.h>
|
||||
|
||||
class PyInstance;
|
||||
|
||||
class PluginScript : public Script {
|
||||
|
||||
GDCLASS(PluginScript, Script);
|
||||
|
|
@ -74,6 +72,9 @@ private:
|
|||
protected:
|
||||
static void _bind_methods();
|
||||
|
||||
PluginScriptInstance *_create_instance(const Variant **p_args, int p_argcount, Object *p_owner, Variant::CallError &r_error);
|
||||
Variant _new(const Variant **p_args, int p_argcount, Variant::CallError &r_error);
|
||||
|
||||
#ifdef TOOLS_ENABLED
|
||||
Set<PlaceHolderScriptInstance *> placeholders;
|
||||
//void _update_placeholder(PlaceHolderScriptInstance *p_placeholder);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue