summaryrefslogtreecommitdiff
path: root/src/script/api/ai
diff options
context:
space:
mode:
authortruebrain <truebrain@openttd.org>2011-12-19 21:06:06 +0000
committertruebrain <truebrain@openttd.org>2011-12-19 21:06:06 +0000
commit102f811d0277afefe5c90762c0c4cc11ab69713c (patch)
tree1c7343e8031eab2c764cff974bd9df9a814c3dd9 /src/script/api/ai
parentb0ac529a6ff4e087520a14d2a0169f445952e7e0 (diff)
downloadopenttd-102f811d0277afefe5c90762c0c4cc11ab69713c.tar.xz
(svn r23636) -Add: introduce ScriptText in parameters where it can be used
Diffstat (limited to 'src/script/api/ai')
-rw-r--r--src/script/api/ai/ai_text.hpp.sq31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/script/api/ai/ai_text.hpp.sq b/src/script/api/ai/ai_text.hpp.sq
new file mode 100644
index 000000000..e1d8e96c6
--- /dev/null
+++ b/src/script/api/ai/ai_text.hpp.sq
@@ -0,0 +1,31 @@
+/* $Id$ */
+
+/*
+ * This file is part of OpenTTD.
+ * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
+ * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+/* THIS FILE IS AUTO-GENERATED; PLEASE DO NOT ALTER MANUALLY */
+
+#include "../script_text.hpp"
+#include "../template/template_text.hpp.sq"
+
+
+template <> const char *GetClassName<ScriptText, ST_AI>() { return "AIText"; }
+
+void SQAIText_Register(Squirrel *engine)
+{
+ DefSQClass<ScriptText, ST_AI> SQAIText("AIText");
+ SQAIText.PreRegister(engine);
+ SQAIText.AddConstructor<void (ScriptText::*)(StringID string), 2>(engine, "xi");
+
+ SQAIText.DefSQConst(engine, ScriptText::SCRIPT_TEXT_MAX_PARAMETERS, "SCRIPT_TEXT_MAX_PARAMETERS");
+
+ SQAIText.DefSQAdvancedMethod(engine, &ScriptText::_set, "_set");
+ SQAIText.DefSQAdvancedMethod(engine, &ScriptText::SetParam, "SetParam");
+ SQAIText.DefSQAdvancedMethod(engine, &ScriptText::AddParam, "AddParam");
+
+ SQAIText.PostRegister(engine);
+}