⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 miscnm.h

📁 <B>DirectX9.0 3D游戏编程</B>
💻 H
字号:
/*******************************************************************
 *         Advanced 3D Game Programming using DirectX 9.0
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 * copyright (c) 2003 by Peter A Walsh and Adrian Perez
 * See license.txt for modification and distribution information
 ******************************************************************/

#ifndef _MISCNM_H
#define _MISCNM_H

#include "NetMessages.h"


//=================================================================

/**
 * Message: Score Change
 * ID: 13
 * Desc: When someone dies, someone's score changes.  Just takes
 * a player ID and a new score.  Generally broadcast to all clients
 * whenever the score changes.
 */
class cNM_ScoreChange
: public cNetMessage
{
	int m_entID; // ID of the object that has been added.
	int m_newScore; // New score for that object.

public:

	cNM_ScoreChange( 
		int entID, 
		int newScore );
	cNM_ScoreChange(){}

	virtual int SerializeTo( uchar* pOutput );
	virtual void SerializeFrom( uchar *pFromData, int datasize );
	virtual void Exec();

protected:
};


#endif//_MISCNM_H

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -