packData() and unpackData() do nothing in the stock implementation, but here they've been modified to pack and unpack any substitution statements.
| 361 | // they've been modified to pack and unpack any substitution statements. |
| 362 | // |
| 363 | void SimDataBlock::packData(BitStream* stream) |
| 364 | { |
| 365 | for (S32 i = 0; i < substitutions.size(); i++) |
| 366 | { |
| 367 | if (substitutions[i]) |
| 368 | { |
| 369 | stream->writeFlag(true); |
| 370 | stream->writeString(substitutions[i]->mSlot); |
| 371 | stream->write(substitutions[i]->mIdx); |
| 372 | stream->writeString(substitutions[i]->mValue); |
| 373 | } |
| 374 | } |
| 375 | stream->writeFlag(false); |
| 376 | } |
| 377 | |
| 378 | void SimDataBlock::unpackData(BitStream* stream) |
| 379 | { |
no test coverage detected