📄 invitem.cpp
字号:
//----------------------------------------------------------
//
// MODULE : InvItem.cpp
//
// PURPOSE : Inventory item base class
//
// CREATED : 12/12/97
//
//----------------------------------------------------------
// Includes....
#include <stdlib.h>
#include "InvItem.h"
#include "PlayerObj.h"
// ----------------------------------------------------------------------- //
//
// ROUTINE: CInvItem::SendActionMessage()
//
// PURPOSE: Send action message to client
//
// ----------------------------------------------------------------------- //
void CInvItem::SendActionMessage()
{
HMESSAGEWRITE hWrite;
HCLIENT hClient;
CPlayerObj *pObj;
DBYTE nVal;
if( IsPlayer( m_hOwner ))
{
pObj = ( CPlayerObj * )g_pServerDE->HandleToObject(m_hOwner);
hClient = pObj->GetClient( );
hWrite = g_pServerDE->StartMessage( hClient, SMSG_INVITEMACTION );
nVal = GetType( );
if( m_bIsActive )
nVal |= 0x80;
g_pServerDE->WriteToMessageByte( hWrite, nVal );
g_pServerDE->EndMessage2( hWrite, MESSAGE_GUARANTEED | MESSAGE_NAGGLE );
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -