| 441 | } |
| 442 | |
| 443 | void afxEffectWrapperData::unpackData(BitStream* stream) |
| 444 | { |
| 445 | Parent::unpackData(stream); |
| 446 | |
| 447 | data_ID = readDatablockID(stream); |
| 448 | |
| 449 | effect_name = stream->readSTString(); |
| 450 | |
| 451 | cons_spec = stream->readSTString(); |
| 452 | pos_cons_spec = stream->readSTString(); |
| 453 | orient_cons_spec = stream->readSTString(); |
| 454 | aim_cons_spec = stream->readSTString(); |
| 455 | life_cons_spec = stream->readSTString(); |
| 456 | // |
| 457 | stream->read(&use_as_cons_obj); |
| 458 | //stream->read(&use_ghost_as_cons_obj); |
| 459 | |
| 460 | effect_enabled = stream->readFlag(); |
| 461 | stream->read(&ranking_range.low); |
| 462 | stream->read(&ranking_range.high); |
| 463 | stream->read(&lod_range.low); |
| 464 | stream->read(&lod_range.high); |
| 465 | |
| 466 | for (S32 i = 0; i < MAX_CONDITION_STATES; i++) |
| 467 | { |
| 468 | stream->read(&exec_cond_on_bits[i]); |
| 469 | stream->read(&exec_cond_off_bits[i]); |
| 470 | } |
| 471 | stream->read(&life_conds); |
| 472 | stream->read(&ewd_timing.delay); |
| 473 | stream->read(&ewd_timing.lifetime); |
| 474 | stream->read(&ewd_timing.fade_in_time); |
| 475 | stream->read(&user_fade_out_time); |
| 476 | stream->read(&is_looping); |
| 477 | stream->read(&n_loops); |
| 478 | stream->read(&loop_gap_time); |
| 479 | stream->read(&ignore_time_factor); |
| 480 | stream->read(&propagate_time_factor); |
| 481 | stream->read(&ewd_timing.residue_lifetime); |
| 482 | stream->read(&rate_factor); |
| 483 | stream->read(&scale_factor); |
| 484 | |
| 485 | // modifiers |
| 486 | do_id_convert = true; |
| 487 | unpack_mods(stream, xfm_modifiers); |
| 488 | |
| 489 | mathRead(*stream, &forced_bbox); |
| 490 | stream->read(&update_forced_bbox); |
| 491 | |
| 492 | stream->read(&sort_priority); |
| 493 | mathRead(*stream, &direction); |
| 494 | stream->read(&speed); |
| 495 | stream->read(&mass); |
| 496 | |
| 497 | stream->read(&borrow_altitudes); |
| 498 | if (stream->readFlag()) |
| 499 | { |
| 500 | char buf[1024]; |
nothing calls this directly
no test coverage detected