1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-05-02 08:57:44 +00:00
sapphire/src/api/LoginSession.h

66 lines
864 B
C
Raw Normal View History

2017-08-08 13:53:47 +02:00
#pragma once
#ifndef _CLoginSession_H_
#define _CLoginSession_H_
#include <stdint.h>
#include <string>
#include <string.h>
namespace Sapphire
{
2017-08-08 13:53:47 +02:00
2018-10-28 21:53:21 +01:00
class LoginSession
{
2017-08-08 13:53:47 +02:00
2018-10-28 21:53:21 +01:00
private:
uint32_t m_IP;
uint32_t m_accountID;
uint8_t m_sessionId[56];
2017-08-08 13:53:47 +02:00
2018-10-28 21:53:21 +01:00
public:
std::string newCharName;
2017-08-08 13:53:47 +02:00
2018-10-28 21:53:21 +01:00
LoginSession( void );
2017-08-08 13:53:47 +02:00
2018-10-28 21:53:21 +01:00
~LoginSession( void );
2017-08-08 13:53:47 +02:00
2018-10-28 21:53:21 +01:00
uint32_t getIP()
{
return m_IP;
}
2017-08-08 13:53:47 +02:00
2018-10-28 21:53:21 +01:00
void setSessionId( uint8_t* sessionId )
{
memcpy( m_sessionId, sessionId, 56 );
}
2017-08-08 13:53:47 +02:00
2018-10-28 21:53:21 +01:00
void setIP( uint32_t iP )
{
m_IP = iP;
}
2017-08-08 13:53:47 +02:00
2018-10-28 21:53:21 +01:00
uint32_t getAccountID()
{
return m_accountID;
}
2017-08-08 13:53:47 +02:00
2018-10-28 21:53:21 +01:00
void setAccountID( uint32_t iD )
{
m_accountID = iD;
}
2017-08-08 13:53:47 +02:00
2018-10-28 21:53:21 +01:00
/*INLINE CLobbySocket* getSocket() {
return m_pGS;
}
2017-08-08 13:53:47 +02:00
2018-10-28 21:53:21 +01:00
INLINE void setSocket(CLobbySocket * pS) {
m_pGS = pS;
}*/
2018-10-28 21:53:21 +01:00
};
2017-08-08 13:53:47 +02:00
}
#endif