Merge 1.9.0-beta2

This commit is contained in:
Pavel Stupnikov
2019-02-14 00:47:22 +03:00
1364 changed files with 22213 additions and 10721 deletions

View File

@@ -1,4 +1,4 @@
# $Id: Doxyfile_AI 25595 2013-07-13 06:44:22Z rubidium $
# $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.

View File

@@ -1,4 +1,4 @@
# $Id: Doxyfile_Game 25595 2013-07-13 06:44:22Z rubidium $
# $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.

View File

@@ -1,4 +1,4 @@
/* $Id: ai_accounting.hpp.sq 23379 2011-11-30 14:11:02Z truebrain $ */
/* $Id$ */
/*
* This file is part of OpenTTD.

View File

@@ -1,4 +1,4 @@
/* $Id: ai_airport.hpp.sq 23416 2011-12-03 23:40:57Z michi_cc $ */
/* $Id$ */
/*
* This file is part of OpenTTD.
@@ -52,6 +52,7 @@ void SQAIAirport_Register(Squirrel *engine)
SQAIAirport.DefSQStaticMethod(engine, &ScriptAirport::GetNoiseLevelIncrease, "GetNoiseLevelIncrease", 3, ".ii");
SQAIAirport.DefSQStaticMethod(engine, &ScriptAirport::GetNearestTown, "GetNearestTown", 3, ".ii");
SQAIAirport.DefSQStaticMethod(engine, &ScriptAirport::GetMaintenanceCostFactor, "GetMaintenanceCostFactor", 2, ".i");
SQAIAirport.DefSQStaticMethod(engine, &ScriptAirport::GetMonthlyMaintenanceCost, "GetMonthlyMaintenanceCost", 2, ".i");
SQAIAirport.PostRegister(engine);
}

View File

@@ -1,4 +1,4 @@
/* $Id: ai_base.hpp.sq 23379 2011-11-30 14:11:02Z truebrain $ */
/* $Id$ */
/*
* This file is part of OpenTTD.

View File

@@ -1,4 +1,4 @@
/* $Id: ai_basestation.hpp.sq 23379 2011-11-30 14:11:02Z truebrain $ */
/* $Id$ */
/*
* This file is part of OpenTTD.

View File

@@ -1,4 +1,4 @@
/* $Id: ai_bridge.hpp.sq 23379 2011-11-30 14:11:02Z truebrain $ */
/* $Id$ */
/*
* This file is part of OpenTTD.
@@ -37,7 +37,7 @@ void SQAIBridge_Register(Squirrel *engine)
SQAIBridge.DefSQStaticMethod(engine, &ScriptBridge::IsValidBridge, "IsValidBridge", 2, ".i");
SQAIBridge.DefSQStaticMethod(engine, &ScriptBridge::IsBridgeTile, "IsBridgeTile", 2, ".i");
SQAIBridge.DefSQStaticMethod(engine, &ScriptBridge::GetBridgeID, "GetBridgeID", 2, ".i");
SQAIBridge.DefSQStaticMethod(engine, &ScriptBridge::GetName, "GetName", 2, ".i");
SQAIBridge.DefSQStaticMethod(engine, &ScriptBridge::GetName, "GetName", 3, ".ii");
SQAIBridge.DefSQStaticMethod(engine, &ScriptBridge::GetMaxSpeed, "GetMaxSpeed", 2, ".i");
SQAIBridge.DefSQStaticMethod(engine, &ScriptBridge::GetPrice, "GetPrice", 3, ".ii");
SQAIBridge.DefSQStaticMethod(engine, &ScriptBridge::GetMaxLength, "GetMaxLength", 2, ".i");

View File

@@ -1,4 +1,4 @@
/* $Id: ai_bridgelist.hpp.sq 23379 2011-11-30 14:11:02Z truebrain $ */
/* $Id$ */
/*
* This file is part of OpenTTD.

View File

@@ -1,4 +1,4 @@
/* $Id: ai_cargo.hpp.sq 26396 2014-03-10 22:18:53Z zuu $ */
/* $Id$ */
/*
* This file is part of OpenTTD.

View File

@@ -1,4 +1,4 @@
/* $Id: ai_cargolist.hpp.sq 23379 2011-11-30 14:11:02Z truebrain $ */
/* $Id$ */
/*
* This file is part of OpenTTD.

View File

@@ -1,4 +1,4 @@
/* $Id: ai_company.hpp.sq 23521 2011-12-15 18:40:15Z rubidium $ */
/* $Id$ */
/*
* This file is part of OpenTTD.
@@ -21,15 +21,16 @@ void SQAICompany_Register(Squirrel *engine)
SQAICompany.PreRegister(engine);
SQAICompany.AddConstructor<void (ScriptCompany::*)(), 1>(engine, "x");
SQAICompany.DefSQConst(engine, ScriptCompany::CURRENT_QUARTER, "CURRENT_QUARTER");
SQAICompany.DefSQConst(engine, ScriptCompany::EARLIEST_QUARTER, "EARLIEST_QUARTER");
SQAICompany.DefSQConst(engine, ScriptCompany::COMPANY_FIRST, "COMPANY_FIRST");
SQAICompany.DefSQConst(engine, ScriptCompany::COMPANY_LAST, "COMPANY_LAST");
SQAICompany.DefSQConst(engine, ScriptCompany::COMPANY_INVALID, "COMPANY_INVALID");
SQAICompany.DefSQConst(engine, ScriptCompany::COMPANY_SELF, "COMPANY_SELF");
SQAICompany.DefSQConst(engine, ScriptCompany::GENDER_MALE, "GENDER_MALE");
SQAICompany.DefSQConst(engine, ScriptCompany::GENDER_FEMALE, "GENDER_FEMALE");
SQAICompany.DefSQConst(engine, ScriptCompany::GENDER_INVALID, "GENDER_INVALID");
SQAICompany.DefSQConst(engine, ScriptCompany::CURRENT_QUARTER, "CURRENT_QUARTER");
SQAICompany.DefSQConst(engine, ScriptCompany::EARLIEST_QUARTER, "EARLIEST_QUARTER");
SQAICompany.DefSQConst(engine, ScriptCompany::COMPANY_FIRST, "COMPANY_FIRST");
SQAICompany.DefSQConst(engine, ScriptCompany::COMPANY_LAST, "COMPANY_LAST");
SQAICompany.DefSQConst(engine, ScriptCompany::COMPANY_INVALID, "COMPANY_INVALID");
SQAICompany.DefSQConst(engine, ScriptCompany::COMPANY_SELF, "COMPANY_SELF");
SQAICompany.DefSQConst(engine, ScriptCompany::COMPANY_SPECTATOR, "COMPANY_SPECTATOR");
SQAICompany.DefSQConst(engine, ScriptCompany::GENDER_MALE, "GENDER_MALE");
SQAICompany.DefSQConst(engine, ScriptCompany::GENDER_FEMALE, "GENDER_FEMALE");
SQAICompany.DefSQConst(engine, ScriptCompany::GENDER_INVALID, "GENDER_INVALID");
SQAICompany.DefSQStaticMethod(engine, &ScriptCompany::ResolveCompanyID, "ResolveCompanyID", 2, ".i");
SQAICompany.DefSQStaticMethod(engine, &ScriptCompany::IsMine, "IsMine", 2, ".i");

View File

@@ -1,4 +1,4 @@
/* $Id: ai_controller.hpp.sq 24542 2012-09-21 20:49:43Z zuu $ */
/* $Id$ */
/*
* This file is part of OpenTTD.

View File

@@ -1,4 +1,4 @@
/* $Id: ai_date.hpp.sq 26307 2014-02-06 19:50:34Z zuu $ */
/* $Id$ */
/*
* This file is part of OpenTTD.

View File

@@ -1,4 +1,4 @@
/* $Id: ai_depotlist.hpp.sq 23379 2011-11-30 14:11:02Z truebrain $ */
/* $Id$ */
/*
* This file is part of OpenTTD.

View File

@@ -1,4 +1,4 @@
/* $Id: ai_engine.hpp.sq 23506 2011-12-13 00:43:59Z michi_cc $ */
/* $Id$ */
/*
* This file is part of OpenTTD.

View File

@@ -1,4 +1,4 @@
/* $Id: ai_enginelist.hpp.sq 23379 2011-11-30 14:11:02Z truebrain $ */
/* $Id$ */
/*
* This file is part of OpenTTD.

View File

@@ -1,4 +1,4 @@
/* $Id: ai_error.hpp.sq 24982 2013-02-08 20:34:27Z rubidium $ */
/* $Id$ */
/*
* This file is part of OpenTTD.

View File

@@ -1,4 +1,4 @@
/* $Id: ai_event.hpp.sq 24291 2012-05-26 14:16:45Z frosch $ */
/* $Id$ */
/*
* This file is part of OpenTTD.

View File

@@ -1,4 +1,4 @@
/* $Id: ai_event_types.hpp.sq 24291 2012-05-26 14:16:45Z frosch $ */
/* $Id$ */
/*
* This file is part of OpenTTD.

View File

@@ -1,4 +1,4 @@
/* $Id: ai_execmode.hpp.sq 23379 2011-11-30 14:11:02Z truebrain $ */
/* $Id$ */
/*
* This file is part of OpenTTD.

View File

@@ -1,4 +1,4 @@
/* $Id: ai_gamesettings.hpp.sq 23379 2011-11-30 14:11:02Z truebrain $ */
/* $Id$ */
/*
* This file is part of OpenTTD.

View File

@@ -1,4 +1,4 @@
/* $Id: ai_group.hpp.sq 23379 2011-11-30 14:11:02Z truebrain $ */
/* $Id$ */
/*
* This file is part of OpenTTD.

View File

@@ -1,4 +1,4 @@
/* $Id: ai_grouplist.hpp.sq 23379 2011-11-30 14:11:02Z truebrain $ */
/* $Id$ */
/*
* This file is part of OpenTTD.

View File

@@ -1,4 +1,4 @@
/* $Id: ai_industry.hpp.sq 23379 2011-11-30 14:11:02Z truebrain $ */
/* $Id$ */
/*
* This file is part of OpenTTD.

View File

@@ -1,4 +1,4 @@
/* $Id: ai_industrylist.hpp.sq 23379 2011-11-30 14:11:02Z truebrain $ */
/* $Id$ */
/*
* This file is part of OpenTTD.

View File

@@ -1,4 +1,4 @@
/* $Id: ai_industrytype.hpp.sq 24513 2012-09-08 12:14:00Z frosch $ */
/* $Id$ */
/*
* This file is part of OpenTTD.

View File

@@ -1,4 +1,4 @@
/* $Id: ai_industrytypelist.hpp.sq 23379 2011-11-30 14:11:02Z truebrain $ */
/* $Id$ */
/*
* This file is part of OpenTTD.

View File

@@ -1,4 +1,4 @@
/* $Id: ai_infrastructure.hpp.sq 23416 2011-12-03 23:40:57Z michi_cc $ */
/* $Id$ */
/*
* This file is part of OpenTTD.

View File

@@ -1,4 +1,4 @@
/* $Id: ai_list.hpp.sq 26894 2014-09-21 16:25:15Z fonsinchen $ */
/* $Id$ */
/*
* This file is part of OpenTTD.

View File

@@ -1,4 +1,4 @@
/* $Id: ai_log.hpp.sq 23379 2011-11-30 14:11:02Z truebrain $ */
/* $Id$ */
/*
* This file is part of OpenTTD.

View File

@@ -1,4 +1,4 @@
/* $Id: ai_map.hpp.sq 23379 2011-11-30 14:11:02Z truebrain $ */
/* $Id$ */
/*
* This file is part of OpenTTD.

View File

@@ -1,4 +1,4 @@
/* $Id: ai_marine.hpp.sq 23379 2011-11-30 14:11:02Z truebrain $ */
/* $Id$ */
/*
* This file is part of OpenTTD.

View File

@@ -1,4 +1,4 @@
/* $Id: ai_order.hpp.sq 24006 2012-03-04 16:40:06Z rubidium $ */
/* $Id$ */
/*
* This file is part of OpenTTD.
@@ -44,6 +44,7 @@ void SQAIOrder_Register(Squirrel *engine)
SQAIOrder.DefSQConst(engine, ScriptOrder::OF_INVALID, "OF_INVALID");
SQAIOrder.DefSQConst(engine, ScriptOrder::OC_LOAD_PERCENTAGE, "OC_LOAD_PERCENTAGE");
SQAIOrder.DefSQConst(engine, ScriptOrder::OC_RELIABILITY, "OC_RELIABILITY");
SQAIOrder.DefSQConst(engine, ScriptOrder::OC_MAX_RELIABILITY, "OC_MAX_RELIABILITY");
SQAIOrder.DefSQConst(engine, ScriptOrder::OC_MAX_SPEED, "OC_MAX_SPEED");
SQAIOrder.DefSQConst(engine, ScriptOrder::OC_AGE, "OC_AGE");
SQAIOrder.DefSQConst(engine, ScriptOrder::OC_REQUIRES_SERVICE, "OC_REQUIRES_SERVICE");

View File

@@ -1,4 +1,4 @@
/* $Id: ai_rail.hpp.sq 25614 2013-07-15 18:19:26Z rubidium $ */
/* $Id$ */
/*
* This file is part of OpenTTD.

View File

@@ -1,4 +1,4 @@
/* $Id: ai_railtypelist.hpp.sq 23379 2011-11-30 14:11:02Z truebrain $ */
/* $Id$ */
/*
* This file is part of OpenTTD.

View File

@@ -1,4 +1,4 @@
/* $Id: ai_road.hpp.sq 23416 2011-12-03 23:40:57Z michi_cc $ */
/* $Id$ */
/*
* This file is part of OpenTTD.

View File

@@ -1,4 +1,4 @@
/* $Id: ai_sign.hpp.sq 23379 2011-11-30 14:11:02Z truebrain $ */
/* $Id$ */
/*
* This file is part of OpenTTD.

View File

@@ -1,4 +1,4 @@
/* $Id: ai_signlist.hpp.sq 23379 2011-11-30 14:11:02Z truebrain $ */
/* $Id$ */
/*
* This file is part of OpenTTD.

View File

@@ -1,4 +1,4 @@
/* $Id: ai_station.hpp.sq 26892 2014-09-21 16:20:14Z fonsinchen $ */
/* $Id$ */
/*
* This file is part of OpenTTD.
@@ -33,7 +33,6 @@ void SQAIStation_Register(Squirrel *engine)
SQAIStation.DefSQConst(engine, ScriptStation::STATION_ANY, "STATION_ANY");
ScriptError::RegisterErrorMap(STR_ERROR_TOO_CLOSE_TO_ANOTHER_AIRPORT, ScriptStation::ERR_STATION_TOO_CLOSE_TO_ANOTHER_STATION);
ScriptError::RegisterErrorMap(STR_ERROR_TOO_CLOSE_TO_ANOTHER_STATION, ScriptStation::ERR_STATION_TOO_CLOSE_TO_ANOTHER_STATION);
ScriptError::RegisterErrorMap(STR_ERROR_TOO_CLOSE_TO_ANOTHER_DOCK, ScriptStation::ERR_STATION_TOO_CLOSE_TO_ANOTHER_STATION);
ScriptError::RegisterErrorMap(STR_ERROR_TOO_MANY_STATIONS_LOADING, ScriptStation::ERR_STATION_TOO_MANY_STATIONS);
ScriptError::RegisterErrorMap(STR_ERROR_TOO_MANY_TRUCK_STOPS, ScriptStation::ERR_STATION_TOO_MANY_STATIONS);

View File

@@ -1,4 +1,4 @@
/* $Id: ai_stationlist.hpp.sq 26893 2014-09-21 16:20:48Z fonsinchen $ */
/* $Id$ */
/*
* This file is part of OpenTTD.

View File

@@ -1,4 +1,4 @@
/* $Id: ai_subsidy.hpp.sq 23379 2011-11-30 14:11:02Z truebrain $ */
/* $Id$ */
/*
* This file is part of OpenTTD.

View File

@@ -1,4 +1,4 @@
/* $Id: ai_subsidylist.hpp.sq 23379 2011-11-30 14:11:02Z truebrain $ */
/* $Id$ */
/*
* This file is part of OpenTTD.

View File

@@ -1,4 +1,4 @@
/* $Id: ai_testmode.hpp.sq 23379 2011-11-30 14:11:02Z truebrain $ */
/* $Id$ */
/*
* This file is part of OpenTTD.

View File

@@ -1,4 +1,4 @@
/* $Id: ai_tile.hpp.sq 25213 2013-04-30 17:16:32Z rubidium $ */
/* $Id$ */
/*
* This file is part of OpenTTD.

View File

@@ -1,4 +1,4 @@
/* $Id: ai_tilelist.hpp.sq 23379 2011-11-30 14:11:02Z truebrain $ */
/* $Id$ */
/*
* This file is part of OpenTTD.

View File

@@ -1,4 +1,4 @@
/* $Id: ai_town.hpp.sq 25969 2013-11-12 17:57:32Z frosch $ */
/* $Id$ */
/*
* This file is part of OpenTTD.

View File

@@ -1,4 +1,4 @@
/* $Id: ai_townlist.hpp.sq 23379 2011-11-30 14:11:02Z truebrain $ */
/* $Id$ */
/*
* This file is part of OpenTTD.

View File

@@ -1,4 +1,4 @@
/* $Id: ai_tunnel.hpp.sq 23379 2011-11-30 14:11:02Z truebrain $ */
/* $Id$ */
/*
* This file is part of OpenTTD.

View File

@@ -1,4 +1,4 @@
/* $Id: ai_vehicle.hpp.sq 23506 2011-12-13 00:43:59Z michi_cc $ */
/* $Id$ */
/*
* This file is part of OpenTTD.

View File

@@ -1,4 +1,4 @@
/* $Id: ai_vehiclelist.hpp.sq 23379 2011-11-30 14:11:02Z truebrain $ */
/* $Id$ */
/*
* This file is part of OpenTTD.

View File

@@ -1,4 +1,4 @@
/* $Id: ai_waypoint.hpp.sq 23521 2011-12-15 18:40:15Z rubidium $ */
/* $Id$ */
/*
* This file is part of OpenTTD.

View File

@@ -1,4 +1,4 @@
/* $Id: ai_waypointlist.hpp.sq 23379 2011-11-30 14:11:02Z truebrain $ */
/* $Id$ */
/*
* This file is part of OpenTTD.

View File

@@ -1,4 +1,4 @@
/* $Id: ai_changelog.hpp 27996 2018-03-21 19:39:49Z frosch $ */
/* $Id$ */
/*
* This file is part of OpenTTD.
@@ -15,6 +15,15 @@
* functions may still be available if you return an older API version
* in GetAPIVersion() in info.nut.
*
* \b 1.9.0
*
* 1.9.0 is not yet released. The following changes are not set in stone yet.
* API additions:
* \li AIAirport::GetMonthlyMaintenanceCost
*
* Other changes:
* \li AIBridge::GetName takes one extra parameter to refer the vehicle type
*
* \b 1.8.0
*
* No changes

View File

@@ -1,4 +1,4 @@
# $Id: doxygen_filter.awk 23650 2011-12-21 14:30:08Z yexo $
# $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.

View File

@@ -1,6 +1,6 @@
#!/bin/bash
# $Id: doxygen_filter.sh 23610 2011-12-19 20:56:42Z truebrain $
# $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.

View File

@@ -1,4 +1,4 @@
/* $Id: game_accounting.hpp.sq 23737 2012-01-03 20:37:56Z truebrain $ */
/* $Id$ */
/*
* This file is part of OpenTTD.

View File

@@ -1,4 +1,4 @@
/* $Id: game_admin.hpp.sq 23737 2012-01-03 20:37:56Z truebrain $ */
/* $Id$ */
/*
* This file is part of OpenTTD.

View File

@@ -1,4 +1,4 @@
/* $Id: game_airport.hpp.sq 23737 2012-01-03 20:37:56Z truebrain $ */
/* $Id$ */
/*
* This file is part of OpenTTD.
@@ -52,6 +52,7 @@ void SQGSAirport_Register(Squirrel *engine)
SQGSAirport.DefSQStaticMethod(engine, &ScriptAirport::GetNoiseLevelIncrease, "GetNoiseLevelIncrease", 3, ".ii");
SQGSAirport.DefSQStaticMethod(engine, &ScriptAirport::GetNearestTown, "GetNearestTown", 3, ".ii");
SQGSAirport.DefSQStaticMethod(engine, &ScriptAirport::GetMaintenanceCostFactor, "GetMaintenanceCostFactor", 2, ".i");
SQGSAirport.DefSQStaticMethod(engine, &ScriptAirport::GetMonthlyMaintenanceCost, "GetMonthlyMaintenanceCost", 2, ".i");
SQGSAirport.PostRegister(engine);
}

View File

@@ -1,4 +1,4 @@
/* $Id: game_base.hpp.sq 23737 2012-01-03 20:37:56Z truebrain $ */
/* $Id$ */
/*
* This file is part of OpenTTD.

View File

@@ -1,4 +1,4 @@
/* $Id: game_basestation.hpp.sq 23737 2012-01-03 20:37:56Z truebrain $ */
/* $Id$ */
/*
* This file is part of OpenTTD.

View File

@@ -1,4 +1,4 @@
/* $Id: game_bridge.hpp.sq 23737 2012-01-03 20:37:56Z truebrain $ */
/* $Id$ */
/*
* This file is part of OpenTTD.
@@ -37,7 +37,7 @@ void SQGSBridge_Register(Squirrel *engine)
SQGSBridge.DefSQStaticMethod(engine, &ScriptBridge::IsValidBridge, "IsValidBridge", 2, ".i");
SQGSBridge.DefSQStaticMethod(engine, &ScriptBridge::IsBridgeTile, "IsBridgeTile", 2, ".i");
SQGSBridge.DefSQStaticMethod(engine, &ScriptBridge::GetBridgeID, "GetBridgeID", 2, ".i");
SQGSBridge.DefSQStaticMethod(engine, &ScriptBridge::GetName, "GetName", 2, ".i");
SQGSBridge.DefSQStaticMethod(engine, &ScriptBridge::GetName, "GetName", 3, ".ii");
SQGSBridge.DefSQStaticMethod(engine, &ScriptBridge::GetMaxSpeed, "GetMaxSpeed", 2, ".i");
SQGSBridge.DefSQStaticMethod(engine, &ScriptBridge::GetPrice, "GetPrice", 3, ".ii");
SQGSBridge.DefSQStaticMethod(engine, &ScriptBridge::GetMaxLength, "GetMaxLength", 2, ".i");

View File

@@ -1,4 +1,4 @@
/* $Id: game_bridgelist.hpp.sq 23737 2012-01-03 20:37:56Z truebrain $ */
/* $Id$ */
/*
* This file is part of OpenTTD.

View File

@@ -1,4 +1,4 @@
/* $Id: game_cargo.hpp.sq 26396 2014-03-10 22:18:53Z zuu $ */
/* $Id$ */
/*
* This file is part of OpenTTD.

View File

@@ -1,4 +1,4 @@
/* $Id: game_cargolist.hpp.sq 23737 2012-01-03 20:37:56Z truebrain $ */
/* $Id$ */
/*
* This file is part of OpenTTD.

View File

@@ -1,4 +1,4 @@
/* $Id: game_cargomonitor.hpp.sq 24406 2012-07-15 17:11:14Z alberth $ */
/* $Id$ */
/*
* This file is part of OpenTTD.

View File

@@ -0,0 +1,34 @@
/* $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 <http://www.gnu.org/licenses/>.
*/
/* THIS FILE IS AUTO-GENERATED; PLEASE DO NOT ALTER MANUALLY */
#include "../script_client.hpp"
#include "../template/template_client.hpp.sq"
template <> const char *GetClassName<ScriptClient, ST_GS>() { return "GSClient"; }
void SQGSClient_Register(Squirrel *engine)
{
DefSQClass<ScriptClient, ST_GS> SQGSClient("GSClient");
SQGSClient.PreRegister(engine);
SQGSClient.AddConstructor<void (ScriptClient::*)(), 1>(engine, "x");
SQGSClient.DefSQConst(engine, ScriptClient::CLIENT_INVALID, "CLIENT_INVALID");
SQGSClient.DefSQConst(engine, ScriptClient::CLIENT_SERVER, "CLIENT_SERVER");
SQGSClient.DefSQConst(engine, ScriptClient::CLIENT_FIRST, "CLIENT_FIRST");
SQGSClient.DefSQStaticMethod(engine, &ScriptClient::ResolveClientID, "ResolveClientID", 2, ".i");
SQGSClient.DefSQStaticMethod(engine, &ScriptClient::GetName, "GetName", 2, ".i");
SQGSClient.DefSQStaticMethod(engine, &ScriptClient::GetCompany, "GetCompany", 2, ".i");
SQGSClient.DefSQStaticMethod(engine, &ScriptClient::GetJoinDate, "GetJoinDate", 2, ".i");
SQGSClient.PostRegister(engine);
}

