summaryrefslogtreecommitdiff
path: root/src/script/api/ai
diff options
context:
space:
mode:
authorzuu <zuu@openttd.org>2014-02-06 19:50:34 +0000
committerzuu <zuu@openttd.org>2014-02-06 19:50:34 +0000
commit96030141026ded3f892510ff9e3643319f27ebd8 (patch)
treee6e7475076685c561a7d1ff9e1161dbdc56d5f8b /src/script/api/ai
parent1dbd59e6ab9a917214d98c53a8ab8ca5b0d47223 (diff)
downloadopenttd-96030141026ded3f892510ff9e3643319f27ebd8.tar.xz
(svn r26307) -Add: [nogo] Allow GS to hide story page date
Diffstat (limited to 'src/script/api/ai')
-rw-r--r--src/script/api/ai/ai_date.hpp.sq3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/script/api/ai/ai_date.hpp.sq b/src/script/api/ai/ai_date.hpp.sq
index 3210a6950..7bdf9519d 100644
--- a/src/script/api/ai/ai_date.hpp.sq
+++ b/src/script/api/ai/ai_date.hpp.sq
@@ -21,6 +21,9 @@ void SQAIDate_Register(Squirrel *engine)
SQAIDate.PreRegister(engine);
SQAIDate.AddConstructor<void (ScriptDate::*)(), 1>(engine, "x");
+ SQAIDate.DefSQConst(engine, ScriptDate::DATE_INVALID, "DATE_INVALID");
+
+ SQAIDate.DefSQStaticMethod(engine, &ScriptDate::IsValidDate, "IsValidDate", 2, ".i");
SQAIDate.DefSQStaticMethod(engine, &ScriptDate::GetCurrentDate, "GetCurrentDate", 1, ".");
SQAIDate.DefSQStaticMethod(engine, &ScriptDate::GetYear, "GetYear", 2, ".i");
SQAIDate.DefSQStaticMethod(engine, &ScriptDate::GetMonth, "GetMonth", 2, ".i");