2022-09-28 15:38:30 -04:00
|
|
|
#include <cocos2d.h>
|
|
|
|
|
|
|
|
using namespace cocos2d;
|
|
|
|
|
|
|
|
#pragma warning(push)
|
2022-10-30 14:56:36 -04:00
|
|
|
#pragma warning(disable : 4273)
|
2022-09-28 15:38:30 -04:00
|
|
|
|
|
|
|
CCKeyboardDispatcher* CCKeyboardDispatcher::get() {
|
|
|
|
return CCDirector::get()->getKeyboardDispatcher();
|
|
|
|
}
|
|
|
|
|
2022-10-06 15:33:56 -04:00
|
|
|
CCTouchDispatcher* CCTouchDispatcher::get() {
|
|
|
|
return CCDirector::sharedDirector()->getTouchDispatcher();
|
|
|
|
}
|
|
|
|
|
|
|
|
CCApplication* CCApplication::get() {
|
|
|
|
return CCApplication::sharedApplication();
|
|
|
|
}
|
|
|
|
|
|
|
|
CCDirector* CCDirector::get() {
|
|
|
|
return CCDirector::sharedDirector();
|
|
|
|
}
|
|
|
|
|
|
|
|
CCEGLView* CCEGLView::get() {
|
|
|
|
return CCDirector::sharedDirector()->getOpenGLView();
|
|
|
|
}
|
|
|
|
|
2022-10-15 13:19:20 -04:00
|
|
|
CCFileUtils* CCFileUtils::get() {
|
|
|
|
return CCFileUtils::sharedFileUtils();
|
|
|
|
}
|
|
|
|
|
2022-10-27 08:12:31 -04:00
|
|
|
CCSpriteFrameCache* CCSpriteFrameCache::get() {
|
|
|
|
return CCSpriteFrameCache::sharedSpriteFrameCache();
|
|
|
|
}
|
|
|
|
|
|
|
|
CCTextureCache* CCTextureCache::get() {
|
|
|
|
return CCTextureCache::sharedTextureCache();
|
|
|
|
}
|
|
|
|
|
2023-03-29 04:11:22 -04:00
|
|
|
CCScene* CCScene::get() {
|
|
|
|
return CCDirector::get()->getRunningScene();
|
|
|
|
}
|
|
|
|
|
|
|
|
CCScheduler* CCScheduler::get() {
|
|
|
|
return CCDirector::get()->getScheduler();
|
|
|
|
}
|
|
|
|
|
2022-09-28 15:38:30 -04:00
|
|
|
#pragma warning(pop)
|