summaryrefslogtreecommitdiff
path: root/src/script/squirrel_class.hpp
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2011-12-21 14:55:28 +0000
committeryexo <yexo@openttd.org>2011-12-21 14:55:28 +0000
commit5988659eea20d3e84fdeadf448133e9b94e9630f (patch)
tree230c16eadf35e9868a3acf6d91b1b73ae412897d /src/script/squirrel_class.hpp
parenta55478aaa6453d62f9708ee03393711b2d3120ee (diff)
downloadopenttd-5988659eea20d3e84fdeadf448133e9b94e9630f.tar.xz
(svn r23651) -Feature: [NoGo] GSText now accepts string arguments as parameters to the constructor
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();