// stdafx.h : ÀÚÁÖ »ç¿ëÇÏÁö¸¸ ÀÚÁÖ º¯°æµÇÁö´Â ¾Ê´Â // Ç¥ÁØ ½Ã½ºÅÛ Æ÷ÇÔ ÆÄÀÏ ¹× ÇÁ·ÎÁ§Æ® °ü·Ã Æ÷ÇÔ ÆÄÀÏÀÌ // µé¾î ÀÖ´Â Æ÷ÇÔ ÆÄÀÏÀÔ´Ï´Ù. // #pragma once #define WIN32_LEAN_AND_MEAN // °ÅÀÇ »ç¿ëµÇÁö ¾Ê´Â ³»¿ëÀº Windows Çì´õ¿¡¼­ Á¦¿ÜÇÕ´Ï´Ù. #define WINVER 0x0500 #define _WIN32_WINNT 0x0500 #define DIRECTINPUT_VERSION 0x0800 // ¾Æ·¡ Ç÷¡±×´Â ±âÁ¸¿¡ »ç¿ëÇÏ´ø String°ü·Ã ÇÔ¼öµéµµ ±×´ë·Î µÎµµ·Ï ÇѰÍÀÓ. #define STRSAFE_NO_DEPRECATE /// ÃßÈÄ¿¡ ¾ø¾ÖÀÚ #define _CRT_SECURE_NO_WARNINGS #define _CRT_NON_CONFORMING_SWPRINTFS #pragma warning (push, 3) #include #include #include #include /// Animation #include #include #include #include #include #include #include #include #include /// Shader #include #include #include #include #include #include #include #include #include #include #include #include #include #pragma warning (pop) /// #define STRSAFE_LIB #include /// 080403 Client Network Model (½Å±ÔÅë½Å ¸ðµâ) - ÃÖÁ¾¼öÁ¤. #include "iocpclient.h" /// ºñÇ¥ÁØ È®ÀåÀ» »ç¿ëÇß½À´Ï´Ù : ±¸Á¶Ã¼/°ø¿ë ±¸Á¶Ã¼ÀÇ À̸§ÀÌ ¾ø½À´Ï´Ù. #pragma warning( disable: 4201 ) // º¹»ç »ý¼ºÀÚ¸¦ »ý¼ºÇÏÁö ¸øÇß½À´Ï´Ù. #pragma warning( disable: 4511 ) // ÄÄÆÄÀÏ·¯¿¡¼­ ÁÖ¾îÁø Ŭ·¡½º¿¡ ´ëÇÑ ´ëÀÔ ¿¬»êÀÚ¸¦ »ý¼ºÇÒ ¼ö ¾ø½À´Ï´Ù. #pragma warning( disable: 4512 ) // Á¶°Ç½ÄÀÌ »ó¼öÀÔ´Ï´Ù. #pragma warning( disable: 4127 ) // ÂüÁ¶µÇÁö ¾ÊÀº Çü½Ä ¸Å°³ º¯¼öÀÔ´Ï´Ù. #pragma warning( disable: 4100 ) /// STL #include "Pool.h" #include "BasicString.h" #include "Algorithm.h" #include "Allocator.h" #include "PriorityQueue.h" #include "Array.h" #include "DefragmentArray.h" #include "List.h" #include "HashMap.h" #include "HashSet.h" #include "PointerArray.h" #include "PointerList.h" #include "PointerHashMap.h" #include "PointerHashSet.h" /// ÆÄÀÏ #include "Console.h" #include "File.h" #include "FileLoader.h" #include "FileSaver.h" #include "GameFile.h" /// ÅäÅ« #include "Tokenizer.h" #include "XPerformanceGuard.h" /// defines #define SAFE_DELETE(x) if(x) { delete x; x = NULL; } #define SAFE_DELETE_ARRAY(x) if(x) { delete[] x; x = NULL; } #define SAFE_RELEASE(x) if(x) { x->Release(); x = NULL; } #define SAFE_NIDELETE(x) if(x) { NiDelete x; x = NULL; } #define SAFE_EXIT_DELETE(x) if(x) { x->Exit(); delete x; x = NULL; } inline long FloatToInt( float value ) { int i = (int)value; return ( value - i >= 0.999f ) ? ++i : i; } const int SECOND = 1000; const int MINUTE = 60 * SECOND; const int HOUR = 60 * MINUTE; const int DAY = 24 * HOUR; #define S_PI (3.14159265358979323846f) #define S_ToRadian( degree ) ((degree) * (S_PI / 180.0f)) int ConvertToAscii( const wchar_t* uniStr, char* str, unsigned int bufferSize ); int ConvertToUnicode( const char* str, wchar_t* uniStr, unsigned int buffersize ); int ConvertUTF8ToWideChar( const char* str, wchar_t* uniStr, unsigned int buffersize ); #define MAXSTRINGLEN(s) ((sizeof(s)/sizeof(s[0]))-1) void Sstrncpy( LPTSTR pDest, unsigned int destMaxLen, LPCTSTR pSrc, unsigned int count ); void Sstrncat( LPTSTR pDest, unsigned int destMaxLen, LPCTSTR pSrc, unsigned int count ); #ifdef _DEVSYS #undef assert #define assert(exp) {if(!(exp)) __asm{int 0x03}} #endif void GameErrorLog( char* format, ... );