move typedef to protocol.h

This commit is contained in:
Valentin Bashkirov 2023-01-26 11:56:48 +01:00
parent 1cd9eac7ae
commit 79f72a5d55
8 changed files with 6 additions and 9 deletions

View file

@ -4,8 +4,5 @@
#define BASE_TL_BITMASK_H
#include <bitset>
#include <engine/shared/protocol.h>
typedef std::bitset<MAX_CLIENTS> CClientMask;
#endif

View file

@ -3,6 +3,8 @@
#ifndef ENGINE_SHARED_PROTOCOL_H
#define ENGINE_SHARED_PROTOCOL_H
#include <base/tl/bitmask.h>
/*
Connection diagram - How the initialization works.
@ -123,4 +125,6 @@ enum
VERSION_DDNET_MULTI_LASER = 16040,
};
typedef std::bitset<MAX_CLIENTS> CClientMask;
#endif

View file

@ -3,7 +3,6 @@
#ifndef GAME_CLIENT_PREDICTION_GAMEWORLD_H
#define GAME_CLIENT_PREDICTION_GAMEWORLD_H
#include <base/tl/bitmask.h>
#include <game/gamecore.h>
#include <game/teamscore.h>

View file

@ -3,7 +3,6 @@
#ifndef GAME_SERVER_ENTITIES_CHARACTER_H
#define GAME_SERVER_ENTITIES_CHARACTER_H
#include <base/tl/bitmask.h>
#include <game/server/entity.h>
#include <game/server/save.h>

View file

@ -3,7 +3,6 @@
#ifndef GAME_SERVER_ENTITIES_LASER_H
#define GAME_SERVER_ENTITIES_LASER_H
#include <base/tl/bitmask.h>
#include <game/server/entity.h>
class CLaser : public CEntity

View file

@ -5,7 +5,7 @@
#include <stdint.h>
#include <base/tl/bitmask.h>
#include <engine/shared/protocol.h>
class CEventHandler
{

View file

@ -3,7 +3,6 @@
#ifndef GAME_SERVER_GAMECONTEXT_H
#define GAME_SERVER_GAMECONTEXT_H
#include <base/tl/bitmask.h>
#include <engine/console.h>
#include <engine/server.h>

View file

@ -3,9 +3,9 @@
#ifndef GAME_SERVER_GAMECONTROLLER_H
#define GAME_SERVER_GAMECONTROLLER_H
#include <base/tl/bitmask.h>
#include <base/vmath.h>
#include <engine/map.h>
#include <engine/shared/protocol.h>
#include <vector>