42 lines
970 B
C++
42 lines
970 B
C++
|
|
|
|||
|
|
#include "Stdafx.h"
|
|||
|
|
#include "GrowingAreaStateHarvested.h"
|
|||
|
|
#include "DNUserSession.h"
|
|||
|
|
#include "GrowingArea.h"
|
|||
|
|
#include "DNGameDataManager.h"
|
|||
|
|
#include "DNMasterConnectionManager.h"
|
|||
|
|
#include "DNFarmGameRoom.h"
|
|||
|
|
|
|||
|
|
|
|||
|
|
void CFarmAreaStateHarvested::BeginProcess()
|
|||
|
|
{
|
|||
|
|
if( m_pArea->GetPlantSeed() )
|
|||
|
|
{
|
|||
|
|
// <20><>Ȯ <20>Ǿ<EFBFBD><C7BE><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> DB <20><><EFBFBD><EFBFBD> <20><><EFBFBD>ŵ<EFBFBD>.
|
|||
|
|
m_pArea->GetPlantSeed()->SetDBCreateFlag( false );
|
|||
|
|
|
|||
|
|
// <20><>Ȯâ<C8AE><C3A2> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>ȭ <20>۾<EFBFBD>
|
|||
|
|
g_pMasterConnectionManager->SendFarmSync( m_pArea->GetFarmGameRoom()->GetWorldSetID(), m_pArea->GetPlantSeed()->GetOwnerCharacterDBID(), Farm::ServerSyncType::WAREHOUSE_ITEMCOUNT );
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
SendBeginAreaState();
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
void CFarmAreaStateHarvested::Process( float fDelta )
|
|||
|
|
{
|
|||
|
|
m_pArea->ChangeState( Farm::AreaState::NONE );
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
void CFarmAreaStateHarvested::EndProcess()
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
// HarvestedInfo
|
|||
|
|
void CFarmAreaStateHarvested::SetHarvestedInfo( CDNUserSession* pSession )
|
|||
|
|
{
|
|||
|
|
if( pSession )
|
|||
|
|
m_biHarvestedCharacterDBID = pSession->GetCharacterDBID();
|
|||
|
|
}
|
|||
|
|
|