| 338 | } |
| 339 | |
| 340 | void PingPacket::zeroPlayerCounts() { |
| 341 | rogueCount = 0; |
| 342 | redCount = 0; |
| 343 | greenCount = 0; |
| 344 | blueCount = 0; |
| 345 | purpleCount = 0; |
| 346 | observerCount = 0; |
| 347 | } |
| 348 | |
| 349 | // serialize packet to file -- note lack of error checking |
| 350 | // must write to a binary file if we use plain "pack" |