Update: Translations from eints
[openttd-github.git] / src / script / api / script_townlist.cpp
blobe9ef63e9ac62c2b2dcf355ab58d8270c2fb1117d
1 /*
2 * This file is part of OpenTTD.
3 * 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.
4 * 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.
5 * 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/>.
6 */
8 /** @file script_townlist.cpp Implementation of ScriptTownList and friends. */
10 #include "../../stdafx.h"
11 #include "script_townlist.hpp"
12 #include "../../town.h"
14 #include "../../safeguards.h"
16 ScriptTownList::ScriptTownList(HSQUIRRELVM vm)
18 ScriptList::FillList<Town>(vm, this);
21 ScriptTownEffectList::ScriptTownEffectList()
23 for (int i = TAE_BEGIN; i < TAE_END; i++) {
24 this->AddItem(i);