[add] first
This commit is contained in:
26
UnityFramework/Info.plist
Normal file
26
UnityFramework/Info.plist
Normal file
@@ -0,0 +1,26 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>CFBundleDevelopmentRegion</key>
|
||||
<string>$(DEVELOPMENT_LANGUAGE)</string>
|
||||
<key>CFBundleDisplayName</key>
|
||||
<string>UnityFramework</string>
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>$(EXECUTABLE_NAME)</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundleName</key>
|
||||
<string>$(PRODUCT_NAME)</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>FMWK</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>1.0</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>$(CURRENT_PROJECT_VERSION)</string>
|
||||
<key>NSPrincipalClass</key>
|
||||
<string>UnityFramework</string>
|
||||
</dict>
|
||||
</plist>
|
||||
62
UnityFramework/UnityFramework.h
Normal file
62
UnityFramework/UnityFramework.h
Normal file
@@ -0,0 +1,62 @@
|
||||
#import <UIKit/UIKit.h>
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
#import "UnityAppController.h"
|
||||
|
||||
#include "UndefinePlatforms.h"
|
||||
#include <mach-o/ldsyms.h>
|
||||
typedef struct
|
||||
#ifdef __LP64__
|
||||
mach_header_64
|
||||
#else
|
||||
mach_header
|
||||
#endif
|
||||
MachHeader;
|
||||
#include "RedefinePlatforms.h"
|
||||
|
||||
|
||||
//! Project version number for UnityFramework.
|
||||
FOUNDATION_EXPORT double UnityFrameworkVersionNumber;
|
||||
|
||||
//! Project version string for UnityFramework.
|
||||
FOUNDATION_EXPORT const unsigned char UnityFrameworkVersionString[];
|
||||
|
||||
// In this header, you should import all the public headers of your framework using statements like #import <UnityFramework/PublicHeader.h>
|
||||
|
||||
#pragma once
|
||||
|
||||
// important app life-cycle events
|
||||
__attribute__ ((visibility("default")))
|
||||
@protocol UnityFrameworkListener<NSObject>
|
||||
@optional
|
||||
- (void)unityDidUnload:(NSNotification*)notification;
|
||||
- (void)unityDidQuit:(NSNotification*)notification;
|
||||
@end
|
||||
|
||||
__attribute__ ((visibility("default")))
|
||||
@interface UnityFramework : NSObject
|
||||
{
|
||||
}
|
||||
|
||||
- (UnityAppController*)appController;
|
||||
|
||||
+ (UnityFramework*)getInstance;
|
||||
|
||||
- (void)setDataBundleId:(const char*)bundleId;
|
||||
|
||||
- (void)runUIApplicationMainWithArgc:(int)argc argv:(char*[])argv;
|
||||
- (void)runEmbeddedWithArgc:(int)argc argv:(char*[])argv appLaunchOpts:(NSDictionary*)appLaunchOpts;
|
||||
|
||||
- (void)unloadApplication;
|
||||
- (void)quitApplication:(int)exitCode;
|
||||
|
||||
- (void)registerFrameworkListener:(id<UnityFrameworkListener>)obj;
|
||||
- (void)unregisterFrameworkListener:(id<UnityFrameworkListener>)obj;
|
||||
|
||||
- (void)showUnityWindow;
|
||||
- (void)pause:(bool)pause;
|
||||
|
||||
- (void)setExecuteHeader:(const MachHeader*)header;
|
||||
- (void)sendMessageToGOWithName:(const char*)goName functionName:(const char*)name message:(const char*)msg;
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user