SA-MP/saco/deathwindow.h

46 lines
1.0 KiB
C
Raw Normal View History

#pragma once
#define MAX_DISP_DEATH_MESSAGES 5
#pragma pack(1)
typedef struct _DEATH_WINDOW_ENTRY
{
CHAR szKiller[MAX_PLAYER_NAME+1];
CHAR szKillee[MAX_PLAYER_NAME+1];
DWORD dwKillerColor;
DWORD dwKilleeColor;
BYTE byteWeaponType;
} DEATH_WINDOW_ENTRY;
#define SPECIAL_ENTRY_CONNECT 200
#define SPECIAL_ENTRY_DISCONNECT 201
//----------------------------------------------------
class CDeathWindow
{
private:
char _gap0[4];
DEATH_WINDOW_ENTRY m_DeathWindowEntries[MAX_DISP_DEATH_MESSAGES];
char _gap012B[24];
BOOL field_14B;
ID3DXFont *field_14F;
ID3DXFont *field_153;
void PushBack();
void AddToDeathWindowBuffer(CHAR *szKiller,CHAR *szKillee,DWORD dwKillerColor,DWORD dwKilleeColor,BYTE byteWeaponID);
public:
void AddMessage(CHAR *szKiller, CHAR *szKillee, DWORD dwKillerColor, DWORD dwKilleeColor, BYTE byteWeaponID);
PCHAR SpriteIDForWeapon(BYTE byteWeaponID);
CDeathWindow(IDirect3DDevice9 *pD3DDevice);
void CreateAuxFonts();
};
//----------------------------------------------------