summaryrefslogtreecommitdiff
path: root/src/client/User.h
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-01-31 18:49:14 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-01-31 18:49:14 (GMT)
commit857b0cc1fc58f066acd59404d16ee5e566e20f00 (patch)
tree7607fc43f3bdd63687dff39209f44defa48e6a35 /src/client/User.h
parent1d297cb57a338f2a9e34d0f16642afc6a83c1041 (diff)
downloadpowder-857b0cc1fc58f066acd59404d16ee5e566e20f00.zip
powder-857b0cc1fc58f066acd59404d16ee5e566e20f00.tar.gz
Load user information from preferences, fps display for testing
Diffstat (limited to 'src/client/User.h')
-rw-r--r--src/client/User.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/client/User.h b/src/client/User.h
index 9dd231c..163f463 100644
--- a/src/client/User.h
+++ b/src/client/User.h
@@ -10,6 +10,11 @@
#include <string>
+enum Elevation
+{
+ ElevationAdmin, ElevationModerator, ElevationNone
+};
+
class User
{
public:
@@ -17,9 +22,13 @@ public:
std::string Username;
std::string SessionID;
std::string SessionKey;
+ Elevation UserElevation;
User(int id, std::string username):
ID(id),
- Username(username)
+ Username(username),
+ SessionID(""),
+ SessionKey(""),
+ UserElevation(ElevationNone)
{
}