The-Powder-Toy/src/client/User.h
mniip ff27d69424 Switch from std::string to String/ByteString in most of the code
Also switch SimulationData from weird arrays to std::vector
2018-04-30 21:13:24 +03:00

32 lines
437 B
C++

#ifndef USER_H_
#define USER_H_
#include "common/String.h"
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)
{
}
};
#endif /* USER_H_ */