diff options
author | yexo <yexo@openttd.org> | 2011-12-21 14:55:28 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2011-12-21 14:55:28 +0000 |
commit | 5988659eea20d3e84fdeadf448133e9b94e9630f (patch) | |
tree | 230c16eadf35e9868a3acf6d91b1b73ae412897d /src/script/squirrel_class.hpp | |
parent | a55478aaa6453d62f9708ee03393711b2d3120ee (diff) | |
download | openttd-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.hpp | 6 |
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(); |