This commit is contained in:
parent
eb72e4a7a5
commit
b4b4a80e2d
@ -32,6 +32,20 @@ void PseuInstanceRunnable::run(void)
|
||||
delete _i;
|
||||
}
|
||||
|
||||
PseuInstance::PseuInstance()
|
||||
{
|
||||
_ver="PseuWoW Alpha Build 12 dev 2" DEBUG_APPENDIX;
|
||||
_ver_short="A12-dev1" DEBUG_APPENDIX;
|
||||
_wsession=NULL;
|
||||
_rsession=NULL;
|
||||
|
||||
|
||||
}
|
||||
|
||||
PseuInstance::~PseuInstance()
|
||||
{
|
||||
}
|
||||
|
||||
bool PseuInstance::Init(void) {
|
||||
|
||||
if(_confdir.empty())
|
||||
@ -144,6 +158,12 @@ void PseuInstance::Update()
|
||||
|
||||
}
|
||||
|
||||
void PseuInstance::SaveAllCache(void)
|
||||
{
|
||||
GetWSession()->plrNameCache.SaveToFile();
|
||||
//...
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*
|
||||
@ -240,16 +260,6 @@ void _SaveAllCache(void){
|
||||
*/
|
||||
|
||||
|
||||
PseuInstance::PseuInstance()
|
||||
{
|
||||
_ver="PseuWoW Alpha Build 12 dev 2" DEBUG_APPENDIX;
|
||||
_ver_short="A12-dev1" DEBUG_APPENDIX;
|
||||
_wsession=NULL;
|
||||
_rsession=NULL;
|
||||
|
||||
|
||||
}
|
||||
|
||||
PseuInstanceConf::PseuInstanceConf()
|
||||
{
|
||||
}
|
||||
|
||||
@ -49,14 +49,14 @@ class PseuInstance
|
||||
~PseuInstance();
|
||||
|
||||
|
||||
WorldSession *GetWSession(void);
|
||||
RealmSocket *GetRSession(void);
|
||||
PseuInstanceConf *GetConf(void);
|
||||
DefScriptPackage *GetScripts(void);
|
||||
void SetConfDir(std::string);
|
||||
WorldSession *GetWSession(void) { return _wsession; }
|
||||
RealmSocket *GetRSession(void) { return _rsession; }
|
||||
PseuInstanceConf *GetConf(void) { return _conf; }
|
||||
DefScriptPackage *GetScripts(void) { return _scp; }
|
||||
void SetConfDir(std::string);
|
||||
void SetScpDir(std::string);
|
||||
void SetSessionKey(BigNumber);
|
||||
BigNumber GetSessionKey(void);
|
||||
BigNumber GetSessionKey(void) { return _sessionkey; }
|
||||
|
||||
|
||||
|
||||
|
||||
@ -464,3 +464,8 @@ void RealmSocket::_HandleLogonProof(void)
|
||||
}
|
||||
}
|
||||
|
||||
void RealmSocket::OnConnect()
|
||||
{
|
||||
printf("DEBUG: RealmSocket connected!\n");
|
||||
}
|
||||
|
||||
|
||||
@ -14,7 +14,6 @@ public:
|
||||
inline void SetOpcode(uint16 opcode) { _opcode=opcode; }
|
||||
inline uint16 GetOpcode(void) { return _opcode; }
|
||||
uint64 GetPackedGuid(void);
|
||||
~WorldPacket();
|
||||
|
||||
private:
|
||||
uint16 _opcode;
|
||||
|
||||
@ -3,6 +3,12 @@
|
||||
#include "WorldSession.h"
|
||||
#include "WorldSocket.h"
|
||||
|
||||
WorldSocket::WorldSocket(SocketHandler &h, WorldSession *s) : TcpSocket(h)
|
||||
{
|
||||
_session = s;
|
||||
}
|
||||
|
||||
|
||||
void WorldSocket::OnConnect()
|
||||
{
|
||||
printf("Connected to world server.\r\n");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user