Files
@ r28475:11127afc698f
Branch filter:
Location: cpp/openttd-patchpack/source/src/script/api/script_signlist.hpp - annotation
r28475:11127afc698f
1.7 KiB
text/x-c++hdr
Fix #11785, cf16f45: when bumping aircraft into the air, remove them from the loading vehicle list again
r18500:14a481bc4437 r18500:14a481bc4437 r18500:14a481bc4437 r18500:14a481bc4437 r18500:14a481bc4437 r18500:14a481bc4437 r18500:14a481bc4437 r18500:14a481bc4437 r18500:14a481bc4437 r18500:14a481bc4437 r18500:14a481bc4437 r18500:14a481bc4437 r18500:14a481bc4437 r18500:14a481bc4437 r18500:14a481bc4437 r18500:14a481bc4437 r18756:f1c6c1912f14 r18501:8e3d905ea4bc r18500:14a481bc4437 r18501:8e3d905ea4bc r18500:14a481bc4437 r28420:d7244101c0d9 r18501:8e3d905ea4bc r28420:d7244101c0d9 r28420:d7244101c0d9 r28420:d7244101c0d9 r28420:d7244101c0d9 r28420:d7244101c0d9 r28420:d7244101c0d9 r28420:d7244101c0d9 r28420:d7244101c0d9 r28420:d7244101c0d9 r28420:d7244101c0d9 r28420:d7244101c0d9 r28420:d7244101c0d9 r28420:d7244101c0d9 r28420:d7244101c0d9 r28420:d7244101c0d9 r28420:d7244101c0d9 r28420:d7244101c0d9 r28420:d7244101c0d9 r28420:d7244101c0d9 r28420:d7244101c0d9 r28420:d7244101c0d9 r18500:14a481bc4437 r18500:14a481bc4437 r18500:14a481bc4437 | /*
* 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/>.
*/
/** @file script_signlist.hpp List all the signs of your company. */
#ifndef SCRIPT_SIGNLIST_HPP
#define SCRIPT_SIGNLIST_HPP
#include "script_list.hpp"
/**
* Create a list of signs your company has created.
* @api ai game
* @ingroup ScriptList
*/
class ScriptSignList : public ScriptList {
public:
#ifdef DOXYGEN_API
ScriptSignList();
/**
* Apply a filter when building the list.
* @param filter_function The function which will be doing the filtering.
* @param params The params to give to the filters (minus the first param,
* which is always the index-value).
* @note You can write your own filters and use them. Just remember that
* the first parameter should be the index-value, and it should return
* a bool.
* @note Example:
* function Contains(sign_id, str)
* {
* local name = ScriptSign.GetName(sign_id);
* return name != null && name.find(str) != null;
* }
* ScriptSignList(Contains, "something");
*/
ScriptSignList(void *filter_function, int params, ...);
#else
ScriptSignList(HSQUIRRELVM);
#endif /* DOXYGEN_API */
};
#endif /* SCRIPT_SIGNLIST_HPP */
|