Exemple #1
0
 private static object ParamValue(ActionDef act, ParameterInfo arg, ModEntry actionMod, ModEntry handler)
 {
     if (arg.ParameterType == typeof(ActionDef))
     {
         return(act);
     }
     if (arg.ParameterType == typeof(string))
     {
         return(actionMod.Metadata.Id);
     }
     return(ModPhases.ParamValue(arg, handler));
 }