From 7158aaea3100fbae72c75645800592117375f897 Mon Sep 17 00:00:00 2001 From: truebrain Date: Tue, 29 Nov 2011 23:29:20 +0000 Subject: (svn r23373) -Add: move the AI API to script/api/ai, and move the Squirrel C++ glue templates to script/api/template --- src/script/api/ai/ai_vehiclelist.hpp.sq | 85 +++++++++++++++++++++++++++++++++ 1 file changed, 85 insertions(+) create mode 100644 src/script/api/ai/ai_vehiclelist.hpp.sq (limited to 'src/script/api/ai/ai_vehiclelist.hpp.sq') diff --git a/src/script/api/ai/ai_vehiclelist.hpp.sq b/src/script/api/ai/ai_vehiclelist.hpp.sq new file mode 100644 index 000000000..39e5cb459 --- /dev/null +++ b/src/script/api/ai/ai_vehiclelist.hpp.sq @@ -0,0 +1,85 @@ +/* $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_vehiclelist.hpp" +#include "../template/template_vehiclelist.hpp.sq" + + +template <> const char *GetClassName() { return "AIVehicleList"; } + +void SQAIVehicleList_Register(Squirrel *engine) +{ + DefSQClass SQAIVehicleList("AIVehicleList"); + SQAIVehicleList.PreRegister(engine, "AIList"); + SQAIVehicleList.AddConstructor(engine, "x"); + + SQAIVehicleList.PostRegister(engine); +} + + +template <> const char *GetClassName() { return "AIVehicleList_Station"; } + +void SQAIVehicleList_Station_Register(Squirrel *engine) +{ + DefSQClass SQAIVehicleList_Station("AIVehicleList_Station"); + SQAIVehicleList_Station.PreRegister(engine, "AIList"); + SQAIVehicleList_Station.AddConstructor(engine, "xi"); + + SQAIVehicleList_Station.PostRegister(engine); +} + + +template <> const char *GetClassName() { return "AIVehicleList_Depot"; } + +void SQAIVehicleList_Depot_Register(Squirrel *engine) +{ + DefSQClass SQAIVehicleList_Depot("AIVehicleList_Depot"); + SQAIVehicleList_Depot.PreRegister(engine, "AIList"); + SQAIVehicleList_Depot.AddConstructor(engine, "xi"); + + SQAIVehicleList_Depot.PostRegister(engine); +} + + +template <> const char *GetClassName() { return "AIVehicleList_SharedOrders"; } + +void SQAIVehicleList_SharedOrders_Register(Squirrel *engine) +{ + DefSQClass SQAIVehicleList_SharedOrders("AIVehicleList_SharedOrders"); + SQAIVehicleList_SharedOrders.PreRegister(engine, "AIList"); + SQAIVehicleList_SharedOrders.AddConstructor(engine, "xi"); + + SQAIVehicleList_SharedOrders.PostRegister(engine); +} + + +template <> const char *GetClassName() { return "AIVehicleList_Group"; } + +void SQAIVehicleList_Group_Register(Squirrel *engine) +{ + DefSQClass SQAIVehicleList_Group("AIVehicleList_Group"); + SQAIVehicleList_Group.PreRegister(engine, "AIList"); + SQAIVehicleList_Group.AddConstructor(engine, "xi"); + + SQAIVehicleList_Group.PostRegister(engine); +} + + +template <> const char *GetClassName() { return "AIVehicleList_DefaultGroup"; } + +void SQAIVehicleList_DefaultGroup_Register(Squirrel *engine) +{ + DefSQClass SQAIVehicleList_DefaultGroup("AIVehicleList_DefaultGroup"); + SQAIVehicleList_DefaultGroup.PreRegister(engine, "AIList"); + SQAIVehicleList_DefaultGroup.AddConstructor(engine, "xi"); + + SQAIVehicleList_DefaultGroup.PostRegister(engine); +} -- cgit v1.2.3-54-g00ecf