From 3a535690d4e9aaa896a062e7b5b5454b1b07ac47 Mon Sep 17 00:00:00 2001 From: truebrain Date: Mon, 19 Dec 2011 21:00:32 +0000 Subject: (svn r23623) -Add: allow bi-directional communication with the AdminPort and GameScript --- src/script/api/game/game_admin.hpp.sq | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 src/script/api/game/game_admin.hpp.sq (limited to 'src/script/api/game/game_admin.hpp.sq') diff --git a/src/script/api/game/game_admin.hpp.sq b/src/script/api/game/game_admin.hpp.sq new file mode 100644 index 000000000..f8b994e80 --- /dev/null +++ b/src/script/api/game/game_admin.hpp.sq @@ -0,0 +1,27 @@ +/* $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 . + */ + +/* THIS FILE IS AUTO-GENERATED; PLEASE DO NOT ALTER MANUALLY */ + +#include "../script_admin.hpp" +#include "../template/template_admin.hpp.sq" + + +template <> const char *GetClassName() { return "GSAdmin"; } + +void SQGSAdmin_Register(Squirrel *engine) +{ + DefSQClass SQGSAdmin("GSAdmin"); + SQGSAdmin.PreRegister(engine); + SQGSAdmin.AddConstructor(engine, "x"); + + SQGSAdmin.DefSQAdvancedStaticMethod(engine, &ScriptAdmin::Send, "Send"); + + SQGSAdmin.PostRegister(engine); +} -- cgit v1.2.3-54-g00ecf