Files
2022-10-26 12:25:11 +08:00

186 lines
6.0 KiB
C++

// stdafx.h : 자주 사용하지만 자주 변경되지는 않는
// 표준 시스템 포함 파일 및 프로젝트 관련 포함 파일이
// 들어 있는 포함 파일입니다.
//
#pragma once
#define __NA_000360_20070323_TRIGGER_LIBRARY
#define __WAVERIX_TEST_TIMEROBJECT__
//#define __WAVERIX_AUTH_SERVER_TEST__
#include "../../include/Global.Define.h"
//━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫
// <INCLUDE><WINDOWS>
#include <tchar.h>
#include <winsock2.h>
#include <windows.h>
#include <oledb.h>
#ifdef WISECLIENT_SCRIPTLOGIC_EXPORTS
# define WISECLIENT_SCRIPTLOGIC_API __declspec(dllexport)
#else //
# define WISECLIENT_SCRIPTLOGIC_API __declspec(dllimport)
#endif //
//━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫
// <INCLUDE><SUN><DEFINE>
#include <Define.h>
#include <ServerCommonDef.h>
#include <Version.h>
#include <ServerBuildVersion.h>
//━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫
// <INCLUDE><SUN><COMMON>
#include <UtilityCommon.h>
#include <Const.h>
#include <ServerConst.h>
#include <ResultCode.h>
#include <PacketStruct.h>
#include <ServerGlobal.h>
#include <ServerStruct.h>
#include <PacketStruct_CG.h>
//━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫
// <INCLUDE><SUN><NETWORK>
#include <IOCPServer.h>
#include <NetworkObject.h>
#include <chunk_stl.h>
#include <map>
#include <hash_map>
using namespace std;
using namespace stdext;
using namespace util;
//━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫
//━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫
// <INCLUDE><SUN><UTILITY>
#include <LinkedlistCS.h>
#include <CriticalSection.h>
#include <MemoryPoolFactory.h>
#include <MemoryPoolFactoryV.h>
#include <SolarAssert.h>
#include <Misc.h>
#include <Timer.h>
#ifndef __NA000000_070913_HACKSHIELD_INSTALLATION__
# include <AKSupport.h>
#endif
//━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫
// <INCLUDE><SUN><SHARED>
//#include <ScriptCode.Definition.h>
#include <ScriptCode.IParser.h>
#include <ScriptDataManager.h>
#include <WorkLoad/WorkLoadPacketStream.h>
#include <WorkLoad/WorkLoadContainer.h>
#include <WorkLoad/WorkLoadManager.h>
#include <SafeStringBufferControl.h>
#include <PacketStruct_CG.h>
#include <SolarLog.h>
#include <SunLog.h>
#define CODE_BACKUP (0)
#define CODE_TEST (0)
#define CODE_RENEWAL (1)
#define DEBUGGING_LEVEL 3
//# define DEBUGGING_CODE_L1(str) printf("%s:%u\n", __FUNCTION__, __LINE__);
//# define DEBUGGING_CODE_L2(str) printf("%s:%u\n", __FUNCTION__, __LINE__);
//# define DEBUGGING_CODE_L3(str) printf("%s:%u\n", __FUNCTION__, __LINE__);
#ifdef _DEBUG
# define DEBUGGING_CODE_WRITE() printf("%s:%u\n", __FUNCTION__, __LINE__);
# define DEBUGGING_OUTPUT_TYPE1() CSunLog::cOUTPUT_BOTH
# define DEBUGGING_OUTPUT_TYPE2() CSunLog::cOUTPUT_BOTH
# define DEBUGGING_OUTPUT_TYPE3() CSunLog::cOUTPUT_BOTH
#else
# define DEBUGGING_CODE_WRITE()
# define DEBUGGING_OUTPUT_TYPE1() CSunLog::cOUTPUT_BOTH
# define DEBUGGING_OUTPUT_TYPE2() CSunLog::cOUTPUT_FILE
# define DEBUGGING_OUTPUT_TYPE3() CSunLog::cOUTPUT_CONSOLE
#endif //
#if DEBUGGING_LEVEL == 1
# define DEBUGGING_CODE_L1(str) MessageOutEx(g_pSunLog, CSunLog::cCRITICAL_LOG, DEBUGGING_OUTPUT_TYPE1(), CSunLog::cCATE_DEFAULT, _T("L1:%s:%u { %s }"), __FUNCTION__, __LINE__, str);
# define DEBUGGING_CODE_L2(str)
# define DEBUGGING_CODE_L3(str)
#elif DEBUGGING_LEVEL == 2
# define DEBUGGING_CODE_L1(str) MessageOutEx(g_pSunLog, CSunLog::cCRITICAL_LOG, DEBUGGING_OUTPUT_TYPE1(), CSunLog::cCATE_DEFAULT, _T("L1:%s:%u { %s }"), __FUNCTION__, __LINE__, str);
# define DEBUGGING_CODE_L2(str) MessageOutEx(g_pSunLog, CSunLog::cMIDDLE_LOG, DEBUGGING_OUTPUT_TYPE3(), CSunLog::cCATE_DEFAULT, _T("L1:%s:%u { %s }"), __FUNCTION__, __LINE__, str);
# define DEBUGGING_CODE_L3(str)
#elif DEBUGGING_LEVEL == 3
# define DEBUGGING_CODE_L1(str) MessageOutEx(g_pSunLog, CSunLog::cCRITICAL_LOG, DEBUGGING_OUTPUT_TYPE1(), CSunLog::cCATE_DEFAULT, _T("L1:%s:%u { %s }"), __FUNCTION__, __LINE__, str);
# define DEBUGGING_CODE_L2(str) MessageOutEx(g_pSunLog, CSunLog::cMIDDLE_LOG, DEBUGGING_OUTPUT_TYPE3(), CSunLog::cCATE_DEFAULT, _T("L1:%s:%u { %s }"), __FUNCTION__, __LINE__, str);
# define DEBUGGING_CODE_L3(str) MessageOutEx(g_pSunLog, CSunLog::cFULL_LOG, DEBUGGING_OUTPUT_TYPE3(), CSunLog::cCATE_DEFAULT, _T("L1:%s:%u { %s }"), __FUNCTION__, __LINE__, str);
#endif //
//━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫
// <FIND KEYWORD>
// 보안 관련 : (SUN_SECURE)
//
#include <Include/Macro.Function.h>
#include <Include/WiseDefines.h>
#include <Application/VEntryRouter.h>
#include <Function/ObjectPoolRouter.h>
#include <Function/Timer.Interfaces.h>
#include <Function/StartEndChecker.h>
#include <Information/Manipulater.h>
#include <Information/3DEngine/3DEngineWrapper.h>
#include <Include/WiseInterfaces.Internal.h>
#include <Function/Interfaces.Converter.h>
#include <Information/Secure/IGameResourceInClient.h>
//━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
//
#if defined(WISE_BASE)
//
//━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
# include <Logic/LogicFlowController.h>
# include <Object/WiseUser.h>
#if defined(__NA000000_070913_HACKSHIELD_INSTALLATION__)
# include <Application/HackShield_Client.h>
#endif //
//━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
//
#elif defined(WISECLIENT_SCRIPTLOGIC_EXPORTS)
//
//━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
//━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
//
#endif //
//
//━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
//━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫
#include "stdafx.ShreadLibs.h"
//////////////////////////////////////////////////////////////////////////