1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-28 15:17:46 +00:00
sapphire/src/servers/sapphire_api/Session.h

41 lines
465 B
C
Raw Normal View History

2017-08-08 13:53:47 +02:00
#ifndef _SESSION_H_
#define _SESSION_H_
#include <stdint.h>
#include <string>
#include <string.h>
namespace Core {
class Session
{
2017-08-08 13:53:47 +02:00
private:
uint32_t m_ip;
uint32_t m_accountId;
2017-08-08 13:53:47 +02:00
uint8_t m_sessionId[56];
2017-08-08 13:53:47 +02:00
public:
2017-08-08 13:53:47 +02:00
std::string newCharName;
2017-08-08 13:53:47 +02:00
Session();
2017-08-08 13:53:47 +02:00
~Session();
2017-08-08 13:53:47 +02:00
uint32_t getIp() const;
2017-08-08 13:53:47 +02:00
void setSessionId( uint8_t* sessionId );
2017-08-08 13:53:47 +02:00
void setIp( uint32_t ip );
2017-08-08 13:53:47 +02:00
uint32_t getAccountId() const;
2017-08-08 13:53:47 +02:00
void setAccountId( uint32_t id );
};
2017-08-08 13:53:47 +02:00
}
#endif