//根据返回值获取API列表,不是某返回值的API public static GameAPIDefine[] GetAPIDefineListExceptReturnType(TypeDefine type) { int[] api_id_list = DBManager.DataBaseManager.GetDataBaseManager().GetAPIs_Except_RetType(type.DBID); if (api_id_list == null) return null; GameAPIDefine[] ret = new GameAPIDefine[api_id_list.Length]; for(int i = 0; i < ret.Length; i++) { ret[i] = new GameAPIDefine(api_id_list[i]); } return ret; }
//获取所有API列表(获取所有API,无论有没有返回值,此函数自从动作加了过滤,还没给谁调过) public static GameAPIDefine[] GetAPIDefine_All() { int[] api_id_list = DBManager.DataBaseManager.GetDataBaseManager().GetAllAPIs(); if (api_id_list == null) return null; GameAPIDefine[] ret = new GameAPIDefine[api_id_list.Length]; for(int i = 0; i < ret.Length; i++) { ret[i] = new GameAPIDefine(api_id_list[i]); } return ret; }
//创建一个空动作表达式 public static ActionExp CreateNewActionExp(GameAPIDefine apidefine) { ActionExp expAction = new ActionExp(); expAction.API = new GameAPI(apidefine.DBID); expAction.ReturnType = expAction.API.ReturnType; return expAction; }