|
|
|
@ -10,15 +10,26 @@ |
|
|
|
|
|
|
|
|
|
@interface dcocos_bridge : NSObject |
|
|
|
|
+ (dcocos_bridge *)instance; |
|
|
|
|
/**
|
|
|
|
|
Sets the custom resource directory path. |
|
|
|
|
|
|
|
|
|
@param path The custom path string (e.g., @"/customFolder") that will be appended to the Documents directory. |
|
|
|
|
*/ |
|
|
|
|
- (void)setCustomResourcePath:(NSString *)path; |
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
Configures Cocos2d-x search paths by using the previously set custom resource path. |
|
|
|
|
If no custom path has been set, it defaults to @"/hhhh". |
|
|
|
|
*/ |
|
|
|
|
- (void)configureCocos2dSearchPaths; |
|
|
|
|
- (void)initPlatform; |
|
|
|
|
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions; |
|
|
|
|
- (void)applicationWillResignActive:(UIApplication *)application; |
|
|
|
|
- (void)applicationDidBecomeActive:(UIApplication *)application; |
|
|
|
|
- (void)applicationWillTerminate:(UIApplication *)application; |
|
|
|
|
- (void)viewWillTransitionToSize:(CGSize)size withTransitionCoordinator:(id<UIViewControllerTransitionCoordinator>)coordinator; |
|
|
|
|
- (UIView*)getCocosView; |
|
|
|
|
- (void)setCocosView:(UIView*)view; |
|
|
|
|
- (UIView *)getCocosView; |
|
|
|
|
- (void)setCocosView:(UIView *)view; |
|
|
|
|
- (float)getCocosPixelRatio; |
|
|
|
|
|
|
|
|
|
+ (void)callS:(NSString *)funcName args:(NSString *)args; |
|
|
|
|