mirror of https://github.com/axmolengine/axmol.git
#include “cocos2d.h” was FORBIDDEN in cocos modules. Reduces the dependence when header file changes.
This commit is contained in:
parent
9f793f8a9b
commit
432534d857
|
@ -25,6 +25,10 @@
|
|||
|
||||
#include "CCFontCharMap.h"
|
||||
#include "CCFontAtlas.h"
|
||||
#include "CCFileUtils.h"
|
||||
#include "CCDirector.h"
|
||||
#include "CCTextureCache.h"
|
||||
#include "ccUTF8.h"
|
||||
|
||||
NS_CC_BEGIN
|
||||
|
||||
|
|
|
@ -26,7 +26,6 @@
|
|||
#ifndef _CCFontCharMap_h_
|
||||
#define _CCFontCharMap_h_
|
||||
|
||||
#include "cocos2d.h"
|
||||
#include "CCFont.h"
|
||||
|
||||
NS_CC_BEGIN
|
||||
|
|
|
@ -28,9 +28,12 @@
|
|||
****************************************************************************/
|
||||
|
||||
#include "SocketIO.h"
|
||||
#include "CCDirector.h"
|
||||
#include "CCScheduler.h"
|
||||
#include "WebSocket.h"
|
||||
#include "HttpClient.h"
|
||||
#include <algorithm>
|
||||
#include <sstream>
|
||||
|
||||
NS_CC_BEGIN
|
||||
|
||||
|
|
|
@ -59,7 +59,10 @@ in the onClose method the pointer should be set to NULL or used to connect to a
|
|||
#ifndef __CC_SOCKETIO_H__
|
||||
#define __CC_SOCKETIO_H__
|
||||
|
||||
#include "cocos2d.h"
|
||||
#include "CCPlatformMacros.h"
|
||||
#include "CCMap.h"
|
||||
|
||||
#include <string>
|
||||
|
||||
NS_CC_BEGIN
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
Works on cocos2d-iphone and cocos2d-x.
|
||||
*/
|
||||
|
||||
#include "cocos2d.h"
|
||||
#include "CCPlatformMacros.h"
|
||||
|
||||
#if (CC_TARGET_PLATFORM != CC_PLATFORM_ANDROID)
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
Works on cocos2d-iphone and cocos2d-x.
|
||||
*/
|
||||
|
||||
#include "cocos2d.h"
|
||||
#include "CCPlatformMacros.h"
|
||||
|
||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID)
|
||||
|
||||
|
|
Loading…
Reference in New Issue