mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-24 21:57:44 +00:00
40 lines
536 B
C
40 lines
536 B
C
![]() |
#ifndef _SESSION_H_
|
||
|
#define _SESSION_H_
|
||
|
|
||
|
#include <stdint.h>
|
||
|
#include <string>
|
||
|
#include <string.h>
|
||
|
|
||
|
namespace Core {
|
||
|
|
||
|
class Session
|
||
|
{
|
||
|
|
||
|
private:
|
||
|
uint32_t m_ip;
|
||
|
uint32_t m_accountId;
|
||
|
|
||
|
uint8_t m_sessionId[56];
|
||
|
|
||
|
public:
|
||
|
|
||
|
std::string newCharName;
|
||
|
|
||
|
Session( void );
|
||
|
~Session( void );
|
||
|
|
||
|
uint32_t getIp() const;
|
||
|
|
||
|
void setSessionId( uint8_t * sessionId );
|
||
|
|
||
|
void setIp( uint32_t ip );
|
||
|
|
||
|
uint32_t getAccountId() const;
|
||
|
|
||
|
void setAccountId( uint32_t id );
|
||
|
|
||
|
};
|
||
|
|
||
|
}
|
||
|
|
||
|
#endif
|