OpenTTD Source: src/game/game_instance.cpp File Reference

OpenTTD Source 1.11.0-RC1

Functions
game_instance.cpp File Reference
`#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...

## Detailed Description

Implementation of GameInstance.

Definition in file game_instance.cpp.

## Function Documentation

## ◆ CcGame()

void CcGame | ( | const CommandCost & | result,
|  | TileIndex | tile,
|  | uint32 | p1,
|  | uint32 | p2,
|  | uint32 | cmd
| ) |  |

DoCommand callback function for all commands executed by Game Scripts.

Parameters

  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().