コード例 #1
0
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 ;
}
コード例 #2
0
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;
}
コード例 #3
0
ファイル: GCItemInfo.cpp プロジェクト: viticm/web-pap
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 ;
}
コード例 #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 ;
}
コード例 #5
0
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 ;
}
コード例 #6
0
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 ;
}
コード例 #7
0
ファイル: GCChannelResult.cpp プロジェクト: rvpoochen/wxsj2
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 ;
}
コード例 #8
0
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 ;
}
コード例 #9
0
ファイル: GCNewSpecial.cpp プロジェクト: uvbs/wx2Server
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 ;
}
コード例 #10
0
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 ;
}
コード例 #11
0
ファイル: CGStallItemPrice.cpp プロジェクト: brock7/TianLong
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 ;
}
コード例 #12
0
ファイル: GCNewItem.cpp プロジェクト: gangzi4494/web-pap
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 ;
}
コード例 #13
0
ファイル: WLBillingKeep.cpp プロジェクト: rvpoochen/wxsj2
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 ;
}
コード例 #14
0
ファイル: GCNewPet.cpp プロジェクト: gangzi4494/web-pap
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 ;
}
コード例 #15
0
ファイル: StoreInfo.cpp プロジェクト: hillwah/darkeden
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
}
コード例 #16
0
ファイル: GCErrorSkill.cpp プロジェクト: gangzi4494/web-pap
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 ;
}
コード例 #17
0
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 ;
}
コード例 #18
0
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 ;
}
コード例 #19
0
ファイル: GWAskSceneData.cpp プロジェクト: gangzi4494/web-pap
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 ;
}
コード例 #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 ;
}
コード例 #21
0
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) );
}
コード例 #22
0
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 ;
}
コード例 #23
0
ファイル: CGMissionCheck.cpp プロジェクト: jjiezheng/pap_full
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 ;
}
コード例 #24
0
ファイル: GCNewPlatform.cpp プロジェクト: rvpoochen/wxsj2
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 ;
}
コード例 #25
0
ファイル: LCRetLoginCode.cpp プロジェクト: jjiezheng/pap_full
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 ;
}
コード例 #26
0
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 ;
}
コード例 #27
0
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 ;
}
コード例 #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;
}
コード例 #29
0
ファイル: CGAskLockObj.cpp プロジェクト: gangzi4494/web-pap
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 ;
}
コード例 #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 ;
}