Added all the settings to the Python out stream

This commit is contained in:
Daniel Santos-Olivan 2020-12-17 13:55:41 +01:00 committed by bernat
parent d979b7f97a
commit dde86b42bb
1 changed files with 7 additions and 1 deletions

View File

@ -34,7 +34,13 @@ namespace rpc {
std::ostream &operator<<(std::ostream &out, const EpisodeSettings &settings) {
auto BoolToStr = [](bool b) { return b ? "True" : "False"; };
out << "WorldSettings(synchronous_mode=" << BoolToStr(settings.synchronous_mode)
<< ",no_rendering_mode=" << BoolToStr(settings.no_rendering_mode) << ')';
<< ",no_rendering_mode=" << BoolToStr(settings.no_rendering_mode)
<< ",fixed_delta_seconds=" << settings.fixed_delta_seconds.get()
<< ",substepping=" << BoolToStr(settings.substepping)
<< ",max_substep_delta_time=" << settings.max_substep_delta_time
<< ",max_substeps=" << settings.max_substeps
<< ",max_culling_distance=" << settings.max_culling_distance
<< ",deterministic_ragdolls=" << BoolToStr(settings.deterministic_ragdolls) << ')';
return out;
}