View File

@@ -0,0 +1,37 @@
/* $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 <http://www.gnu.org/licenses/>.
*/
/* THIS FILE IS AUTO-GENERATED; PLEASE DO NOT ALTER MANUALLY */
#include "../script_clientlist.hpp"
#include "../template/template_clientlist.hpp.sq"
template <> const char *GetClassName<ScriptClientList, ST_GS>() { return "GSClientList"; }
void SQGSClientList_Register(Squirrel *engine)
{
DefSQClass<ScriptClientList, ST_GS> SQGSClientList("GSClientList");
SQGSClientList.PreRegister(engine, "GSList");
SQGSClientList.AddConstructor<void (ScriptClientList::*)(), 1>(engine, "x");
SQGSClientList.PostRegister(engine);
}
template <> const char *GetClassName<ScriptClientList_Company, ST_GS>() { return "GSClientList_Company"; }
void SQGSClientList_Company_Register(Squirrel *engine)
{
DefSQClass<ScriptClientList_Company, ST_GS> SQGSClientList_Company("GSClientList_Company");
SQGSClientList_Company.PreRegister(engine, "GSList");
SQGSClientList_Company.AddConstructor<void (ScriptClientList_Company::*)(ScriptCompany::CompanyID company), 2>(engine, "xi");
SQGSClientList_Company.PostRegister(engine);
}

