summaryrefslogtreecommitdiff
path: root/src/script/squirrel_class.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/script/squirrel_class.hpp')
-rw-r--r--src/script/squirrel_class.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/script/squirrel_class.hpp b/src/script/squirrel_class.hpp
index 55efcdf13..ce63e3b03 100644
--- a/src/script/squirrel_class.hpp
+++ b/src/script/squirrel_class.hpp
@@ -117,6 +117,12 @@ public:
engine->AddMethod("constructor", DefSQConstructorCallback<CL, Func, Tnparam>, Tnparam, params);
}
+ void AddSQAdvancedConstructor(Squirrel *engine)
+ {
+ using namespace SQConvert;
+ engine->AddMethod("constructor", DefSQAdvancedConstructorCallback<CL>, 0, NULL);
+ }
+
void PostRegister(Squirrel *engine)
{
engine->AddClassEnd();