Wuyx
2016-12-22 d8d5ed0df38f9b558a031bfed7b0ad5a3ff6d588
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