If I write the module's header like this :
ClassDB::bind_method(D_METHOD("_init", "size"), &TestClass::_init);
void _init(int size) { some codes... }
And I write my gds codes like this:
var a = TestClass.new(15)
report the error when the code running :
Invalid call to function 'new' in base 'GDScriptNativeClass'. Expected 0 arguments.
By the way, If I write new() without arguments. The built-in script editor will report the error:
Too few Arguments for "_init()" call.
How should I do?