MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / SetLastCommand

Method SetLastCommand

src/script/api/script_object.cpp:121–127  ·  view source on GitHub ↗

static */

Source from the content-addressed store, hash-verified

119}
120
121/* static */ void ScriptObject::SetLastCommand(const CommandDataBuffer &data, Commands cmd)
122{
123 ScriptStorage &s = GetStorage();
124 Debug(script, 6, "SetLastCommand company={:02d} cmd={} data={}", s.root_company, cmd, FormatArrayAsHex(data));
125 s.last_data = data;
126 s.last_cmd = cmd;
127}
128
129/* static */ bool ScriptObject::CheckLastCommand(const CommandDataBuffer &data, Commands cmd)
130{

Callers

nothing calls this directly

Calls 1

FormatArrayAsHexFunction · 0.85

Tested by

no test coverage detected