Wuyx
2016-12-19 7321fb3d92c54d5e4dd10d59bf6e583a718f9648
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
//
//  WALuaFuncIdManager.h
//  WACocos2dxLua
//
//  Created by wuyx on 16/9/9.
//
//
 
#import <Foundation/Foundation.h>
typedef enum WALuaExecOption{
    WALuaExecOptionSucc,
    WALuaExecOptionFail,
    WALuaExecOptionCancel
}WALuaExecOption;
 
typedef enum WALuaReleaseOption{
    WALuaReleaseOptionNone,
    WALuaReleaseOptionSingle,
    WALuaReleaseOptionAll
}WALuaReleaseOption;
 
@interface WALuaFuncIdManager : NSObject
+(WALuaFuncIdManager*)sharedInstance;
+(void)addObjWithKey:(NSString*)aKey succFuncId:(NSNumber*)succFuncId failFuncId:(NSNumber*)failFuncId cancelFuncId:(NSNumber*)cancelFuncId;
+(void)execWithKey:(NSString*)key option:(WALuaExecOption)option result:(NSObject*)result;
+(void)execWithKey:(NSString*)key option:(WALuaExecOption)option releaseOption:(WALuaReleaseOption)releaseOption result:(NSObject*)result;
+(NSNumber*)getObjWithKey:(NSString*)key option:(WALuaExecOption)option;
@end