The-Powder-Toy/src/client/User.h

32 lines
437 B
C
Raw Normal View History

2012-01-25 11:21:55 -06:00
#ifndef USER_H_
#define USER_H_
#include "common/String.h"
2012-01-25 11:21:55 -06:00
2012-01-25 11:21:55 -06:00
class User
{
public:
enum Elevation
{
ElevationAdmin, ElevationModerator, ElevationNone
};
int UserID;
ByteString Username;
ByteString SessionID;
ByteString SessionKey;
Elevation UserElevation;
User(int id, ByteString username):
UserID(id),
Username(username),
SessionID(""),
SessionKey(""),
UserElevation(ElevationNone)
2012-01-25 11:21:55 -06:00
{
}
};
#endif /* USER_H_ */