public bool Equals(Rule other) { if (other == null) { return(false); } return (Target.Equals(other.Target) && Chains.SequenceEqual(other.Chains)); }
protected bool Equals(DungeonGeneratorConfiguration <TNode> other) { return(RoomsCanTouch == other.RoomsCanTouch && EarlyStopIfIterationsExceeded == other.EarlyStopIfIterationsExceeded && Nullable.Equals(EarlyStopIfTimeExceeded, other.EarlyStopIfTimeExceeded) && RepeatModeOverride == other.RepeatModeOverride && ThrowIfRepeatModeNotSatisfied == other.ThrowIfRepeatModeNotSatisfied && Equals(ChainDecompositionConfiguration, other.ChainDecompositionConfiguration) && Chains.SequenceEqual(other.Chains) && Equals(SimulatedAnnealingConfiguration, other.SimulatedAnnealingConfiguration) && SimulatedAnnealingMaxBranching == other.SimulatedAnnealingMaxBranching); }