| 126 | } |
| 127 | |
| 128 | void afxRPGMagicSpellData::packData(BitStream* stream) |
| 129 | { |
| 130 | Parent::packData(stream); |
| 131 | |
| 132 | stream->write(spell_target); |
| 133 | stream->write(spell_range); |
| 134 | stream->write(mana_cost); |
| 135 | stream->write(n_reagents); |
| 136 | for (S32 i = 0; i < n_reagents; i++) |
| 137 | { |
| 138 | stream->write(reagent_cost[i]); |
| 139 | stream->writeString(reagent_name[i]); |
| 140 | } |
| 141 | |
| 142 | stream->write(casting_dur); |
| 143 | |
| 144 | stream->writeString(spell_name); |
| 145 | stream->writeLongString(511, spell_desc); |
| 146 | stream->writeString(icon_name); |
| 147 | stream->writeString(source_pack); |
| 148 | stream->writeFlag(is_placeholder); |
| 149 | stream->writeFlag(target_optional); |
| 150 | stream->write(free_target_style); |
| 151 | } |
| 152 | |
| 153 | void afxRPGMagicSpellData::unpackData(BitStream* stream) |
| 154 | { |
nothing calls this directly
no test coverage detected