初步修复
This commit is contained in:
parent
8fc4357cc6
commit
e4714f3f0e
46705 changed files with 12004901 additions and 0 deletions
27
Server/DNGameServer/GameSession.cpp
Normal file
27
Server/DNGameServer/GameSession.cpp
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
#include "StdAfx.h"
|
||||
#include "GameSession.h"
|
||||
#include "Task.h"
|
||||
#include "DNGameRoom.h"
|
||||
//#include "DNSession.h"
|
||||
|
||||
CGameSession::CGameSession()
|
||||
{
|
||||
}
|
||||
|
||||
CGameSession::~CGameSession()
|
||||
{
|
||||
}
|
||||
|
||||
DWORD CGameSession::GetProcessID()
|
||||
{
|
||||
CTask *pTask = dynamic_cast<CTask *>(this);
|
||||
return pTask->GetRoom()->GetProcessID();
|
||||
//return pTask->GetSession()->GetProcessID();
|
||||
}
|
||||
|
||||
int CGameSession::GetSessionID()
|
||||
{
|
||||
CTask *pTask = dynamic_cast<CTask *>(this);
|
||||
return pTask->GetRoom()->GetSessionID();
|
||||
//return pTask->GetSession()->GetSessionID();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue