OpenTTD Source
12.0-beta2
|
#include "../stdafx.h"
#include "../error.h"
#include "../script/squirrel_class.hpp"
#include "../script/script_storage.hpp"
#include "../ai/ai_gui.hpp"
#include "game_config.hpp"
#include "game_info.hpp"
#include "game_instance.hpp"
#include "game_text.hpp"
#include "game.hpp"
#include "../script/api/game/game_includes.hpp"
#include "../safeguards.h"
Go to the source code of this file.
Functions | |
void | CcGame (const CommandCost &result, TileIndex tile, uint32 p1, uint32 p2, uint32 cmd) |
DoCommand callback function for all commands executed by Game Scripts. More... | |
Implementation of GameInstance.
Definition in file game_instance.cpp.
void CcGame | ( | const CommandCost & | result, |
TileIndex | tile, | ||
uint32 | p1, | ||
uint32 | p2, | ||
uint32 | cmd | ||
) |
DoCommand callback function for all commands executed by Game Scripts.
result | The result of the command. |
tile | The tile on which the command was executed. |
p1 | p1 as given to DoCommandPInternal. |
p2 | p2 as given to DoCommandPInternal. |
cmd | cmd as given to DoCommandPInternal. |
Definition at line 90 of file game_instance.cpp.
References ScriptInstance::Continue(), and Game::GetGameInstance().
Referenced by GameInstance::GetDoCommandCallback().