Recast  1
Game with custom magic
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
User.hpp
Go to the documentation of this file.
1 
8 #ifndef RECAST_SERVER_PLAYERAUTH_H
9 #define RECAST_SERVER_PLAYERAUTH_H
10 
11 #include <string>
12 #include <boost/shared_ptr.hpp>
13 #include "Player.hpp"
14 
18 struct User {
19 public:
20  int id;
21  int playerId;
22  std::string login;
23  std::string password;
24  std::shared_ptr<Player> player;
25 
26  User() {}
27 
28  User(std::string login, std::string password) : login(login), password(password) {}
29 
30 };
31 
32 
33 #endif //RECAST_SERVER_PLAYERAUTH_H
Player file.
int id
Definition: User.hpp:20
User(std::string login, std::string password)
Definition: User.hpp:28
int playerId
Definition: User.hpp:21
User()
Definition: User.hpp:26
std::string login
Definition: User.hpp:22
std::shared_ptr< Player > player
Definition: User.hpp:24
std::string password
Definition: User.hpp:23
User - technical data of a player (login, password and other)
Definition: User.hpp:18