Example #1
0
 protected Mutator GetMutatorInstance(Type t, State obj)
 {
     try
     {
         Mutator mutator = (Mutator)t.GetConstructor(new Type[] { typeof(State) }).Invoke(new object[] { obj });
         mutator.context = this;
         return(mutator);
     }
     catch (TargetInvocationException ex)
     {
         if (ex.InnerException != null)
         {
             throw ex.InnerException;
         }
         else
         {
             throw;
         }
     }
 }
Example #2
0
 protected virtual void MutationStrategy_StateMutating(State state, Mutator mutator)
 {
 }
Example #3
0
 protected virtual void MutationStrategy_DataMutating(ActionData actionData, DataElement element, Mutator mutator)
 {
 }