|
Player12
An open source football management simulator
|
Functions | |
| template<typename T > requires std::is_integral_v<T> | |
| void | appendInt (std::string &out, T value) |
| void | appendShortest (std::string &out, float value) |
| void | appendFixed (std::string &out, float value, int decimals) |
Allocation-free text encoders for the save repositories (CSV and JSON columns written for every row on every save).
|
inline |
Appends value with decimals (0-4) fixed decimals, rounded half away from zero (like "{:.Nf}" except for exact binary ties).
|
inline |
Appends an integer.
|
inline |
Appends a float in its shortest form that parses back to the same float.