1+ #pragma once
2+
3+ #include < Geode/Geode.hpp>
4+
5+ using namespace geode ::prelude;
6+
7+ class ObjectDestroyedEvent : public GlobalEvent <ObjectDestroyedEvent, bool (), CCObject*> {
8+ public:
9+ using GlobalEvent::GlobalEvent;
10+ };
11+
12+ class AGUEngine : public cocos2d ::CCScriptEngineProtocol {
13+
14+ cocos2d::ccScriptType getScriptType ();
15+ void removeScriptObjectByCCObject (cocos2d::CCObject* pObj);
16+ int executeNodeEvent (cocos2d::CCNode* pNode, int nAction);
17+ int executeMenuItemEvent (cocos2d::CCMenuItem* pMenuItem);
18+
19+ void removeScriptHandler (int nHandler) {}
20+ int reallocateScriptHandler (int nHandler) { return -1 ; }
21+ int executeString (const char * codes) { return -1 ; }
22+ int executeScriptFile (const char * filename) { return -1 ; }
23+ int executeGlobalFunction (const char * functionName) { return -1 ; }
24+ int executeNotificationEvent (cocos2d::CCNotificationCenter* pNotificationCenter, const char * pszName) { return -1 ; }
25+ int executeCallFuncActionEvent (cocos2d::CCCallFunc* pAction, cocos2d::CCObject* pTarget = nullptr ) { return -1 ; }
26+ int executeSchedule (int nHandler, float dt, cocos2d::CCNode* pNode = nullptr ) { return -1 ; }
27+ int executeLayerTouchesEvent (cocos2d::CCLayer* pLayer, int eventType, cocos2d::CCSet *pTouches) { return -1 ; }
28+ int executeLayerTouchEvent (cocos2d::CCLayer* pLayer, int eventType, cocos2d::CCTouch *pTouch) { return -1 ; }
29+ int executeLayerKeypadEvent (cocos2d::CCLayer* pLayer, int eventType) { return -1 ; }
30+ int executeAccelerometerEvent (cocos2d::CCLayer* pLayer, cocos2d::CCAcceleration* pAccelerationValue) { return -1 ; }
31+ int executeEvent (int nHandler, const char * pEventName, cocos2d::CCObject* pEventSource = nullptr , const char * pEventSourceClassName = nullptr ) { return -1 ; }
32+ int executeEventWithArgs (int nHandler, cocos2d::CCArray* pArgs) { return -1 ; }
33+ bool handleAssert (const char *msg) { return false ; }
34+ bool parseConfig (ConfigType type, const gd::string& str) { return false ; }
35+ };
0 commit comments