Codechange: Move command callback declarations to the cmd header files.

This commit is contained in:
Michael Lutz
2021-10-10 02:35:06 +02:00
parent 7048e1522f
commit 123c7f99c3
24 changed files with 110 additions and 56 deletions

View File

@@ -5,6 +5,7 @@ if(OPTION_TOOLS_ONLY)
endif()
add_files(
script_cmd.h
script_config.cpp
script_config.hpp
script_fatalerror.hpp

18
src/script/script_cmd.h Normal file
View File

@@ -0,0 +1,18 @@
/*
* 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_cmd.h Command definitions related to scripts. */
#ifndef SCRIPT_CMD_H
#define SCRIPT_CMD_H
#include "../command_type.h"
CommandCallback CcAI;
CommandCallback CcGame;
#endif /* SCRIPT_CMD_H */