summaryrefslogtreecommitdiff
path: root/src/script/api
diff options
context:
space:
mode:
authortruebrain <truebrain@openttd.org>2011-12-21 15:06:00 +0000
committertruebrain <truebrain@openttd.org>2011-12-21 15:06:00 +0000
commitac306fc13883e727513824b4796c42c2baabd480 (patch)
treee69352da448f2d971f835f19b3cd79894fe8fa08 /src/script/api
parent5988659eea20d3e84fdeadf448133e9b94e9630f (diff)
downloadopenttd-ac306fc13883e727513824b4796c42c2baabd480.tar.xz
(svn r23652) -Fix: don't include/document ScriptText for AIs. It is not usable
Diffstat (limited to 'src/script/api')
-rw-r--r--src/script/api/ai/ai_text.hpp.sq31
-rw-r--r--src/script/api/script_text.hpp2
-rwxr-xr-xsrc/script/api/squirrel_export.sh2
3 files changed, 2 insertions, 33 deletions
diff --git a/src/script/api/ai/ai_text.hpp.sq b/src/script/api/ai/ai_text.hpp.sq
deleted file mode 100644
index 39f3ac792..000000000
--- a/src/script/api/ai/ai_text.hpp.sq
+++ /dev/null
@@ -1,31 +0,0 @@
-/* $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.AddSQAdvancedConstructor(engine);
-
- 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);
-}
diff --git a/src/script/api/script_text.hpp b/src/script/api/script_text.hpp
index 112947b29..cd2bca45f 100644
--- a/src/script/api/script_text.hpp
+++ b/src/script/api/script_text.hpp
@@ -65,7 +65,7 @@ private:
* can directly give those arguments to the ScriptText constructor, like this:
* \code local text = ScriptText(ScriptText.STR_NEWS, 1); \endcode
*
- * @api ai game
+ * @api game
*/
class ScriptText : public Text , public ZeroedMemoryAllocator {
public:
diff --git a/src/script/api/squirrel_export.sh b/src/script/api/squirrel_export.sh
index fb8e5bb8b..92bd434b9 100755
--- a/src/script/api/squirrel_export.sh
+++ b/src/script/api/squirrel_export.sh
@@ -106,7 +106,7 @@ functions=``
echo "
{ }
-/.hpp.sq/ { next }
+/.hpp.sq/ { if (match(\$0, \"template\")) print \$0; next }
/SQ${apiuc}Controller_Register/ { print \$0; next }
/SQ${apiuc}.*_Register/ { next }