-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmapvote.h
More file actions
32 lines (27 loc) · 793 Bytes
/
Copy pathmapvote.h
File metadata and controls
32 lines (27 loc) · 793 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#pragma once
#include <string>
#include <vector>
#include <map>
// запись о карте из конфига
struct MapEntry
{
std::string mapName; // de_mirage
std::string displayName; // Mirage
};
// forward declarations для menus.h
class IUtilsApi;
class IMenusApi;
class IPlayersApi;
class IVEngineServer;
class IGameEvent;
// api указатели, получаем в AllPluginsLoaded
extern IUtilsApi* g_pUtils;
extern IMenusApi* g_pMenus;
extern IPlayersApi* g_pPlayers;
extern IVEngineServer* g_pEngineServer;
// состояние голосования
extern std::vector<MapEntry> g_MapList;
extern std::map<std::string, int> g_Votes;
extern std::map<int, std::string> g_PlayerVoted;
extern bool g_VoteActive;
extern bool g_VoteStarted;