BOOL CGBankAddItem::Write( SocketOutputStream& oStream )const
{
	__ENTER_FUNCTION

	oStream.Write( (CHAR*)(&m_FromType), sizeof(BYTE));
	oStream.Write( (CHAR*)(&m_indexFrom), sizeof(BYTE));
	oStream.Write( (CHAR*)(&m_indexTo), sizeof(BYTE));

	return TRUE ;

	__LEAVE_FUNCTION

		return FALSE ;
}
BOOL GWTeamMemberEnterScene::Write(SocketOutputStream& oStream ) const
{
__ENTER_FUNCTION

	oStream.Write( (CHAR*)(&m_PlayerID), sizeof(PlayerID_t) );
	oStream.Write( (CHAR*)&m_GUID, sizeof(GUID_t) );
	oStream.Write( (CHAR*)&m_SceneID, sizeof(SceneID_t) );

	return TRUE;

__LEAVE_FUNCTION

	return FALSE;
}
Beispiel #3
0
BOOL GCItemInfo::Write( SocketOutputStream& oStream ) const
{
    __ENTER_FUNCTION

    oStream.Write( (CHAR*)(&m_BagIndex), sizeof(WORD));
    oStream.Write((CHAR*)(&m_nsNull), sizeof(BOOL));

    m_ITEM.Write(oStream);

    return TRUE;

    __LEAVE_FUNCTION
    return FALSE ;
}
Beispiel #4
0
BOOL GCCharModifyAction::Write( SocketOutputStream& oStream )const
{
__ENTER_FUNCTION

	oStream.Write( (CHAR*)(&m_ObjID), sizeof(m_ObjID));
	oStream.Write( (CHAR*)(&m_nLogicCount), sizeof(m_nLogicCount));
	oStream.Write( (CHAR*)(&m_nModifyTime), sizeof(m_nModifyTime));

	return TRUE ;

__LEAVE_FUNCTION

	return FALSE ;
}
BOOL GCPlayerShopStallStatus::Write( SocketOutputStream& oStream )const
{
	__ENTER_FUNCTION

	oStream.Write( (CHAR*)(&m_ShopID), sizeof(_PLAYERSHOP_GUID));
	oStream.Write( (CHAR*)(&m_nStallIndex), sizeof(BYTE));
	oStream.Write( (CHAR*)(&m_bStatus), sizeof(BYTE));
	oStream.Write( (CHAR*)(&m_FinalStallNum), sizeof(BYTE));
	return TRUE ;

	__LEAVE_FUNCTION

		return FALSE ;
}
BOOL CGPlayerShopPartner::Write( SocketOutputStream& oStream )const
{
	__ENTER_FUNCTION

	oStream.Write( (CHAR*)(&m_ShopID), sizeof(_PLAYERSHOP_GUID));
	oStream.Write( (CHAR*)(&m_Opt), sizeof(BYTE));
	oStream.Write( (CHAR*)(&m_PartnerID), sizeof(GUID_t));

	return TRUE ;

	__LEAVE_FUNCTION

		return FALSE ;
}
Beispiel #7
0
BOOL GCChannelResult::Write( SocketOutputStream& oStream )const
{
	__ENTER_FUNCTION

		oStream.Write( (CHAR*)(&m_Return), sizeof(BYTE) ) ;
		oStream.Write( (CHAR*)&m_GUID, sizeof(GUID_t) );
		oStream.Write( (CHAR*)&m_ChannelID, sizeof(ChannelID_t) );
	
	return TRUE ;

	__LEAVE_FUNCTION

	return FALSE ;
}
BOOL GCOtherSkill::Write( SocketOutputStream& oStream )const
{
__ENTER_FUNCTION

	oStream.Write( (CHAR*)(&m_ObjID), sizeof(ObjID_t) ) ;
	oStream.Write( (CHAR*)(&m_byListNum), sizeof(BYTE) ) ;
	oStream.Write( (CHAR*)(m_listDam), sizeof(_DAMAGE_INFO)*(m_byListNum>MAX_DAM_LIST_NUM ? MAX_DAM_LIST_NUM : m_byListNum ) ) ;
	oStream.Write( (CHAR*)(&m_SkillID), sizeof(SkillID_t) ) ;

	return TRUE ;

__LEAVE_FUNCTION

	return FALSE ;
}
Beispiel #9
0
BOOL GCNewSpecial::Write( SocketOutputStream& oStream )const
{
    __ENTER_FUNCTION

    oStream.Write( (CHAR*)(&m_ObjID), sizeof(m_ObjID));
    oStream.Write( (CHAR*)(&m_posWorld), sizeof(m_posWorld));
    oStream.Write( (CHAR*)(&m_Dir), sizeof(m_Dir));
    oStream.Write( (CHAR*)(&m_nDataID), sizeof(m_nDataID));

    return TRUE ;

    __LEAVE_FUNCTION

    return FALSE ;
}
BOOL GCStallRemoveItem::Write( SocketOutputStream& oStream )const
{
    __ENTER_FUNCTION

    oStream.Write( (CHAR*)(&m_ItemGuid), sizeof(_ITEM_GUID));
    oStream.Write( (CHAR*)(&m_PetGuid), sizeof(PET_GUID_t));
    oStream.Write( (CHAR*)(&m_Serial), sizeof(UINT));
    oStream.Write( (CHAR*)(&m_ToType), sizeof(BYTE));

    return TRUE ;

    __LEAVE_FUNCTION

        return FALSE ;
}
Beispiel #11
0
BOOL CGStallItemPrice::Write( SocketOutputStream& oStream )const
{
	__ENTER_FUNCTION

	oStream.Write( (CHAR*)(&m_ItemGuid), sizeof(_ITEM_GUID));
	oStream.Write( (CHAR*)(&m_PetGuid), sizeof(PET_GUID_t));
	oStream.Write( (CHAR*)(&m_nPrice), sizeof(UINT));
	oStream.Write( (CHAR*)(&m_nSerial), sizeof(UINT));

	return TRUE ;

	__LEAVE_FUNCTION

		return FALSE ;
}
Beispiel #12
0
BOOL GCNewItem::Write( SocketOutputStream& oStream )const
{
__ENTER_FUNCTION

    oStream.Write( (CHAR*)(&m_ObjID), sizeof(ObjID_t));
    oStream.Write( (CHAR*)(&m_uAmount), sizeof(UINT));
    oStream.Write( (CHAR*)(&m_idOwner), sizeof(ObjID_t));
    oStream.Write( (CHAR*)(&m_posWorld), sizeof(WORLD_POS));

    return TRUE ;

__LEAVE_FUNCTION

    return FALSE ;
}
Beispiel #13
0
BOOL WLBillingKeep::Write( SocketOutputStream& oStream )	const
{
	__ENTER_FUNCTION
		
		oStream.Write((CHAR*)&mAccount,sizeof(CHAR)*(MAX_ACCOUNT+1));
		oStream.Write((CHAR*)&mCharLevel,sizeof(SHORT));
		oStream.Write((CHAR*)&mStartTime,sizeof(UINT));
		oStream.Write((CHAR*)&mEndTime,sizeof(UINT));

		return TRUE ;

	__LEAVE_FUNCTION

		return FALSE ;
}
Beispiel #14
0
BOOL GCNewPet::Write( SocketOutputStream& oStream )const
{
__ENTER_FUNCTION

    oStream.Write( (CHAR*)(&m_ObjID), sizeof(ObjID_t));
    oStream.Write( (CHAR*)(&m_posWorld), sizeof(WORLD_POS));
    oStream.Write( (CHAR*)(&m_fDir), sizeof(FLOAT));
    oStream.Write( (CHAR*)(&m_fMoveSpeed), sizeof(m_fMoveSpeed));

    return TRUE ;

__LEAVE_FUNCTION

    return FALSE ;
}
Beispiel #15
0
void StoreItemInfo::write(SocketOutputStream& oStream) const throw(ProtocolException, Error)
{
	__BEGIN_TRY

	oStream.write(m_ItemExist);
//	cout << __PRETTY_FUNCTION__ << " exist : " << (int)m_ItemExist << endl;

	if (m_ItemExist != 0 )
	{
		PCItemInfo::write(oStream);
		oStream.write(m_Price);
	}

	__END_CATCH
}
Beispiel #16
0
BOOL GCErrorSkill::Write( SocketOutputStream& oStream )const
{
__ENTER_FUNCTION

    oStream.Write( (CHAR*)(&m_byReason), sizeof(BYTE) ) ;
    oStream.Write( (CHAR*)(&m_AttObjID), sizeof(ObjID_t) ) ;
    oStream.Write( (CHAR*)(&m_TarObjID), sizeof(ObjID_t) ) ;
    oStream.Write( (CHAR*)(&m_SkillID), sizeof(SkillID_t) ) ;

    return TRUE ;

__LEAVE_FUNCTION

    return FALSE ;
}
BOOL GCCharSkill_CreateBullet::Write( SocketOutputStream& oStream )const
{
__ENTER_FUNCTION

	oStream.Write( (CHAR*)(&m_ObjID), sizeof(ObjID_t));
	oStream.Write( (CHAR*)(&m_SkillDataID), sizeof(SkillID_t));
	oStream.Write( (CHAR*)(&m_TargetID), sizeof(ObjID_t));
	oStream.Write( (CHAR*)(&m_posTarget), sizeof(WORLD_POS));

	return TRUE ;

__LEAVE_FUNCTION

	return FALSE ;
}
BOOL GCSouXiaSkillUpdate::Write( SocketOutputStream& oStream )const
{
	__ENTER_FUNCTION

	oStream.Write((CHAR*)(&m_nCurSouXiaPos), sizeof(SHORT));
	oStream.Write((CHAR*)(&m_nSkillType), sizeof(BYTE));
	oStream.Write((CHAR*)(&m_nSkillId), sizeof(SkillID_t));
	oStream.Write((CHAR*)(&m_nLeftTime), sizeof(SHORT));

	return TRUE ;

	__LEAVE_FUNCTION

		return FALSE ;
}
Beispiel #19
0
BOOL GWAskSceneData::Write( SocketOutputStream& oStream )const
{
    __ENTER_FUNCTION

    oStream.Write( (CHAR*)(&m_SceneID), sizeof(SceneID_t) ) ;
    oStream.Write( (CHAR*)(&m_Type), sizeof(BYTE));
    oStream.Write( (CHAR*)(&m_bExtraLength), sizeof(BYTE));
    oStream.Write( (CHAR*)(m_ExtraData), m_bExtraLength);
    
    return TRUE ;

    __LEAVE_FUNCTION

    return FALSE ;
}
Beispiel #20
0
BOOL CGPlayerShopSaleOut::Write( SocketOutputStream& oStream )const
{
	__ENTER_FUNCTION

	oStream.Write( (CHAR*)(&m_ShopID), sizeof(_PLAYERSHOP_GUID));
	oStream.Write( (CHAR*)(&m_bSaleOut), sizeof(BYTE));
	oStream.Write( (CHAR*)(&m_Price), sizeof(UINT));
	oStream.Write( (CHAR*)(&m_Serial), sizeof(BYTE));

	return TRUE ;

	__LEAVE_FUNCTION

		return FALSE ;
}
VOID RETURN_FINGER_PLAYERLIST::Write( SocketOutputStream& oStream ) const
{
	oStream.Write( (CHAR*)&m_uPlayerCount, sizeof(m_uPlayerCount) );

	if( m_uPlayerCount > 0 && m_uPlayerCount <= FINGER_PLAYER_COUNT )
	{
		for( int i=0; i<m_uPlayerCount; ++i )
		{
			m_FingerPlayerInfo[i].Write(oStream);
		}
	}

	oStream.Write( (CHAR*)&m_FingerFlag, sizeof(m_FingerFlag) );
	oStream.Write( (CHAR*)&m_uPosition, sizeof(m_uPosition) );
}
BOOL GWSearchOnlineUser::Write( SocketOutputStream& oStream )const
{
__ENTER_FUNCTION

	oStream.Write( (CHAR*)(&m_PlayerID), sizeof(m_PlayerID) ) ;
	oStream.Write( (CHAR*)(&m_PostCode), sizeof(m_PostCode) ) ;
	oStream.Write( (CHAR*)(&m_GUID), sizeof(m_GUID) );
	oStream.Write( (CHAR*)(&m_iMaxPostion), sizeof(m_iMaxPostion) );

	return TRUE ;

__LEAVE_FUNCTION

	return FALSE ;
}
Beispiel #23
0
BOOL CGMissionCheck::Write( SocketOutputStream& oStream )const
{
__ENTER_FUNCTION

	oStream.Write( (CHAR*)(&m_idNPC), sizeof(ObjID_t) ) ;
	oStream.Write( (CHAR*)(&m_idScript), sizeof(ScriptID_t) ) ;
	oStream.Write( (CHAR*)(m_ItemIndexList), sizeof(BYTE)*ITEM_MAX_NUM ) ;
	oStream.Write( (CHAR*)(&m_PetIndex), sizeof(BYTE) ) ;

	return TRUE ;

__LEAVE_FUNCTION

	return FALSE ;
}
Beispiel #24
0
BOOL GCNewPlatform::Write( SocketOutputStream& oStream )const
{
__ENTER_FUNCTION

	oStream.Write( (CHAR*)(&m_ObjID), sizeof(ObjID_t));
	oStream.Write( (CHAR*)(&m_posWorld), sizeof(WORLD_POS));
	oStream.Write( (CHAR*)(&m_Dir), sizeof(FLOAT));
	oStream.Write( (CHAR*)(&m_Type), sizeof(BYTE));

	return TRUE ;

__LEAVE_FUNCTION

	return FALSE ;
}
Beispiel #25
0
BOOL LCRetLoginCode::Write( SocketOutputStream& oStream )const
{
	__ENTER_FUNCTION

		oStream.Write((CHAR*)&m_RetType,sizeof(BYTE));
		if(RETLOGINCODE_IMAGE==m_RetType)
		{
			oStream.Write((CHAR*)m_imageBuf,sizeof(UCHAR)*IMAGE_BUF_LENGTH_1);
		}
		return TRUE ;

	__LEAVE_FUNCTION

		return FALSE ;
}
BOOL GCPlayerShopMoney::Write( SocketOutputStream& oStream )const
{
	__ENTER_FUNCTION

	oStream.Write( (CHAR*)(&m_ShopID), sizeof(_PLAYERSHOP_GUID));
	oStream.Write( (CHAR*)(&m_Type), sizeof(BYTE));
	oStream.Write( (CHAR*)(&m_Amount), sizeof(UINT));
	oStream.Write( (CHAR*)(&m_nShopSerial), sizeof(BYTE));

	return TRUE ;

	__LEAVE_FUNCTION

		return FALSE ;
}
BOOL GCMonsterRealMove::Write( SocketOutputStream& oStream )const
{
    __ENTER_FUNCTION

    oStream.Write( (CHAR*)(&m_ObjID), sizeof(ObjID_t));
    oStream.Write( (CHAR*)(&m_posCur), sizeof(WORLD_POS));
    oStream.Write( (CHAR*)(&m_posTar), sizeof(WORLD_POS));
    oStream.Write( (CHAR*)(&m_wRace), sizeof(WORD));

    return TRUE ;

    __LEAVE_FUNCTION

    return FALSE ;
}
Beispiel #28
0
BOOL ScriptString::Write( SocketOutputStream& oStream )const
{
__ENTER_FUNCTION
	oStream.Write( (CHAR*)(&m_Size), sizeof(SHORT));
	if ( m_Size>0 )
	{
		oStream.Write( m_szString, m_Size*sizeof(CHAR) );
	}

	return TRUE;

__LEAVE_FUNCTION

	return FALSE;
}
Beispiel #29
0
BOOL CGAskLockObj::Write( SocketOutputStream& oStream )const
{
__ENTER_FUNCTION

    oStream.Write( (CHAR*)(&m_bLockObj),    sizeof(BYTE        ) ) ;
    oStream.Write( (CHAR*)(&m_bLockType),    sizeof(BYTE        ) ) ;
    oStream.Write( (CHAR*)(&m_ItemGuid),    sizeof(_ITEM_GUID) ) ;
    oStream.Write( (CHAR*)(&m_PetGuid),        sizeof(PET_GUID_t) ) ;

    return TRUE ;

__LEAVE_FUNCTION

    return FALSE ;
}
Beispiel #30
0
BOOL GCConnect::Write( SocketOutputStream& oStream )const
{
__ENTER_FUNCTION

	oStream.Write( (CHAR*)(&m_ServerID), sizeof(ID_t) ) ;
	oStream.Write( (CHAR*)(&m_SceneID), sizeof(SceneID_t) ) ;
	oStream.Write( (CHAR*)(&m_Position), sizeof(WORLD_POS) ) ;
	oStream.Write( (CHAR*)(&m_Estate), sizeof(m_Estate) ) ;

	return TRUE ;

__LEAVE_FUNCTION

	return FALSE ;
}