2009-08-21 22:21:05 +02:00
|
|
|
/*
|
|
|
|
* 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/>.
|
|
|
|
*/
|
|
|
|
|
2011-11-30 00:15:35 +01:00
|
|
|
/** @file script_townlist.cpp Implementation of ScriptTownList and friends. */
|
2009-01-12 18:11:45 +01:00
|
|
|
|
2011-01-22 11:33:16 +01:00
|
|
|
#include "../../stdafx.h"
|
2011-11-30 00:07:38 +01:00
|
|
|
#include "script_townlist.hpp"
|
2009-01-12 18:11:45 +01:00
|
|
|
#include "../../town.h"
|
|
|
|
|
2014-04-23 22:13:33 +02:00
|
|
|
#include "../../safeguards.h"
|
|
|
|
|
2024-01-09 09:39:13 +01:00
|
|
|
ScriptTownList::ScriptTownList(HSQUIRRELVM vm)
|
2009-01-12 18:11:45 +01:00
|
|
|
{
|
2024-01-09 09:39:13 +01:00
|
|
|
ScriptList::FillList<Town>(vm, this);
|
2009-01-12 18:11:45 +01:00
|
|
|
}
|
2011-11-23 17:09:46 +01:00
|
|
|
|
2011-11-30 00:15:35 +01:00
|
|
|
ScriptTownEffectList::ScriptTownEffectList()
|
2011-11-23 17:09:46 +01:00
|
|
|
{
|
2024-01-07 20:32:39 +01:00
|
|
|
for (int i = TAE_BEGIN; i < TAE_END; i++) {
|
2011-11-23 17:09:46 +01:00
|
|
|
this->AddItem(i);
|
|
|
|
}
|
|
|
|
}
|