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

Method packData

Engine/source/afx/afxSpellBook.cpp:112–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110}
111
112void afxSpellBookData::packData(BitStream* stream)
113{
114 Parent::packData(stream);
115
116 stream->write(spells_per_page);
117 stream->write(pages_per_book);
118
119 for (S32 i = 0; i < pages_per_book*spells_per_page; i++)
120 writeDatablockID(stream, rpg_spells[i], mPacked);
121}
122
123void afxSpellBookData::unpackData(BitStream* stream)
124{

Callers

nothing calls this directly

Calls 2

writeDatablockIDFunction · 0.85
writeMethod · 0.45

Tested by

no test coverage detected