|
OpenTTD Source 20251104-master-g3befbdd52f
|
Implementation of GameInstance. More...
#include "../stdafx.h"#include "../error.h"#include "../script/squirrel_class.hpp"#include "../script/script_storage.hpp"#include "../script/script_cmd.h"#include "../script/script_gui.h"#include "game_config.hpp"#include "game_info.hpp"#include "game_instance.hpp"#include "game_text.hpp"#include "game.hpp"#include "table/strings.h"#include "../script/api/game/game_includes.hpp"#include "../safeguards.h"Go to the source code of this file.
Functions | |
| void | CcGame (Commands cmd, const CommandCost &result, const CommandDataBuffer &data, CommandDataBuffer result_data) |
| DoCommand callback function for all commands executed by Game Scripts. | |
Implementation of GameInstance.
Definition in file game_instance.cpp.
| void CcGame | ( | Commands | cmd, |
| const CommandCost & | result, | ||
| const CommandDataBuffer & | data, | ||
| CommandDataBuffer | result_data | ||
| ) |
DoCommand callback function for all commands executed by Game Scripts.
| cmd | cmd as given to DoCommandPInternal. |
| result | The result of the command. |
| data | Command data as given to Command<>::Post. |
| result_data | Additional returned data from the command. |
Definition at line 95 of file game_instance.cpp.
References ScriptInstance::Continue(), and Game::GetInstance().