#pragma once //======================================================================================================================= /// WorldLog /** @history - 2006.5.15 : [taiyo] ¹ö±× ¼öÁ¤ ¹× À§ÇèÇÑ ¹®ÀÚ¿­ ó¸® ¼öÁ¤ */ //======================================================================================================================= #include #include #include #include class User; class WorldGuild; class WorldLog : public BaseLog { private: ChatData m_ChatData; MoneyData m_MoneyData; ActionData m_ActionData; BOOL m_bLogAble[CHAT_CHANNEL - CHAT_NORMAL + 1]; TCHAR m_pTmpBuffer[MAX_ADDINFO_SIZE+1]; public: WorldLog(void); ~WorldLog(void); inline BOOL IsLogAble( eLOG_CHAT eChatType ) { return m_bLogAble[eChatType - CHAT_NORMAL]; } VOID SetLogAble(); ////////////////////////////////////////////////////////////////////////// // äÆÃ ·Î±× // 1. ÀÏ¹Ý Ã¤ÆÃ void WriteNormalChat( User* pUser, int nChannelID, TCHAR* pszChatMsg, DWORD MaxSize ); // 2. ¿ÜÄ¡±â void WriteShoutChat( User* pUser, int nChannelID, TCHAR* szChatMsg, DWORD MaxSize ); // 3. ÆÄƼ äÆÃ void WritePartyChat( User* pUser, int nChannelID, TCHAR* szChatMsg, DWORD MaxSize ); // 4. ±æµå äÆÃ void WriteGuildChat( User* pUser, int nChannelID, WorldGuild* pGuild, TCHAR* szChatMsg, DWORD MaxSize ); // 5. ±Ó¼Ó¸» void WriteWhisperChat( User* pUser, int nChannelID, User* pTargetUser, TCHAR* szChatMsg, DWORD MaxSize ); // 6. Ä£±¸ äÆÃ(1:1 äÆÃ) void WriteFriendChat( User* pUser, int nChannelID, User* pFriend, TCHAR* szChatMsg, DWORD MaxSize ); // 7. ä³Î äÆÃ(äÆÃ¹æ »ý¼º) void WriteChannelChat(User* pUser, int nChannelID, TCHAR* ptszChatMsg, DWORD dwMaxSize); ////////////////////////////////////////////////////////////////////////// // ÇÏÀÓ ·Î±× // 1. ÇÏÀÓ ·Î¶Ç Á¤»ê ·Î±×(·Î±×ŸÀÔ, Äɸ¯ÅÍ °íÀ¯°ª, ÇÏÀÓ·Î¶Ç È¸Â÷, ´ç÷µî¼ö, ´ç÷±Ý¾×) void LogSettleHeimLotto(int log_type, User* user, CHARGUID char_guid, WORD draw_num, BYTE winner_grade, MONEY amount_cost); ////////////////////////////////////////////////////////////////////////// // ¾×¼Ç ·Î±× // implemented by _NA_1798_20110114_SYSTEM_MEMO_ADDITIONAL_LOGGING void LogAction(int log_type, User* user, const TCHAR* char_name, const TCHAR* additional_info = NULL); #ifdef _NA_008283_20150511_NOTIFICATIONS_SYSTEM ////////////////////////////////////////////////////////////////////////// // ¾Ë¸²¸Þ¼¼Áö ·Î±× void LogNotification(NotificationInfo& notification); #endif // _NA_008283_20150511_NOTIFICATIONS_SYSTEM };