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