diff options
author | truebrain <truebrain@openttd.org> | 2011-12-19 20:59:12 +0000 |
---|---|---|
committer | truebrain <truebrain@openttd.org> | 2011-12-19 20:59:12 +0000 |
commit | c7c1deaf41a2ce8cfa30ea2eaf1ef808e6529eae (patch) | |
tree | 16f4e7513ad2f3e67332cb15c40ecbe0614d29c1 /src/script/api/game | |
parent | 55de5d336c2b82aa2393a28e09b64f72f4661a25 (diff) | |
download | openttd-c7c1deaf41a2ce8cfa30ea2eaf1ef808e6529eae.tar.xz |
(svn r23619) -Add: ScriptDate::GetSystemTime, to get the seconds since 1 Jan 1970 of the real system (GameScript only)
Diffstat (limited to 'src/script/api/game')
-rw-r--r-- | src/script/api/game/game_date.hpp.sq | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/script/api/game/game_date.hpp.sq b/src/script/api/game/game_date.hpp.sq index d78ed624d..43af86afa 100644 --- a/src/script/api/game/game_date.hpp.sq +++ b/src/script/api/game/game_date.hpp.sq @@ -26,6 +26,7 @@ void SQGSDate_Register(Squirrel *engine) SQGSDate.DefSQStaticMethod(engine, &ScriptDate::GetMonth, "GetMonth", 2, ".i"); SQGSDate.DefSQStaticMethod(engine, &ScriptDate::GetDayOfMonth, "GetDayOfMonth", 2, ".i"); SQGSDate.DefSQStaticMethod(engine, &ScriptDate::GetDate, "GetDate", 4, ".iii"); + SQGSDate.DefSQStaticMethod(engine, &ScriptDate::GetSystemTime, "GetSystemTime", 1, "."); SQGSDate.PostRegister(engine); } |