OpenTTD Source 20241224-master-gee860a5c8e
game_info.cpp File Reference

Implementation of GameInfo. More...

#include "../stdafx.h"
#include "../script/squirrel_class.hpp"
#include "game_info.hpp"
#include "game_scanner.hpp"
#include "../debug.h"
#include "../safeguards.h"

Go to the source code of this file.

Functions

static bool CheckAPIVersion (const std::string &api_version)
 Check if the API version provided by the Game is supported.
 
template<>
const char * GetClassName< GameInfo, ScriptType::GS > ()
 

Detailed Description

Implementation of GameInfo.

Functions to convert NetworkGameInfo to Packet and back.

Definition in file game_info.cpp.

Function Documentation

◆ CheckAPIVersion()

static bool CheckAPIVersion ( const std::string &  api_version)
static

Check if the API version provided by the Game is supported.

Parameters
api_versionThe API version as provided by the Game.

Definition at line 23 of file game_info.cpp.

◆ GetClassName< GameInfo, ScriptType::GS >()

template<>
const char * GetClassName< GameInfo, ScriptType::GS > ( )

Definition at line 32 of file game_info.cpp.