2025-02-18 11:26:04 +08:00

33 lines
1.0 KiB
Objective-C

//
// dcocos_bridge.h
// dcocos_bridge
//
// Created by gem on 29/8/2024.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@interface dcocos_bridge : NSObject
+ (dcocos_bridge *)instance;
/**
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:(NSString *)customResourcePath;
;
- (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;
- (float)getCocosPixelRatio;
+ (void)callS:(NSString *)funcName args:(NSString *)args;
@end