aboutsummaryrefslogtreecommitdiff
path: root/assets/blender/gleis/before_redo/rail_verticals45.blend11
diff options
context:
space:
mode:
authorhlqkj <kris88hl@gmail.com>2021-03-09 10:03:39 +0100
committerorwell96 <orwell@bleipb.de>2021-03-22 11:06:03 +0100
commit07b1231f751db12a284dc28ec6a525ebdf0bb142 (patch)
tree5a8255c623b7ad73b9132a3b8f66fb4a0ac1f8c3 /assets/blender/gleis/before_redo/rail_verticals45.blend11
parent5b4f5491d26ae42419ecb036f79fa0040ce45975 (diff)
downloadadvtrains-07b1231f751db12a284dc28ec6a525ebdf0bb142.tar.gz
advtrains-07b1231f751db12a284dc28ec6a525ebdf0bb142.tar.bz2
advtrains-07b1231f751db12a284dc28ec6a525ebdf0bb142.zip
Rework stoprail formspec layout and add mono style
- Rework formspec layout, fixed tab order - Added style to use monospaced font for the stn and ars fields
Diffstat (limited to 'assets/blender/gleis/before_redo/rail_verticals45.blend11')
0 files changed, 0 insertions, 0 deletions
/span>; // Can build - i.e. modify the world const u64 PRIV_TELEPORT = 2; // Can teleport const u64 PRIV_SETTIME = 4; // Can set the time const u64 PRIV_PRIVS = 8; // Can grant and revoke privileges const u64 PRIV_SERVER = 16; // Can manage the server (e.g. shutodwn // ,settings) const u64 PRIV_SHOUT = 32; // Can broadcast chat messages to all // players const u64 PRIV_BAN = 64; // Can ban players // Default privileges - these can be overriden for new players using the // config option "default_privs" - however, this value still applies for // players that existed before the privileges system was added. const u64 PRIV_DEFAULT = PRIV_BUILD|PRIV_SHOUT; const u64 PRIV_ALL = 0x7FFFFFFFFFFFFFFFULL; const u64 PRIV_INVALID = 0x8000000000000000ULL; // Convert a privileges value into a human-readable string, // with each component separated by a comma. std::string privsToString(u64 privs); // Converts a comma-seperated list of privilege values into a // privileges value. The reverse of privsToString(). Returns // PRIV_INVALID if there is anything wrong with the input. u64 stringToPrivs(std::string str); struct AuthData { std::string pwd; u64 privs; AuthData(): privs(PRIV_DEFAULT) { } }; class AuthNotFoundException : public BaseException { public: AuthNotFoundException(const char *s): BaseException(s) {} }; class AuthManager { public: AuthManager(const std::string &authfilepath); ~AuthManager(); void load(); void save(); bool exists(const std::string &username); void set(const std::string &username, AuthData ad); void add(const std::string &username); std::string getPassword(const std::string &username); void setPassword(const std::string &username, const std::string &password); u64 getPrivs(const std::string &username); void setPrivs(const std::string &username, u64 privs); bool isModified(); private: JMutex m_mutex; std::string m_authfilepath; core::map<std::string, AuthData> m_authdata; bool m_modified; }; #endif