public void Simulate(ref MatchState state, MatchInputContext input) { foreach (var rule in Rules) { rule.Simulate(ref state, input); } if (BlastZone != null) { state = BlastZone.Simulate(state); } CheckForFinish(state); }
public MatchState Simulate(MatchState state, MatchInputContext input) { foreach (var rule in Rules) { state = rule.Simulate(state, input); } if (BlastZone != null) { state = BlastZone.Simulate(state); } CheckForFinish(state); return(state); }