63 lines
1.1 KiB
C
63 lines
1.1 KiB
C
#pragma once
|
|
|
|
#define WIN32_LEAN_AND_MEAN
|
|
#include <windows.h>
|
|
|
|
|
|
#pragma pack( 1 )
|
|
|
|
#define _INIT(_id,t) { id = _id; size = sizeof( *this ); type = t; }
|
|
|
|
const char LOG_TYPE_11N4S = 1;
|
|
const char LOG_TYPE_CHAT = 2;
|
|
|
|
////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// 공용
|
|
//
|
|
|
|
struct LS_MESSAGE
|
|
{
|
|
unsigned short id;
|
|
unsigned short size;
|
|
unsigned char type;
|
|
DWORD thread_id;
|
|
};
|
|
|
|
struct LS_11N4S : LS_MESSAGE
|
|
{
|
|
LS_11N4S() _INIT( 0, LOG_TYPE_11N4S )
|
|
|
|
__int64 n1, n2, n3, n4, n5, n6, n7, n8, n9, n10, n11;
|
|
|
|
unsigned short string_length_1;
|
|
unsigned short string_length_2;
|
|
unsigned short string_length_3;
|
|
unsigned short string_length_4;
|
|
};
|
|
|
|
struct LS_CHAT : LS_MESSAGE
|
|
{
|
|
LS_CHAT() _INIT( 0, LOG_TYPE_CHAT )
|
|
|
|
int nSenderAccountID;
|
|
int nSenderCharacterID;
|
|
|
|
unsigned char nChatType;
|
|
|
|
int nSenderPosX;
|
|
int nSenderPosY;
|
|
|
|
int nReceiverAccountID;
|
|
int nReceiverCharacterID;
|
|
|
|
unsigned char nSenderAccountLength;
|
|
unsigned char nSenderCharacterLength;
|
|
unsigned char nReceiverAccountLength;
|
|
unsigned char nReceiverCharacterLength;
|
|
unsigned short nChatLength;
|
|
};
|
|
|
|
#undef _INIT
|
|
|
|
#pragma pack() |