Beispiel #1
0
 private static ActionDef AddDefAction(ActionDef a, ActionDef defValues)
 {
     a = new ActionDef(a);
     if (defValues == null)
     {
         return(a);
     }
     foreach (var e in defValues)
     {
         if (!a.ContainsKey(e.Key))
         {
             a.Add(e.Key, e.Value);
         }
     }
     if (!a.ContainsKey("phase"))
     {
         a.Add("phase", DEFAULT_PHASE_LOWER);
     }
     else
     {
         a["phase"] = a["phase"].ToString().Trim().ToLowerInvariant();
     }
     return(a);
 }
Beispiel #2
0
 private static ActionDef AddDefAction(ActionDef a, ActionDef defValues)
 {
     a = new ActionDef(a);
     if (defValues == null)
     {
         return(a);
     }
     foreach (var e in defValues)
     {
         if (!a.ContainsKey(e.Key))
         {
             a.Add(e.Key, e.Value);
         }
     }
     return(a);
 }