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

Method getSpellData

Engine/source/afx/afxSpellBook.cpp:293–300  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

291
292
293afxMagicSpellData* afxSpellBook::getSpellData(S32 page, S32 slot)
294{
295 S32 idx = mDataBlock->getPageSlotIndex(page, slot);
296 if (idx < 0 || !mDataBlock->spells[idx])
297 return 0;
298
299 return mDataBlock->spells[idx];
300}
301
302afxRPGMagicSpellData* afxSpellBook::getSpellRPGData(S32 page, S32 slot)
303{

Callers 2

afxSpellBook.cppFile · 0.80
getSpellDataBlockMethod · 0.80

Calls 1

getPageSlotIndexMethod · 0.80

Tested by

no test coverage detected