| 277 | //========================================================================== |
| 278 | |
| 279 | void FRandom::StaticWriteRNGState (FSerializer &arc) |
| 280 | { |
| 281 | FRandom *rng; |
| 282 | |
| 283 | arc("rngseed", rngseed); |
| 284 | |
| 285 | if (arc.BeginArray("rngs")) |
| 286 | { |
| 287 | for (rng = FRandom::RNGList; rng != NULL; rng = rng->Next) |
| 288 | { |
| 289 | // Only write those RNGs that have names |
| 290 | if (rng->NameCRC != 0) |
| 291 | { |
| 292 | if (arc.BeginObject(nullptr)) |
| 293 | { |
| 294 | arc("crc", rng->NameCRC) |
| 295 | ("index", rng->idx) |
| 296 | .Array("u", rng->sfmt.u, SFMT::N32) |
| 297 | .EndObject(); |
| 298 | } |
| 299 | } |
| 300 | } |
| 301 | arc.EndArray(); |
| 302 | } |
| 303 | } |
| 304 | |
| 305 | //========================================================================== |
| 306 | // |
nothing calls this directly
no test coverage detected