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

Method getSpellRPGData

Engine/source/afx/afxSpellBook.cpp:302–309  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

300}
301
302afxRPGMagicSpellData* afxSpellBook::getSpellRPGData(S32 page, S32 slot)
303{
304 S32 idx = mDataBlock->getPageSlotIndex(page, slot);
305 if (idx < 0 || !mDataBlock->rpg_spells[idx])
306 return 0;
307
308 return mDataBlock->rpg_spells[idx];
309}
310
311//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~~//
312

Callers 2

afxSpellBook.cppFile · 0.80
getSpellRPGDataBlockMethod · 0.80

Calls 1

getPageSlotIndexMethod · 0.80

Tested by

no test coverage detected