summaryrefslogtreecommitdiff
path: root/src/ai/api/ai_sign.hpp.sq
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2009-08-18 18:51:42 +0000
committeryexo <yexo@openttd.org>2009-08-18 18:51:42 +0000
commit67106dc0633c50ef6545d0ab6253384b276ab40e (patch)
tree09964556afb30a650b4549b0a919ba38230e363a /src/ai/api/ai_sign.hpp.sq
parent58a0ff945c4025e20e30868c8774c8528909600c (diff)
downloadopenttd-67106dc0633c50ef6545d0ab6253384b276ab40e.tar.xz
(svn r17214) -Add [NoAI]: GetAPIVersion() as optional function in info.nut. Return "0.7" to get an api compatible (as much as possible) with the 0.7 api or "0.8" to get the latest api.
-Change [NoAI]: move all deprecated functions to a separate squirrel script that is only loaded if an AI requests an old API version.
Diffstat (limited to 'src/ai/api/ai_sign.hpp.sq')
-rw-r--r--src/ai/api/ai_sign.hpp.sq13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/ai/api/ai_sign.hpp.sq b/src/ai/api/ai_sign.hpp.sq
index 33ac6720b..2c5ef8039 100644
--- a/src/ai/api/ai_sign.hpp.sq
+++ b/src/ai/api/ai_sign.hpp.sq
@@ -28,13 +28,12 @@ void SQAISign_Register(Squirrel *engine) {
AIError::RegisterErrorMapString(AISign::ERR_SIGN_TOO_MANY_SIGNS, "ERR_SIGN_TOO_MANY_SIGNS");
- SQAISign.DefSQStaticMethod(engine, &AISign::GetMaxSignID, "GetMaxSignID", 1, ".");
- SQAISign.DefSQStaticMethod(engine, &AISign::IsValidSign, "IsValidSign", 2, ".i");
- SQAISign.DefSQStaticMethod(engine, &AISign::SetName, "SetName", 3, ".is");
- SQAISign.DefSQStaticMethod(engine, &AISign::GetName, "GetName", 2, ".i");
- SQAISign.DefSQStaticMethod(engine, &AISign::GetLocation, "GetLocation", 2, ".i");
- SQAISign.DefSQStaticMethod(engine, &AISign::BuildSign, "BuildSign", 3, ".is");
- SQAISign.DefSQStaticMethod(engine, &AISign::RemoveSign, "RemoveSign", 2, ".i");
+ SQAISign.DefSQStaticMethod(engine, &AISign::IsValidSign, "IsValidSign", 2, ".i");
+ SQAISign.DefSQStaticMethod(engine, &AISign::SetName, "SetName", 3, ".is");
+ SQAISign.DefSQStaticMethod(engine, &AISign::GetName, "GetName", 2, ".i");
+ SQAISign.DefSQStaticMethod(engine, &AISign::GetLocation, "GetLocation", 2, ".i");
+ SQAISign.DefSQStaticMethod(engine, &AISign::BuildSign, "BuildSign", 3, ".is");
+ SQAISign.DefSQStaticMethod(engine, &AISign::RemoveSign, "RemoveSign", 2, ".i");
SQAISign.PostRegister(engine);
}