summaryrefslogtreecommitdiff
path: root/src/ai/api/ai_error.hpp.sq
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-02-12 22:25:53 +0000
committerrubidium <rubidium@openttd.org>2009-02-12 22:25:53 +0000
commit0111a10d7ad304e6e6722e849e28fc9c6afe6d16 (patch)
tree3e221a4c240d5e3816d46d5d1e22664047944955 /src/ai/api/ai_error.hpp.sq
parent87bc20e7dd9f75e5f3b84dafad720ba9baae9604 (diff)
downloadopenttd-0111a10d7ad304e6e6722e849e28fc9c6afe6d16.tar.xz
(svn r15460) -Fix [NoAI]: don't require an instance to exist in the scope for static functions and limit exposure of the internal function GetClassName.
Diffstat (limited to 'src/ai/api/ai_error.hpp.sq')
-rw-r--r--src/ai/api/ai_error.hpp.sq13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/ai/api/ai_error.hpp.sq b/src/ai/api/ai_error.hpp.sq
index 1955de76b..929907599 100644
--- a/src/ai/api/ai_error.hpp.sq
+++ b/src/ai/api/ai_error.hpp.sq
@@ -109,13 +109,12 @@ void SQAIError_Register(Squirrel *engine) {
AIError::RegisterErrorMapString(AIError::ERR_TOO_CLOSE_TO_EDGE, "ERR_TOO_CLOSE_TO_EDGE");
AIError::RegisterErrorMapString(AIError::ERR_STATION_TOO_SPREAD_OUT, "ERR_STATION_TOO_SPREAD_OUT");
- SQAIError.DefSQStaticMethod(engine, &AIError::GetClassName, "GetClassName", 1, "x");
- SQAIError.DefSQStaticMethod(engine, &AIError::GetErrorCategory, "GetErrorCategory", 1, "x");
- SQAIError.DefSQStaticMethod(engine, &AIError::GetLastError, "GetLastError", 1, "x");
- SQAIError.DefSQStaticMethod(engine, &AIError::GetLastErrorString, "GetLastErrorString", 1, "x");
- SQAIError.DefSQStaticMethod(engine, &AIError::StringToError, "StringToError", 2, "xi");
- SQAIError.DefSQStaticMethod(engine, &AIError::RegisterErrorMap, "RegisterErrorMap", 3, "xii");
- SQAIError.DefSQStaticMethod(engine, &AIError::RegisterErrorMapString, "RegisterErrorMapString", 3, "xis");
+ SQAIError.DefSQStaticMethod(engine, &AIError::GetErrorCategory, "GetErrorCategory", 1, "?");
+ SQAIError.DefSQStaticMethod(engine, &AIError::GetLastError, "GetLastError", 1, "?");
+ SQAIError.DefSQStaticMethod(engine, &AIError::GetLastErrorString, "GetLastErrorString", 1, "?");
+ SQAIError.DefSQStaticMethod(engine, &AIError::StringToError, "StringToError", 2, "?i");
+ SQAIError.DefSQStaticMethod(engine, &AIError::RegisterErrorMap, "RegisterErrorMap", 3, "?ii");
+ SQAIError.DefSQStaticMethod(engine, &AIError::RegisterErrorMapString, "RegisterErrorMapString", 3, "?is");
SQAIError.PostRegister(engine);
}