OpenTTD Source  13.0
game_instance.cpp File Reference
#include "../stdafx.h"
#include "../error.h"
#include "../script/squirrel_class.hpp"
#include "../script/script_storage.hpp"
#include "../script/script_cmd.h"
#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 (Commands cmd, const CommandCost &result, TileIndex tile, const CommandDataBuffer &data, CommandDataBuffer result_data)
 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 ( Commands  cmd,
const CommandCost &  result,
TileIndex  tile,
const CommandDataBuffer &  data,
CommandDataBuffer  result_data 
)

DoCommand callback function for all commands executed by Game Scripts.

Parameters
cmdcmd as given to DoCommandPInternal.
resultThe result of the command.
tileThe tile on which the command was executed.
dataCommand data as given to Command<>::Post.
result_dataAdditional returned data from the command.

Definition at line 91 of file game_instance.cpp.

Referenced by GameInstance::GetDoCommandCallback().