📄 msgnpcinfo.h
字号:
// MsgNpcInfo.h: interface for the CMsgNpcInfo class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_MSGNPCINFO_H__6E225150_E2CE_4437_8045_606051EFAEC8__INCLUDED_)
#define AFX_MSGNPCINFO_H__6E225150_E2CE_4437_8045_606051EFAEC8__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "NetMsg.h"
#include "NetStringPacker.h"
class CMsgNpcInfo : public CNetMsg
{
public:
CMsgNpcInfo();
virtual ~CMsgNpcInfo();
public:
BOOL Create (char* pMsgBuf, DWORD dwSize);
void Process (void* pInfo);
BOOL Create (CMyPos posNpc, int nDir, int nFrame, int nAction);
BOOL Create (CMyPos posNpc, int nLook);
protected:
typedef struct
{
USHORT unMsgSize;
USHORT unMsgType;
OBJID id; // lookface for statuary
unsigned short usCellX;
unsigned short usCellY;
USHORT usLook; // dir for statuary
USHORT usType; // frame for statuary
USHORT usSort; // pose for statuary
char cLength; // 高矮
char cFat; // 胖瘦
char szName[1]; // name
}MSG_Info;
MSG_Info* m_pInfo;
private:
CNetStringPacker m_StrPacker;
};
#endif // !defined(AFX_MSGNPCINFO_H__6E225150_E2CE_4437_8045_606051EFAEC8__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -