public T GetRequest <T>(ActionCode actionCode) where T : RequestActionBase { RequestActionBase baseRequest = null; requestDic.TryGetValue(actionCode, out baseRequest); return((T)baseRequest); }
public void AddRequest(ActionCode actionCode, RequestActionBase baseRequest) { if (!requestDic.ContainsKey(actionCode)) { requestDic.Add(actionCode, baseRequest); } }
public static void AddRequest(this GameFacade facade , ActionCode actionCode, RequestActionBase baseRequest) { facade.RequestManager.AddRequest(actionCode, baseRequest); }