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; } } }
protected virtual void MutationStrategy_StateMutating(State state, Mutator mutator) { }
protected virtual void MutationStrategy_DataMutating(ActionData actionData, DataElement element, Mutator mutator) { }