public void RunDiagnostics(DiagnosticsReport result) { int brokenValves = 0; foreach (bool[] row in state.pipes.valves_broken) { brokenValves += row.Count(true); } if (brokenValves > 0) { result.AddAffectedGameComponent(pipes, "valves"); } }
public void RunDiagnostics(DiagnosticsReport report) { if (simulateTechnicalFailures) { report.AddAffectedRoomComponent("everything", true); report.AddAffectedGameComponent(Ets.Room.GetGame <PipesGame>(), "valves"); report.AddAffectedGameComponent(Ets.Room.GetGame <CratesGame>(), "buttons"); report.AddAffectedGameComponent(Ets.Room.GetGame <CratesGame>(), "screens"); report.AddAffectedGameComponent(Ets.Room.GetGame <DynamiteGame>(), "hole_0_1"); report.AddAffectedGameComponent(Ets.Room.GetGame <DynamiteGame>(), "hole_2_1"); report.AddAffectedGameComponent(Ets.Room.GetGame <TriggersGame>(), "trigger_0"); report.AddAffectedGameComponent(Ets.Room.GetGame <TriggersGame>(), "trigger_4"); } }