Luanti 5.17.0-dev
Loading...
Searching...
No Matches
game.h
Go to the documentation of this file.
1// Luanti
2// SPDX-License-Identifier: LGPL-2.1-or-later
3// Copyright (C) 2013 celeron55, Perttu Ahola <celeron55@gmail.com>
4
5#pragma once
6
7#include "irrlichttypes.h"
8#include "config.h"
9#include <csignal>
10#include <string>
11
12#if !IS_CLIENT_BUILD
13#error Do not include in server builds
14#endif
15
16class InputHandler;
17class ChatBackend;
18class RenderingEngine;
19struct GameErrorData;
20struct GameStartData;
21
25
31
33 f32 camera_yaw; // "right/left"
34 f32 camera_pitch; // "up/down"
35};
36
37#define GAME_FALLBACK_TIMEOUT 1.8f
38#define GAME_CONNECTION_TIMEOUT 10.0f
39
40void the_game(volatile std::sig_atomic_t *kill,
41 InputHandler *input,
42 RenderingEngine *rendering_engine,
43 const GameStartData &start_data,
44 GameErrorData &errordata,
45 ChatBackend &chat_backend);
Definition chat.h:270
Definition inputhandler.h:174
Definition renderingengine.h:64
void the_game(volatile std::sig_atomic_t *kill, InputHandler *input, RenderingEngine *rendering_engine, const GameStartData &start_data, GameErrorData &errordata, ChatBackend &chat_backend)
Definition game.cpp:3769
Definition game.h:32
f32 camera_yaw
Definition game.h:33
f32 camera_pitch
Definition game.h:34
Data provided to Lua for error reporting by the main menu.
Definition gameparams.h:61
Definition gameparams.h:52
Definition game.h:22
f32 max_fraction
Definition game.h:23
f32 max
Definition game.h:23
f32 counter
Definition game.h:23
f32 avg
Definition game.h:23
f32 min_sample
Definition game.h:23
f32 max_sample
Definition game.h:23
f32 min
Definition game.h:23
Definition game.h:26
Jitter busy_time_jitter
Definition game.h:29
u64 drawtime
Definition game.h:27
Jitter dtime_jitter
Definition game.h:29