Move git root from Client/ to src/ to track all source code: - Client: Game client source (moved to Client/Client/) - Server: Game server source - GameTools: Development tools - CryptoSource: Encryption utilities - database: Database scripts - Script: Game scripts - rylCoder_16.02.2008_src: Legacy coder tools - GMFont, Game: Additional resources 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
39 lines
1.2 KiB
C++
39 lines
1.2 KiB
C++
#ifndef _CHAT_LOG_H_
|
|
#define _CHAT_LOG_H_
|
|
|
|
#include <Network/Packet/PacketStruct/CharCommunityPacket.h>
|
|
#include <Network/Broadcast/ChatCharData.h>
|
|
#include <Log/ServerLog.h>
|
|
|
|
extern CServerLog g_ChattingLog;
|
|
|
|
class CChatLog
|
|
{
|
|
public:
|
|
|
|
static CChatLog& GetInstance();
|
|
|
|
bool Log(ChatData::CCharInfo& charInfo, const char cZone, const char cChannel, const char* szChatMsg, PktChat::PktChatCmd eChatType,
|
|
unsigned short usXPos, unsigned short usYPos, unsigned short usZPos, unsigned short usLang);
|
|
|
|
bool WhisperLog(ChatData::CCharInfo& charInfo, const char cZone, const char cChannel, const char* szChatMsg, const char* szTargetName,
|
|
unsigned short usXPos, unsigned short usYPos, unsigned short usZPos, unsigned short usLang, bool bIsChatToolAdmin);
|
|
|
|
bool AdminLog(unsigned long dwTargetUID, unsigned long dwTargetCID,
|
|
const char* szAdminID, const char* szSendName, const char* szReceiveName,
|
|
const char* szChatMsg, unsigned char cChatType, unsigned short usLang);
|
|
|
|
void Flush();
|
|
|
|
unsigned __int64 GetLogDataSize() const;
|
|
unsigned __int64 GetLogNum() const { return m_dwLogNum; }
|
|
|
|
private:
|
|
|
|
CChatLog();
|
|
~CChatLog();
|
|
|
|
unsigned __int64 m_dwLogNum;
|
|
};
|
|
|
|
#endif |