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 #define BASE_TL_BITMASK_H
#include <bitset> #include <bitset>
#include <engine/shared/protocol.h>
typedef std::bitset<MAX_CLIENTS> CClientMask;
#endif #endif

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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