View File

@@ -1,4 +1,4 @@
/* $Id: game_company.hpp.sq 25808 2013-10-02 21:44:31Z zuu $ */
/* $Id$ */
/*
* This file is part of OpenTTD.
@@ -27,6 +27,7 @@ void SQGSCompany_Register(Squirrel *engine)
SQGSCompany.DefSQConst(engine, ScriptCompany::COMPANY_LAST, "COMPANY_LAST");
SQGSCompany.DefSQConst(engine, ScriptCompany::COMPANY_INVALID, "COMPANY_INVALID");
SQGSCompany.DefSQConst(engine, ScriptCompany::COMPANY_SELF, "COMPANY_SELF");
SQGSCompany.DefSQConst(engine, ScriptCompany::COMPANY_SPECTATOR, "COMPANY_SPECTATOR");
SQGSCompany.DefSQConst(engine, ScriptCompany::GENDER_MALE, "GENDER_MALE");
SQGSCompany.DefSQConst(engine, ScriptCompany::GENDER_FEMALE, "GENDER_FEMALE");
SQGSCompany.DefSQConst(engine, ScriptCompany::GENDER_INVALID, "GENDER_INVALID");

View File

@@ -1,4 +1,4 @@
/* $Id: game_companymode.hpp.sq 23737 2012-01-03 20:37:56Z truebrain $ */
/* $Id$ */
/*
* This file is part of OpenTTD.

View File

@@ -1,4 +1,4 @@
/* $Id: game_controller.hpp.sq 24542 2012-09-21 20:49:43Z zuu $ */
/* $Id$ */
/*
* This file is part of OpenTTD.

View File

@@ -1,4 +1,4 @@
/* $Id: game_date.hpp.sq 26307 2014-02-06 19:50:34Z zuu $ */
/* $Id$ */
/*
* This file is part of OpenTTD.

View File

@@ -1,4 +1,4 @@
/* $Id: game_depotlist.hpp.sq 23737 2012-01-03 20:37:56Z truebrain $ */
/* $Id$ */
/*
* This file is part of OpenTTD.

View File

@@ -1,4 +1,4 @@
/* $Id: game_engine.hpp.sq 23737 2012-01-03 20:37:56Z truebrain $ */
/* $Id$ */
/*
* This file is part of OpenTTD.

View File

@@ -1,4 +1,4 @@
/* $Id: game_enginelist.hpp.sq 23737 2012-01-03 20:37:56Z truebrain $ */
/* $Id$ */
/*
* This file is part of OpenTTD.

View File

@@ -1,4 +1,4 @@
/* $Id: game_error.hpp.sq 24982 2013-02-08 20:34:27Z rubidium $ */
/* $Id$ */
/*
* This file is part of OpenTTD.

View File

@@ -1,4 +1,4 @@
/* $Id: game_event.hpp.sq 24291 2012-05-26 14:16:45Z frosch $ */
/* $Id$ */
/*
* This file is part of OpenTTD.

View File

@@ -1,4 +1,4 @@
/* $Id: game_event_types.hpp.sq 24291 2012-05-26 14:16:45Z frosch $ */
/* $Id$ */
/*
* This file is part of OpenTTD.

View File

@@ -1,4 +1,4 @@
/* $Id: game_execmode.hpp.sq 23737 2012-01-03 20:37:56Z truebrain $ */
/* $Id$ */
/*
* This file is part of OpenTTD.

View File

@@ -1,4 +1,4 @@
/* $Id: game_game.hpp.sq 23737 2012-01-03 20:37:56Z truebrain $ */
/* $Id$ */
/*
* This file is part of OpenTTD.

View File

@@ -1,4 +1,4 @@
/* $Id: game_gamesettings.hpp.sq 23737 2012-01-03 20:37:56Z truebrain $ */
/* $Id$ */
/*
* This file is part of OpenTTD.

View File

@@ -1,4 +1,4 @@
/* $Id: game_goal.hpp.sq 26012 2013-11-16 17:41:57Z zuu $ */
/* $Id$ */
/*
* This file is part of OpenTTD.
@@ -51,15 +51,16 @@ void SQGSGoal_Register(Squirrel *engine)
SQGSGoal.DefSQConst(engine, ScriptGoal::BUTTON_SURRENDER, "BUTTON_SURRENDER");
SQGSGoal.DefSQConst(engine, ScriptGoal::BUTTON_CLOSE, "BUTTON_CLOSE");
SQGSGoal.DefSQStaticMethod(engine, &ScriptGoal::IsValidGoal, "IsValidGoal", 2, ".i");
SQGSGoal.DefSQStaticMethod(engine, &ScriptGoal::New, "New", 5, ".i.ii");
SQGSGoal.DefSQStaticMethod(engine, &ScriptGoal::Remove, "Remove", 2, ".i");
SQGSGoal.DefSQStaticMethod(engine, &ScriptGoal::SetText, "SetText", 3, ".i.");
SQGSGoal.DefSQStaticMethod(engine, &ScriptGoal::SetProgress, "SetProgress", 3, ".i.");
SQGSGoal.DefSQStaticMethod(engine, &ScriptGoal::SetCompleted, "SetCompleted", 3, ".ib");
SQGSGoal.DefSQStaticMethod(engine, &ScriptGoal::IsCompleted, "IsCompleted", 2, ".i");
SQGSGoal.DefSQStaticMethod(engine, &ScriptGoal::Question, "Question", 6, ".ii.ii");
SQGSGoal.DefSQStaticMethod(engine, &ScriptGoal::CloseQuestion, "CloseQuestion", 2, ".i");
SQGSGoal.DefSQStaticMethod(engine, &ScriptGoal::IsValidGoal, "IsValidGoal", 2, ".i");
SQGSGoal.DefSQStaticMethod(engine, &ScriptGoal::New, "New", 5, ".i.ii");
SQGSGoal.DefSQStaticMethod(engine, &ScriptGoal::Remove, "Remove", 2, ".i");
SQGSGoal.DefSQStaticMethod(engine, &ScriptGoal::SetText, "SetText", 3, ".i.");
SQGSGoal.DefSQStaticMethod(engine, &ScriptGoal::SetProgress, "SetProgress", 3, ".i.");
SQGSGoal.DefSQStaticMethod(engine, &ScriptGoal::SetCompleted, "SetCompleted", 3, ".ib");
SQGSGoal.DefSQStaticMethod(engine, &ScriptGoal::IsCompleted, "IsCompleted", 2, ".i");
SQGSGoal.DefSQStaticMethod(engine, &ScriptGoal::Question, "Question", 6, ".ii.ii");
SQGSGoal.DefSQStaticMethod(engine, &ScriptGoal::QuestionClient, "QuestionClient", 6, ".ii.ii");
SQGSGoal.DefSQStaticMethod(engine, &ScriptGoal::CloseQuestion, "CloseQuestion", 2, ".i");
SQGSGoal.PostRegister(engine);
}

View File

@@ -1,4 +1,4 @@
/* $Id: game_industry.hpp.sq 23737 2012-01-03 20:37:56Z truebrain $ */
/* $Id$ */
/*
* This file is part of OpenTTD.

View File

@@ -1,4 +1,4 @@
/* $Id: game_industrylist.hpp.sq 23737 2012-01-03 20:37:56Z truebrain $ */
/* $Id$ */
/*
* This file is part of OpenTTD.

View File

@@ -1,4 +1,4 @@
/* $Id: game_industrytype.hpp.sq 24513 2012-09-08 12:14:00Z frosch $ */
/* $Id$ */
/*
* This file is part of OpenTTD.

View File

@@ -1,4 +1,4 @@
/* $Id: game_industrytypelist.hpp.sq 23737 2012-01-03 20:37:56Z truebrain $ */
/* $Id$ */
/*
* This file is part of OpenTTD.

View File

@@ -1,4 +1,4 @@
/* $Id: game_infrastructure.hpp.sq 23737 2012-01-03 20:37:56Z truebrain $ */
/* $Id$ */
/*
* This file is part of OpenTTD.

View File

@@ -1,4 +1,4 @@
/* $Id: game_list.hpp.sq 26894 2014-09-21 16:25:15Z fonsinchen $ */
/* $Id$ */
/*
* This file is part of OpenTTD.

View File

@@ -1,4 +1,4 @@
/* $Id: game_log.hpp.sq 23737 2012-01-03 20:37:56Z truebrain $ */
/* $Id$ */
/*
* This file is part of OpenTTD.

View File

@@ -1,4 +1,4 @@
/* $Id: game_map.hpp.sq 23737 2012-01-03 20:37:56Z truebrain $ */
/* $Id$ */
/*
* This file is part of OpenTTD.

View File

@@ -1,4 +1,4 @@
/* $Id: game_marine.hpp.sq 23737 2012-01-03 20:37:56Z truebrain $ */
/* $Id$ */
/*
* This file is part of OpenTTD.

View File

@@ -1,4 +1,4 @@
/* $Id: game_news.hpp.sq 27164 2015-02-22 17:25:29Z alberth $ */
/* $Id$ */
/*
* This file is part of OpenTTD.

View File

@@ -1,4 +1,4 @@
/* $Id: game_order.hpp.sq 24006 2012-03-04 16:40:06Z rubidium $ */
/* $Id$ */
/*
* This file is part of OpenTTD.
@@ -44,6 +44,7 @@ void SQGSOrder_Register(Squirrel *engine)
SQGSOrder.DefSQConst(engine, ScriptOrder::OF_INVALID, "OF_INVALID");
SQGSOrder.DefSQConst(engine, ScriptOrder::OC_LOAD_PERCENTAGE, "OC_LOAD_PERCENTAGE");
SQGSOrder.DefSQConst(engine, ScriptOrder::OC_RELIABILITY, "OC_RELIABILITY");
SQGSOrder.DefSQConst(engine, ScriptOrder::OC_MAX_RELIABILITY, "OC_MAX_RELIABILITY");
SQGSOrder.DefSQConst(engine, ScriptOrder::OC_MAX_SPEED, "OC_MAX_SPEED");
SQGSOrder.DefSQConst(engine, ScriptOrder::OC_AGE, "OC_AGE");
SQGSOrder.DefSQConst(engine, ScriptOrder::OC_REQUIRES_SERVICE, "OC_REQUIRES_SERVICE");

View File

@@ -1,4 +1,4 @@
/* $Id: game_rail.hpp.sq 25614 2013-07-15 18:19:26Z rubidium $ */
/* $Id$ */
/*
* This file is part of OpenTTD.

View File

@@ -1,4 +1,4 @@
/* $Id: game_railtypelist.hpp.sq 23737 2012-01-03 20:37:56Z truebrain $ */
/* $Id$ */
/*
* This file is part of OpenTTD.

View File

@@ -1,4 +1,4 @@
/* $Id: game_road.hpp.sq 23737 2012-01-03 20:37:56Z truebrain $ */
/* $Id$ */
/*
* This file is part of OpenTTD.

View File

@@ -1,4 +1,4 @@
/* $Id: game_sign.hpp.sq 23737 2012-01-03 20:37:56Z truebrain $ */
/* $Id$ */
/*
* This file is part of OpenTTD.

View File

@@ -1,4 +1,4 @@
/* $Id: game_signlist.hpp.sq 23737 2012-01-03 20:37:56Z truebrain $ */
/* $Id$ */
/*
* This file is part of OpenTTD.

View File

@@ -1,4 +1,4 @@
/* $Id: game_station.hpp.sq 26892 2014-09-21 16:20:14Z fonsinchen $ */
/* $Id$ */
/*
* This file is part of OpenTTD.
@@ -33,7 +33,6 @@ void SQGSStation_Register(Squirrel *engine)
SQGSStation.DefSQConst(engine, ScriptStation::STATION_ANY, "STATION_ANY");
ScriptError::RegisterErrorMap(STR_ERROR_TOO_CLOSE_TO_ANOTHER_AIRPORT, ScriptStation::ERR_STATION_TOO_CLOSE_TO_ANOTHER_STATION);
ScriptError::RegisterErrorMap(STR_ERROR_TOO_CLOSE_TO_ANOTHER_STATION, ScriptStation::ERR_STATION_TOO_CLOSE_TO_ANOTHER_STATION);
ScriptError::RegisterErrorMap(STR_ERROR_TOO_CLOSE_TO_ANOTHER_DOCK, ScriptStation::ERR_STATION_TOO_CLOSE_TO_ANOTHER_STATION);
ScriptError::RegisterErrorMap(STR_ERROR_TOO_MANY_STATIONS_LOADING, ScriptStation::ERR_STATION_TOO_MANY_STATIONS);
ScriptError::RegisterErrorMap(STR_ERROR_TOO_MANY_TRUCK_STOPS, ScriptStation::ERR_STATION_TOO_MANY_STATIONS);

View File

@@ -1,4 +1,4 @@
/* $Id: game_stationlist.hpp.sq 26893 2014-09-21 16:20:48Z fonsinchen $ */
/* $Id$ */
/*
* This file is part of OpenTTD.

View File

@@ -1,4 +1,4 @@
/* $Id: game_story_page.hpp.sq 26306 2014-02-06 19:48:19Z zuu $ */
/* $Id$ */
/*
* This file is part of OpenTTD.

Some files were not shown because too many files have changed in this diff Show More