2024-04-20 12:08:55 +02:00
|
|
|
#pragma once
|
|
|
|
|
2024-04-25 11:49:09 +02:00
|
|
|
#ifndef PP_DEBUG
|
2024-04-20 12:08:55 +02:00
|
|
|
#include <concepts>
|
|
|
|
#include <sstream>
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
#include <SFML/Graphics/Color.hpp>
|
2024-04-25 11:49:09 +02:00
|
|
|
#endif
|
2024-04-20 12:08:55 +02:00
|
|
|
|
2024-04-20 13:37:06 +02:00
|
|
|
inline std::ostream &operator<<(std::ostream &stream, const sf::Color &color) {
|
2024-04-20 12:08:55 +02:00
|
|
|
stream << "Color(" << color.r << ", " << color.g << ", " << color.b << ", " << color.a << ")";
|
|
|
|
return stream;
|
|
|
|
}
|
|
|
|
|
|
|
|
template <typename T>
|
2024-04-20 13:37:06 +02:00
|
|
|
inline std::ostream &operator<<(std::ostream &stream, const std::vector<T> &vec) {
|
2024-04-20 12:08:55 +02:00
|
|
|
stream << "[";
|
|
|
|
for (size_t i = 0; i < vec.size(); ++i) {
|
|
|
|
stream << vec.at(i);
|
|
|
|
if (i != vec.size() - 1) {
|
|
|
|
stream << ", ";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stream << "]";
|
|
|
|
return stream;
|
|
|
|
}
|