forked from cataclysmbnteam/Cataclysm-BN
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mapsharing.h
42 lines (30 loc) · 857 Bytes
/
mapsharing.h
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
33
34
35
36
37
38
39
40
41
42
#pragma once
#ifndef CATA_SRC_MAPSHARING_H
#define CATA_SRC_MAPSHARING_H
#include <set>
#include <string>
namespace MAP_SHARING
{
extern bool sharing;
extern std::string username;
extern bool competitive;
extern bool worldmenu;
void setSharing( bool mode );
void setUsername( const std::string &name );
bool isSharing();
std::string getUsername();
void setCompetitive( bool mode );
bool isCompetitive();
void setWorldmenu( bool mode );
bool isWorldmenu();
extern std::set<std::string> admins;
bool isAdmin();
void setAdmins( const std::set<std::string> &names );
void addAdmin( const std::string &name );
extern std::set<std::string> debuggers;
bool isDebugger();
void setDebuggers( const std::set<std::string> &names );
void addDebugger( const std::string &name );
void setDefaults();
} // namespace MAP_SHARING
#endif // CATA_SRC_MAPSHARING_H