Codechange: Remove manual param count for constructors too

This commit is contained in:
glx22
2025-06-08 22:29:02 +02:00
committed by Loïc Guilloux
parent 6d601e2eb1
commit ccffbb4142
5 changed files with 11 additions and 12 deletions

View File

@@ -108,11 +108,11 @@ public:
engine.AddClassBegin(this->classname, parent_class);
}
template <typename Func, int Tnparam>
template <typename Func>
void AddConstructor(Squirrel &engine, std::string_view params)
{
using namespace SQConvert;
engine.AddMethod("constructor", DefSQConstructorCallback<CL, Func, Tnparam>, params);
engine.AddMethod("constructor", DefSQConstructorCallback<CL, Func>, params);
}
void AddSQAdvancedConstructor(Squirrel &engine)