36 lines
966 B
C++
36 lines
966 B
C++
#pragma once
|
|
|
|
#include "GameObject.h"
|
|
#include <Information/Auth/AuthInfo.h>
|
|
#include <Information/Zone/ZoneControl.h>
|
|
#include <Information/Auto/AutoPlayControl.h>
|
|
#include <Information/Account/AccountInfo.h>
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
class WiseUser;
|
|
class WiseCharacter;
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
//
|
|
struct sAuthController
|
|
{
|
|
WiseUser* m_pUser;
|
|
DWORD m_dwEncKeyByAuth;
|
|
AuthInfo* m_pServerInfoFromAuth;
|
|
|
|
sAuthController() : m_pUser(NULL), m_dwEncKeyByAuth(0), m_pServerInfoFromAuth(NULL) {}
|
|
inline WiseUser*& USER() { return m_pUser; }
|
|
inline DWORD& EncKey() { return m_dwEncKeyByAuth; }
|
|
inline void CreateAuthInfo()
|
|
{
|
|
SAFE_DELETE(m_pServerInfoFromAuth);
|
|
m_pServerInfoFromAuth = new AuthInfo();
|
|
}
|
|
|
|
inline AuthInfo* GetAuthInfo() { return m_pServerInfoFromAuth; }
|
|
inline void ReleaseAuthInfo() { SAFE_DELETE(m_pServerInfoFromAuth); }
|
|
};
|
|
|
|
|
|
|