MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / packData

Method packData

Engine/source/afx/rpg/afxRPGMagicSpell.cpp:128–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126}
127
128void 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
153void afxRPGMagicSpellData::unpackData(BitStream* stream)
154{

Callers

nothing calls this directly

Calls 4

writeMethod · 0.45
writeStringMethod · 0.45
writeLongStringMethod · 0.45
writeFlagMethod · 0.45

Tested by

no test coverage detected