Exemplo n.º 1
0
    public T GetRequest <T>(ActionCode actionCode) where T : RequestActionBase
    {
        RequestActionBase baseRequest = null;

        requestDic.TryGetValue(actionCode, out baseRequest);
        return((T)baseRequest);
    }
Exemplo n.º 2
0
 public void AddRequest(ActionCode actionCode, RequestActionBase baseRequest)
 {
     if (!requestDic.ContainsKey(actionCode))
     {
         requestDic.Add(actionCode, baseRequest);
     }
 }
Exemplo n.º 3
0
 public static void AddRequest(this GameFacade facade
                               , ActionCode actionCode, RequestActionBase baseRequest)
 {
     facade.RequestManager.AddRequest(actionCode, baseRequest);
 }